From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: bug#587: 23.0.60; To source or not to source (from help) Date: Fri, 08 Aug 2008 13:09:10 +0200 Message-ID: <489C2956.1030202@gmail.com> References: <489C1757.3060504@gmx.at> Reply-To: "Lennart Borgman \(gmail\)" , 587@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218194868 23297 80.91.229.12 (8 Aug 2008 11:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 11:27:48 +0000 (UTC) Cc: Bug-Gnu-Emacs , 587@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 13:28:38 2008 Return-path: Envelope-to: geb-bug-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 1KRQ92-0007AH-7q for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 13:28:32 +0200 Original-Received: from localhost ([127.0.0.1]:52564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRQ86-0004I9-Bh for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 07:27:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRQ80-0004G4-Ni for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 07:27:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRQ7y-0004EU-RV for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 07:27:27 -0400 Original-Received: from [199.232.76.173] (port=40728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRQ7y-0004EN-Ku for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 07:27:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34405) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRQ7x-0001XA-Q7 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 07:27:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m78BRNT6027443; Fri, 8 Aug 2008 04:27:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m78BF5EK023258; Fri, 8 Aug 2008 04:15:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 08 Aug 2008 11:15:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 587 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 587-submit@emacsbugs.donarmstrong.com id=B587.121819376521638 (code B ref 587); Fri, 08 Aug 2008 11:15:05 +0000 Original-Received: (at 587) by emacsbugs.donarmstrong.com; 8 Aug 2008 11:09:25 +0000 Original-Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m78B9Lud021632 for <587@emacsbugs.donarmstrong.com>; Fri, 8 Aug 2008 04:09:22 -0700 Original-Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:59643 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KRPqS-0006fJ-42; Fri, 08 Aug 2008 13:09:20 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <489C1757.3060504@gmx.at> X-Antivirus: avast! (VPS 080807-0, 2008-08-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-Scan-Result: No virus found in message 1KRPqS-0006fJ-42. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KRPqS-0006fJ-42 6ef29a824504b1ac356340fa18d10ab5 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 08 Aug 2008 07:27:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19138 Archived-At: martin rudalics wrote: > > If you do C-h v and look at a variable and click on the library link in > > the help buffer you will go to the file in your current Emacs tree. If > > you do C-h f to look at a function and do the same you will be taken to > > the cvs checkout file instead. > > I suspect you compiled Emacs in the checkout directory and then copied > the Emacs tree to another directory. I use the normal make install INSTALL_DIR=... > In this case the following might > happen: As for C-h f `describe-function-1' will execute > > ;; See if lisp files are present where they where installed from. > (if (not (eq file-name 'C-source)) > (setq file-name (find-source-lisp-file file-name))) > > which sets `file-name' to the ".el" file from the checkout directory > (because you did compile it there) and installs the corresponding > reference in the hyperlink. > > As for C-h v `describe-variable' does _not_ care whether you compiled in > another directory and simply goes to the file supplied by `symbol-file'. > You could try inserting the snipped above in `describe-variable' > immediately before the line > > (if file-name > > and see whether it now jumps to the checkout directory instead. Yes, I guess that is correct. > Personally, I'd prefer something like the following in both cases: > > (unless (or (eq file-name 'C-source) > (file-exists-p file-name)) > (setq file-name (find-source-lisp-file file-name))) Thanks martin. I think a variable (or an option) for which elisp to go to would be the best. Is there any reason not to have that?