From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= Newsgroups: gmane.emacs.bugs Subject: bug#672: 23.0.60; To source or not to source (from help) Date: Sat, 9 Aug 2008 23:12:01 +0900 Message-ID: <007701c8fa29$e4b88440$0100a8c0@yourhigxg9gyo4> References: <489C1757.3060504@gmx.at> <489C2956.1030202@gmail.com> Reply-To: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= , 672@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218292105 27754 80.91.229.12 (9 Aug 2008 14:28:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 14:28:25 +0000 (UTC) To: "Lennart Borgman (gmail)" , <672@emacsbugs.donarmstrong.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 09 16:29:16 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 1KRpRR-0002Wb-Nc for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 16:29:14 +0200 Original-Received: from localhost ([127.0.0.1]:33185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRpQV-00023S-S2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 10:28:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRpPm-0001fy-8o for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 10:27:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRpPl-0001fQ-Ad for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 10:27:29 -0400 Original-Received: from [199.232.76.173] (port=43983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRpPk-0001f9-LE for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 10:27:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32887) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRpPk-0003vM-41 for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2008 10:27:28 -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 m79ERNc4004701; Sat, 9 Aug 2008 07:27:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m79EKFdG002659; Sat, 9 Aug 2008 07:20:15 -0700 X-Loop: don@donarmstrong.com Resent-From: =?UTF-8?Q?=EF=BC=AF?= =?UTF-8?Q?=EF=BC=A6=EF=BC=A6=EF=BC=A9=EF=BC=A3=EF=BC=A5=E3=80=80ZERO?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 09 Aug 2008 14:20:15 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 672 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 672-submit@emacsbugs.donarmstrong.com id=B672.121829112132478 (code B ref 672); Sat, 09 Aug 2008 14:20:15 +0000 Original-Received: (at 672) by emacsbugs.donarmstrong.com; 9 Aug 2008 14:12:01 +0000 Original-Received: from smtp.air.ocn.ne.jp (air.ocn.ne.jp [122.1.235.141]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m79EBvSY032472 for <672@emacsbugs.donarmstrong.com>; Sat, 9 Aug 2008 07:11:58 -0700 Original-Received: from yourhigxg9gyo4 (p3140-ipad510marunouchi.tokyo.ocn.ne.jp [222.148.106.140]) by smtp.air.ocn.ne.jp (Postfix) with SMTP id 2835E320E; Sat, 9 Aug 2008 23:11:57 +0900 (JST) X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 09 Aug 2008 10:27:29 -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:19207 Archived-At: Do'nt send me mail !!! no tkank you!! ----- Original Message ----- From: "Lennart Borgman (gmail)" To: "martin rudalics" Cc: "Bug-Gnu-Emacs" ; <587@emacsbugs.donarmstrong.com> Sent: Friday, August 08, 2008 8:09 PM Subject: bug#672: 23.0.60; To source or not to source (from help) > 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? > > > > >