From: Juri Linkov <juri@jurta.org>
To: jidanni@jidanni.org
Cc: 14400@debbugs.gnu.org
Subject: 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 [thread overview]
Message-ID: <87r4h7dfbj.fsf@mail.jurta.org> (raw)
In-Reply-To: <877gj1jyj6.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 15 May 2013 00:50:53 +0800")
> 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.
next prev parent reply other threads:[~2013-05-15 22:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2013-05-17 4:22 ` jidanni
2013-05-18 23:19 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r4h7dfbj.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=14400@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).