From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Feature request: extending cross-reference in *Help* buffers
Date: Fri, 25 Aug 2006 16:24:12 -0400 [thread overview]
Message-ID: <E1GGiDs-00048D-6f@fencepost.gnu.org> (raw)
In-Reply-To: <20060824205737.4A75.SLAWOMIR.NOWACZYK.847@student.lu.se> (message from Slawomir Nowaczyk on Thu, 24 Aug 2006 21:08:35 +0200)
Does this give good results?
*** help-fns.el 11 Jul 2006 12:29:57 -0400 1.90
--- help-fns.el 25 Aug 2006 08:49:12 -0400
***************
*** 369,386 ****
(setq file-name (if (get-buffer " *DOC*")
(help-C-file-name def 'subr)
'C-source)))
! (when file-name
! (princ " in `")
! ;; We used to add .el to the file name,
! ;; but that's completely wrong when the user used load-file.
! (princ (if (eq file-name 'C-source) "C source code" file-name))
! (princ "'")
! ;; Make a hyperlink to the library.
! (with-current-buffer standard-output
! (save-excursion
! (re-search-backward "`\\([^`']+\\)'" nil t)
! (help-xref-button 1 'help-function-def function file-name))))
! (princ ".")
(terpri)
(when (commandp function)
(let* ((remapped (command-remapping function))
--- 369,387 ----
(setq file-name (if (get-buffer " *DOC*")
(help-C-file-name def 'subr)
'C-source)))
! (if file-name
! (progn
! (princ " in `")
! ;; We used to add .el to the file name,
! ;; but that's completely wrong when the user used load-file.
! (princ (if (eq file-name 'C-source) "C source code" file-name))
! (princ "'.")
! ;; Make a hyperlink to the library.
! (with-current-buffer standard-output
! (save-excursion
! (re-search-backward "`\\([^`']+\\)'" nil t)
! (help-xref-button 0 'help-function-def function file-name))))
! (princ "."))
(terpri)
(when (commandp function)
(let* ((remapped (command-remapping function))
next prev parent reply other threads:[~2006-08-25 20:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 19:08 Feature request: extending cross-reference in *Help* buffers Slawomir Nowaczyk
2006-08-24 20:09 ` Drew Adams
2006-08-25 9:52 ` Yoni Rabkin Katzenell
2006-08-26 8:31 ` Slawomir Nowaczyk
2006-08-26 10:08 ` Richard Stallman
2006-08-25 20:24 ` Richard Stallman [this message]
2006-08-26 8:31 ` Slawomir Nowaczyk
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=E1GGiDs-00048D-6f@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.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 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.