From unknown Fri Aug 15 18:10:26 2025 X-Loop: don@donarmstrong.com Subject: bug#673: 23.0.60; To source or not to source (from help) Reply-To: martin rudalics , 673@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 08 Aug 2008 12:10:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 673 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12181969615281 (code B ref -1); Fri, 08 Aug 2008 12:10:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Aug 2008 12:02:41 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m78C2cId005270 for ; Fri, 8 Aug 2008 05:02:39 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRQg1-0004DT-LU for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 08:02:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRQfx-00049S-VA for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 08:02:37 -0400 Received: from [199.232.76.173] (port=45024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRQfx-00049C-R9 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 08:02:33 -0400 Received: from mail.gmx.net ([213.165.64.20]:57292) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KRQfx-0000fH-6k for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 08:02:33 -0400 Received: (qmail invoked by alias); 08 Aug 2008 12:02:30 -0000 Received: from 62-47-38-210.adsl.highway.telekom.at (EHLO [62.47.38.210]) [62.47.38.210] by mail.gmx.net (mp023) with SMTP; 08 Aug 2008 14:02:30 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1998uZGLWB9/oFNs4rmswPEkUcDB5md3AXx7knIjt 5FSiE7Npl9gq8R Message-ID: <489C3628.3000807@gmx.at> Date: Fri, 08 Aug 2008 14:03:52 +0200 From: martin rudalics User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "Lennart Borgman (gmail)" CC: 587@debbugs.gnu.org, Bug-Gnu-Emacs References: <489C1757.3060504@gmx.at> <489C2956.1030202@gmail.com> In-Reply-To: <489C2956.1030202@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. > I use the normal > > make install INSTALL_DIR=... I never use that. Are the ".el" files copied as well in that case? >> 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. Did you verify it? >> 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? We'd have to do something similar for definitions in the C-sources too. Do I suppose correctly that the C-sources are not copied automatically when you explicitly specify the install directory? I'm too lazy to look into this ... martin