all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Suggestion for C-h f, describe-function
@ 2006-07-01 10:13 David Kastrup
  2006-07-01 14:11 ` Richard Stallman
  0 siblings, 1 reply; 14+ messages in thread
From: David Kastrup @ 2006-07-01 10:13 UTC (permalink / raw)



Hi, when using C-h f describe-function RET on a function defined in C,
the hyperlink with the source file name takes me to the Emacs source
code tree, which is very convenient.

Doing the same on a Lisp function will instead take me to the actually
loaded file in the installed tree which is quite less convenient since
it means that I constantly have some duplicated buffers with the same
content, and since it means if I do any actual changes to fix
something and try checking them in or comparing versions, this will
fail since I always manage to get the version _not_ under version
control.

Would it be possible to add an option where the source tree was
consulted also for the Lisp files?  There would be the additional
problem that while all sources to C functions are, of course, in the
Emacs source tree, this does not hold for the Lisp tree, so one should
probably have a way to specify different source trees for different
things in the Emacs tree, like mapping the prefix
/usr/local/share/emacs-22.0.50/lisp to "/usr/local/src/emacs/lisp", and
/usr/local/share/emacs/site-lisp/auctex to try both
"/usr/local/src/auctex/preview" and "/usr/local/src/auctex"

Maybe such a list would be specified as something like

(("^/usr/local/share/emacs-22.0.50/lisp/"
     "/usr/local/src/emacs/lisp/\\&")
 ("^/usr/local/share/emacs/site-lisp/auctex/"
     "/usr/local/src/auctex/preview/\\&"
     "/usr/local/src/auctex/\\&"))

which will do the obvious regexp replacements for finding the source
files.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-07-04 17:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-01 10:13 Suggestion for C-h f, describe-function David Kastrup
2006-07-01 14:11 ` Richard Stallman
2006-07-01 14:58   ` David Kastrup
2006-07-01 21:45     ` Kim F. Storm
2006-07-02 11:43       ` Thien-Thi Nguyen
2006-07-02 22:30       ` David Kastrup
2006-07-03  9:00         ` Kim F. Storm
2006-07-03  9:15           ` David Kastrup
2006-07-03  9:49             ` Kim F. Storm
2006-07-03 10:19               ` David Kastrup
2006-07-03 23:21                 ` Richard Stallman
2006-07-04  7:11                   ` David Kastrup
2006-07-04 17:30                     ` Richard Stallman
2006-07-02 22:29     ` Richard Stallman

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.