GNU bug report logs - #14400
M-x man should know that "->" can't be part of a man page name

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 14 May 2013 17:31:03 UTC

Severity: minor

Done: Juri Linkov <juri <at> jurta.org>

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 14400 in the body.
You can then email your comments to 14400 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-gnu-emacs <at> gnu.org:
bug#14400; Package emacs. (Tue, 14 May 2013 17:31:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 14 May 2013 17:31:05 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: M-x man should know that "->" can't be part of a man page name
Date: Wed, 15 May 2013 00:50:53 +0800
M-x man should know that "->" can't be part of a man page name.
(In fact "->" even displays as one character.) so M-x man should think
twice, and back off, so that when the cursor is upon the word UserAgent,
my $ua = LWP::UserAgent->new(...
and one types M-x man, instead of
Manual entry (default LWP::UserAgent-):
it should prompt with
Manual entry (default LWP::UserAgent):

Seen with
emacs-snapshot:
  Installed: 2:20130510-1
# su - nobody -c 'HOME=/tmp emacs /some/perl/file.pl'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14400; Package emacs. (Wed, 15 May 2013 23:08:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 14400 <at> debbugs.gnu.org
Subject: Re: bug#14400: M-x man should know that "->" can't be part of a man
	page name
Date: Thu, 16 May 2013 01:54:40 +0300
> my $ua = LWP::UserAgent->new(...
> and one types M-x man, instead of
> Manual entry (default LWP::UserAgent-):
> it should prompt with
> Manual entry (default LWP::UserAgent):

Removing `-' from the end of the default value could be
fixed in `Man-default-man-entry' by this patch:

=== modified file 'lisp/man.el'
--- lisp/man.el	2013-02-12 07:57:04 +0000
+++ lisp/man.el	2013-05-15 22:51:39 +0000
@@ -767,7 +767,7 @@ (defun Man-default-man-entry (&optional
 	(setq word (concat word (match-string-no-properties 1)))
 	;; Make sure the section number gets included by the code below.
 	(goto-char (match-end 1)))
-      (when (string-match "[._]+$" word)
+      (when (string-match "[._-]+$" word)
 	(setq word (substring word 0 (match-beginning 0))))
       ;; The following was commented out since the preceding code
       ;; should not produce a leading "*" in the first place.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14400; Package emacs. (Fri, 17 May 2013 04:23:02 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: Juri Linkov <juri <at> jurta.org>
Cc: 14400 <at> debbugs.gnu.org
Subject: Re: bug#14400: M-x man should know that "->" can't be part of a man
	page name
Date: Fri, 17 May 2013 12:22:39 +0800
Yes please use that.




Reply sent to Juri Linkov <juri <at> jurta.org>:
You have taken responsibility. (Sat, 18 May 2013 23:22:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Sat, 18 May 2013 23:22:03 GMT) Full text and rfc822 format available.

Message #16 received at 14400-done <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 14400-done <at> debbugs.gnu.org
Subject: Re: bug#14400: M-x man should know that "->" can't be part of a man
	page name
Date: Sun, 19 May 2013 02:19:12 +0300
> Yes please use that.

This is fixed now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 16 Jun 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 11 days ago.

Previous Next


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