emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#4056: marked as done (23.1.50; use shell-command


From: Emacs bug Tracking System
Subject: [Emacs-bug-tracker] bug#4056: marked as done (23.1.50; use shell-command completion for M-x man page names)
Date: Thu, 11 Feb 2010 16:20:02 +0000

Your message dated Thu, 11 Feb 2010 11:10:52 -0500
with message-id <address@hidden>
and subject line Re: bug#4056: Searching for program: no such file or 
directory, LC_CTYPE=C man
has caused the Emacs bug report #4056,
regarding 23.1.50; use shell-command completion for M-x man page names
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
4056: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4056
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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.


--- End Message ---
--- Begin Message --- 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 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)
> 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))



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]