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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4056 in the body.
You can then email your comments to 4056 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4056; Package emacs. (Thu, 06 Aug 2009 01:55:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 06 Aug 2009 01:55:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

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.



Severity set to 'wishlist' from 'normal' Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Thu, 22 Oct 2009 09:40:22 GMT) Full text and rfc822 format available.

Merged 3717 4056. Request was from Juri Linkov <juri <at> jurta.org> to control <at> emacsbugs.donarmstrong.com. (Tue, 24 Nov 2009 17:25:22 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4056; Package emacs. (Sat, 23 Jan 2010 22:05:02 GMT) Full text and rfc822 format available.

Message #12 received at 4056 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: 4056 <at> debbugs.gnu.org
Cc: control <at> debbugs.gnu.org
Subject: completion--some: Searching for program: no such file or directory,
	LC_CTYPE=C man
Date: Sun, 24 Jan 2010 06:04:02 +0800
reopen 4056
found 4056 1:20100118-1
thanks
Help, as of debian-snapshot 1:20100118-1 I am still getting
      completion--some: Searching for program: no such file or directory, LC_CTYPE=C man
when I hit M-x man bla<TAB>
just because I have (setq manual-program "LC_CTYPE=C man") in
http://jidanni.org/comp/configuration/.emacs .




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 Jan 2010 22:05:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 1:20100118-1. Request was from jidanni <at> jidanni.org to control <at> debbugs.gnu.org. (Sat, 23 Jan 2010 22:05:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4056; Package emacs. (Mon, 08 Feb 2010 19:08:01 GMT) Full text and rfc822 format available.

Message #19 received at 4056 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: 4056 <at> debbugs.gnu.org
Subject: Searching for program: no such file or directory, LC_CTYPE=C man
Date: Tue, 09 Feb 2010 03:07:28 +0800
Can someone please send me the workaround!!




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4056; Package emacs. (Tue, 09 Feb 2010 00:44:02 GMT) Full text and rfc822 format available.

Message #22 received at 4056 <at> debbugs.gnu.org (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: jidanni <at> jidanni.org
Cc: 4056 <at> debbugs.gnu.org
Subject: Re: bug#4056: Searching for program: no such file or directory,
	LC_CTYPE=C man
Date: Tue, 09 Feb 2010 09:42:57 +0900
In article <874olr1r7z.fsf <at> jidanni.org>, jidanni <at> jidanni.org writes:

> Can someone please send me the workaround!!

How about making this shell script "man.sh" somewher in your PATH,

#!/bin/sh
LC_CTYPE=C man $@

and set manual-program to "man.sh"?

---
Kenichi Handa
handa <at> m17n.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4056; Package emacs. (Tue, 09 Feb 2010 00:52:02 GMT) Full text and rfc822 format available.

Message #25 received at 4056 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: handa <at> m17n.org
Cc: 4056 <at> debbugs.gnu.org
Subject: Re: bug#4056: Searching for program: no such file or directory,
	LC_CTYPE=C man
Date: Tue, 09 Feb 2010 08:51:23 +0800
K> How about making this shell script "man.sh" somewher in your PATH...
OK, thanks!




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 11 Feb 2010 16:20:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Thu, 11 Feb 2010 16:20:03 GMT) Full text and rfc822 format available.

Message #30 received at 4056-close <at> debbugs.gnu.org (full text, mbox):

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))





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 11 Feb 2010 16:20:03 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Thu, 11 Feb 2010 16:20:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4056; Package emacs. (Thu, 11 Feb 2010 21:43:02 GMT) Full text and rfc822 format available.

Message #38 received at 4056 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: monnier <at> iro.umontreal.ca
Cc: 4056 <at> debbugs.gnu.org
Subject: Re: bug#4056: Searching for program: no such file or directory,
	LC_CTYPE=C man
Date: Fri, 12 Feb 2010 05:42:15 +0800
>>>>> "SM" == Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

SM> (tho the error will still be there and will prevent completion from
SM> working).

Well OK but maybe the bug should not be closed completely then.




bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Mar 2010 12:24:03 GMT) Full text and rfc822 format available.

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.