* bug#14400: M-x man should know that "->" can't be part of a man page name
@ 2013-05-14 16:50 jidanni
2013-05-15 22:54 ` Juri Linkov
0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2013-05-14 16:50 UTC (permalink / raw)
To: 14400
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'
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#14400: M-x man should know that "->" can't be part of a man page name
2013-05-14 16:50 bug#14400: M-x man should know that "->" can't be part of a man page name jidanni
@ 2013-05-15 22:54 ` Juri Linkov
2013-05-17 4:22 ` jidanni
0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2013-05-15 22:54 UTC (permalink / raw)
To: jidanni; +Cc: 14400
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#14400: M-x man should know that "->" can't be part of a man page name
2013-05-15 22:54 ` Juri Linkov
@ 2013-05-17 4:22 ` jidanni
2013-05-18 23:19 ` Juri Linkov
0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2013-05-17 4:22 UTC (permalink / raw)
To: Juri Linkov; +Cc: 14400
Yes please use that.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#14400: M-x man should know that "->" can't be part of a man page name
2013-05-17 4:22 ` jidanni
@ 2013-05-18 23:19 ` Juri Linkov
0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2013-05-18 23:19 UTC (permalink / raw)
To: jidanni; +Cc: 14400-done
> Yes please use that.
This is fixed now.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-18 23:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 16:50 bug#14400: M-x man should know that "->" can't be part of a man page name jidanni
2013-05-15 22:54 ` Juri Linkov
2013-05-17 4:22 ` jidanni
2013-05-18 23:19 ` Juri Linkov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).