From: Juanma Barranquero <lekktu@gmail.com>
To: Nordlöw <per.nordlow@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Relating Symbols
Date: Mon, 30 Nov 2009 12:35:01 +0100 [thread overview]
Message-ID: <f7ccd24b0911300335i1f1d3d6fj340e1806156ed325@mail.gmail.com> (raw)
In-Reply-To: <e40b6ec3-34bb-4b83-a691-14bf1efc697f@s31g2000yqs.googlegroups.com>
On Mon, Nov 30, 2009 at 10:28, Nordlöw <per.nordlow@gmail.com> wrote:
> I know would like to this information to be displayed (at the end
> preferrably) when I do describe-... on that symbol. Any tips on
> realizing this using hooks or advices to the help functions?
This is a crude first cut at implementing it:
(defadvice describe-function (after related activate compile)
(let ((related (get (ad-get-arg 0) :related)))
(when related
(with-current-buffer (get-buffer "*Help*")
(let ((buffer-read-only nil)
(inhibit-changing-match-data t))
(goto-char (point-max))
(re-search-backward "\\[back\\]")
(insert (format "Related: %s\n\n" related)))))))
though, if you want to allow related to be a list, or the inserted
function names to be links, you'll have to dig deeper.
Juanma
next prev parent reply other threads:[~2009-11-30 11:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 9:28 Relating Symbols Nordlöw
2009-11-30 11:35 ` Juanma Barranquero [this message]
2009-11-30 11:57 ` Pascal J. Bourguignon
2009-11-30 14:25 ` harven
2009-11-30 14:47 ` Renaud Casenave-Péré
[not found] ` <mailman.11844.1259592486.2239.help-gnu-emacs@gnu.org>
2009-11-30 15:14 ` harven
2009-11-30 19:06 ` Pascal J. Bourguignon
2009-11-30 21:45 ` Tim X
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=f7ccd24b0911300335i1f1d3d6fj340e1806156ed325@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.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.