[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion for C-h f, describe-function

From: David Kastrup
Subject: Suggestion for C-h f, describe-function
Date: Sat, 01 Jul 2006 12:13:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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

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


which will do the obvious regexp replacements for finding the source

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]