From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: Relating Symbols Date: Mon, 30 Nov 2009 12:35:01 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259580987 1489 80.91.229.12 (30 Nov 2009 11:36:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 11:36:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?UTF-8?B?Tm9yZGzDtnc=?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 30 12:36:20 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NF4YG-0001pH-8h for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 12:36:20 +0100 Original-Received: from localhost ([127.0.0.1]:41878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF4YF-0004on-GC for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 06:36:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF4XR-0004oG-J0 for help-gnu-emacs@gnu.org; Mon, 30 Nov 2009 06:35:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF4XL-0004lL-FL for help-gnu-emacs@gnu.org; Mon, 30 Nov 2009 06:35:28 -0500 Original-Received: from [199.232.76.173] (port=54272 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF4XL-0004ky-5k for help-gnu-emacs@gnu.org; Mon, 30 Nov 2009 06:35:23 -0500 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:47058) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF4XK-0002HM-Mm for help-gnu-emacs@gnu.org; Mon, 30 Nov 2009 06:35:22 -0500 Original-Received: by bwz7 with SMTP id 7so1916194bwz.26 for ; Mon, 30 Nov 2009 03:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=O/jG0qBAJTKdTPxmYe81x5w+DBXuoSLnYejYKI00/IQ=; b=hoRcxst12kPbiZ3tiWPfbhqPnTwI8BluF8HVPZU3waiFPeE9Wa0xdt+zrqjbw4YwaL OWT4xw4WoQVREDQ5EzXjIzXeW93cHwFuxAF82upYZw3qLqpDx2xehTV4ili9LqwxPTKQ Mk2/+AZlfp3bIy/ZGadWyolRMPnJf3BAj/C5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YMb1DAn/rWNUDgJvbfAahrkUe8glhgP4mjoybvX7mwMSKk+jLDCjsG23R1dwnm/jnp I0gUt3j0+Xe630NKL+mXe2x8Vhwjlhv9CC6JrPTbNFGLcr6/gwf6LkdcGq9xwb2lGl7Q Dd9h+w0er1f3SUlZoHhGDc97M5Hn7Reu77x4U= Original-Received: by 10.204.156.212 with SMTP id y20mr4332125bkw.126.1259580921159; Mon, 30 Nov 2009 03:35:21 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70250 Archived-At: On Mon, Nov 30, 2009 at 10:28, Nordl=C3=B6w 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