From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Suggestion for C-h f, describe-function Date: Sat, 01 Jul 2006 12:13:40 +0200 Message-ID: <85slllbpkb.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151748874 7519 80.91.229.2 (1 Jul 2006 10:14:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Jul 2006 10:14:34 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 01 12:14:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FwcUh-0003JY-7c for ged-emacs-devel@m.gmane.org; Sat, 01 Jul 2006 12:14:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwcUg-0006TB-KU for ged-emacs-devel@m.gmane.org; Sat, 01 Jul 2006 06:14:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FwcUW-0006Su-2L for emacs-devel@gnu.org; Sat, 01 Jul 2006 06:14:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FwcUV-0006Si-LM for emacs-devel@gnu.org; Sat, 01 Jul 2006 06:14:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwcUV-0006Sf-J3 for emacs-devel@gnu.org; Sat, 01 Jul 2006 06:14:19 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FwchU-00087D-AE for emacs-devel@gnu.org; Sat, 01 Jul 2006 06:27:44 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FwcUV-0004pN-32 for emacs-devel@gnu.org; Sat, 01 Jul 2006 06:14:19 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6C3D81C4D3B9; Sat, 1 Jul 2006 12:13:40 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56346 Archived-At: 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