From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6716: 23.2; Setting `find-function-source-path' has no effect. Date: Tue, 27 Jul 2010 13:57:30 +0200 Message-ID: References: <874ofpqeiu.fsf@gmail.com> <87zkxeev1d.fsf@gmail.com> <87mxteebg8.fsf@gmail.com> <87aapddyq6.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280232471 24946 80.91.229.12 (27 Jul 2010 12:07:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 12:07:51 +0000 (UTC) Cc: 6716@debbugs.gnu.org To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 14:07:49 2010 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.69) (envelope-from ) id 1Odiwn-0007hG-42 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 14:07:49 +0200 Original-Received: from localhost ([127.0.0.1]:44229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odiwm-00068H-B3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 08:07:48 -0400 Original-Received: from [140.186.70.92] (port=58764 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odiwd-00067F-OP for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:07:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odiwc-0007dR-GR for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:07:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odiwc-0007dN-F4 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:07:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdinK-0004tl-6u; Tue, 27 Jul 2010 07:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jul 2010 11:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6716-submit@debbugs.gnu.org id=B6716.128023185118816 (code B ref 6716); Tue, 27 Jul 2010 11:58:02 +0000 Original-Received: (at 6716) by debbugs.gnu.org; 27 Jul 2010 11:57:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odimo-0004tR-KP for submit@debbugs.gnu.org; Tue, 27 Jul 2010 07:57:30 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odiml-0004tK-DB for 6716@debbugs.gnu.org; Tue, 27 Jul 2010 07:57:28 -0400 Original-Received: from ceviche.home (vpn-132-204-232-74.acd.umontreal.ca [132.204.232.74]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o6RBvV4S005041; Tue, 27 Jul 2010 07:57:32 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 9DDB16611D; Tue, 27 Jul 2010 13:57:30 +0200 (CEST) In-Reply-To: <87aapddyq6.fsf@gmail.com> =?UTF-8?Q?("=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec"'s?= message of "Tue, 27 Jul 2010 12:07:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3586=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Jul 2010 07:58:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:38977 Archived-At: >> But your patch also affects the case where find-function-source-path is nil. > Yes. (And the current code ignores it even when it is non-nil. Actually, > the current code ignores everything -- it simply tries the one single > file name it guesses is right and either finds it or errors out.) Indeed, the current code's exclusive use of absolute file names is not correct either. It's just the result of uncoordinated changes. > OK, I think I get it, thank you very much for the explanation. Honestly, > this kind of loading seems pathologic to me -- it never crossed my mind > to load/require "path/file" instead of first adding "path" to > `load-path' and then `load'ing "file". What use does this have? Or > rather, is it necessary (I imagine people might be trying to use this as > a poor man's module system)? Given the fact that we need to make sure every file name's first 8 chars are unique (for the MSDOS build), it can be sometimes very convenient. Semantic uses it extensively. It's not used as a module system, tho it's somewhat used as a way to specify "packages" of modules. It also has the advantage of limiting the growth of the load-path directory, which might improve performance somewhat (probably negligible, tho, on current machines). > In any case, I'm obviously still missing a lot (such as how the case > with symbols defined outside load-path is handled or how the Help cross > references come into play -- they still don't work even with my "fix"); > I'll try to look at the code some more. Stefan