GNU bug report logs - #4056
23.1.50; use shell-command completion for M-x man page names

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 6 Aug 2009 01:55:05 UTC

Severity: wishlist

Merged with 3717

Found in version 1:20100118-1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: bug-gnu-emacs <at> gnu.org (Emacs bug Tracking System)
To: jidanni <at> jidanni.org
Subject: bug#4056 closed by Stefan Monnier <monnier <at> iro.umontreal.ca> (Re:
 bug#4056: Searching for program: no such file or directory, LC_CTYPE=C
 man)
Date: Thu, 11 Feb 2010 16:20:03 +0000
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#4056: 23.1.50; use shell-command completion for M-x man page names

It has been closed by Stefan Monnier <monnier <at> iro.umontreal.ca>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <monnier <at> iro.umontreal.ca> by
replying to this email.


-- 
4056: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4056
Emacs Bug Tracking System
Contact bug-gnu-emacs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: jidanni <at> jidanni.org
Subject: Re: bug#4056: Searching for program: no such file or directory,
	LC_CTYPE=C man
Date: Thu, 11 Feb 2010 11:10:52 -0500
> Can someone please send me the workaround!!

I've just installed the patch below which should silence those errors
(tho the error will still be there and will prevent completion from
working).



        Stefan


=== modified file 'lisp/man.el'
--- lisp/man.el	2010-01-13 08:35:10 +0000
+++ lisp/man.el	2010-02-11 15:54:21 +0000
@@ -771,8 +771,13 @@
           ;; quote anything.
           (let ((process-environment (copy-sequence process-environment)))
             (setenv "COLUMNS" "999") ;; don't truncate long names
+            ;; manual-program might not even exist.  And since it's
+            ;; run differently in Man-getpage-in-background, an error
+            ;; here may not necessarily mean that we'll also get an
+            ;; error later.
+            (ignore-errors
             (call-process manual-program nil '(t nil) nil
-                          "-k" (concat "^" prefix)))
+                            "-k" (concat "^" prefix))))
           (goto-char (point-min))
           (while (re-search-forward "^\\([^ \t\n]+\\)\\(?: ?\\((.+?)\\)\\(?:[ \t]+- \\(.*\\)\\)?\\)?" nil t)
             (push (propertize (concat (match-string 1) (match-string 2))


[Message part 3 (message/rfc822, inline)]
From: jidanni <at> jidanni.org
Cc: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; use shell-command completion for M-x man page names
Date: Thu, 06 Aug 2009 09:47:43 +0800
Gentlemen, as you know when you do M-x man and get the prompt
   Manual entry (default blabla):
there is no TAB completion.

Well as many of the man pages are the same names as shell commands, why
not just use the same completion as shell-command and
shell-command-on-region use?

It's better than nothing, and one can still enter other names too.


This bug report was last modified 15 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.