From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: M-x man when cursor on top of hyphenated reference
Date: Thu, 19 Jun 2003 10:29:53 -0600 [thread overview]
Message-ID: <3EF1E501.2030409@yahoo.com> (raw)
In-Reply-To: mailman.8212.1055996290.21513.bug-gnu-emacs@gnu.org
Dan Jacobson wrote:
> Man-follow-manual-reference can find maildropex even though it has a dash:
> SEE ALSO
> lockmail(1), maildropfilter(5), makedat(1), maildropgdbm(5), mail-
> dropex(5), reformail(1), makeuserdb(1), makemime(1), reformime(1),
> egrep(1), grep(1), , courier(8), sendmail(8), http://www.qmail.org.
>
> Hovever, the m command, which usually knows what is under the cursor,
> doesn't know about maildropex when on top of it
Here's a hack for you to try. If it works, I can try to implement it as
a proper patch to man.el:
(defadvice Man-default-man-entry (after hyphenated activate)
"Handle hypenated manual references."
(if (string-match (format "-\\((%s)\\)?\\'" Man-section-regexp)
ad-return-value)
(save-excursion
(forward-line 1)
(setq ad-return-value (Man-default-man-entry)))
(let ((prefix (Man-possibly-hyphenated-word)))
(if (string-match "-\\'" prefix)
(setq ad-return-value
(concat (substring prefix 0 (match-beginning 0))
ad-return-value))))))
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
next parent reply other threads:[~2003-06-19 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8212.1055996290.21513.bug-gnu-emacs@gnu.org>
2003-06-19 16:29 ` Kevin Rodgers [this message]
2003-06-19 21:47 ` M-x man when cursor on top of hyphenated reference Dan Jacobson
[not found] ` <E19TMbx-00082O-Em@fencepost.gnu.org>
2003-06-23 18:34 ` Kevin Rodgers
2003-06-19 2:32 Dan Jacobson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EF1E501.2030409@yahoo.com \
--to=ihs_4664@yahoo.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.