From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6716: 23.2; Setting `find-function-source-path' has no effect. Date: Mon, 26 Jul 2010 17:40:28 -0400 Message-ID: References: <874ofpqeiu.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280182076 18584 80.91.229.12 (26 Jul 2010 22:07:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2010 22:07:56 +0000 (UTC) Cc: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= To: 6716@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 00:07:54 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 1OdVpx-0008FW-3b for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 00:07:53 +0200 Original-Received: from localhost ([127.0.0.1]:49857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdVpw-0002CI-E3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jul 2010 18:07:52 -0400 Original-Received: from [140.186.70.92] (port=59130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdVpj-00027o-Jy for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 18:07:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdVpi-0007Iv-2z for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 18:07:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46513) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdVpi-0007Ir-0m for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 18:07:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdVPy-0006wE-Cb; Mon, 26 Jul 2010 17:41:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874ofpqeiu.fsf@gmail.com> Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2010 21:41: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.128018042926664 (code B ref 6716); Mon, 26 Jul 2010 21:41:02 +0000 Original-Received: (at 6716) by debbugs.gnu.org; 26 Jul 2010 21:40:29 +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 1OdVPP-0006w1-Uj for submit@debbugs.gnu.org; Mon, 26 Jul 2010 17:40:28 -0400 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdVPO-0006vw-Cs for 6716@debbugs.gnu.org; Mon, 26 Jul 2010 17:40:27 -0400 Original-Received: by wwb18 with SMTP id 18so760897wwb.15 for <6716@debbugs.gnu.org>; Mon, 26 Jul 2010 14:40:32 -0700 (PDT) Original-Received: by 10.227.157.4 with SMTP id z4mr3129161wbw.15.1280180428165; Mon, 26 Jul 2010 14:40:28 -0700 (PDT) Original-Received: by 10.216.137.67 with HTTP; Mon, 26 Jul 2010 14:40:28 -0700 (PDT) X-Google-Sender-Auth: BwLmlR-SqLSJqYvPK0vhXHh2JL4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Jul 2010 17:41: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:38960 Archived-At: bug#6716: 23.2; Setting `find-function-source-path' has no effect. ,---- SM worte: | Also, it may not work for files that were loaded as "foo/bar". I | think the load-history needs to be changed to keep track of both the | absolute file name and the name used to load the file | (i.e. "/bla/bla/foo/bar.elc" and "foo/bar"). | | Then in find-function-source-path we will first try for | /bla/bla/foo/bar.el and when that fails we can fall back on searching | for foo/bar.el. `---- ,---- SN wrote: | When you look at the current `find-library-name' definition, it's | _obviously_ wrong to pass an absolute file name to it. It just makes no | sense. `---- IMHO this type of problem has less to do w/ the path handling of `find-library-name' and `locate-file's and more to do w/ how these (and related procedures) find/frob file-name suffixes on a given path e.g. the +real+ problem is with how Emacs plays with these: `find-library-suffixes', `get-load-suffixes', `load-file-rep-suffixes' FWIW =C5=A0t=C4=9Bp=C3=A1n it may be useful to look at this thread here: :SEE (URL `http://lists.gnu.org/archive/html/emacs-devel/2010-01/msg01060.h= tml') My impression is that Stefan's file completion regime is brittle w/re this type of stuff... hence his (understandable) hesitancy to make any dramatic changes/modifications/tweaks. WIBN if Emacs lisp could treat namestrings as "Lisp Type" objects as opposed to "Unix/C Type" objects? I.e. something like Common Lisp's more CLOS centric handlers: `namestring' `directory-namestring' `host-namestring' `parse-namestring' `file-namestring' `pathname' `pathname-name' `pathname-type' `pathname-directory' `truename' `make-pathname' `merge-pathnames' `enough-namestring' :SEE (URL `http://www.lispworks.com/documentation/lw50/CLHS/Body/19_ab.htm'= ) Stefan, how reasaonable/welcome would it be to dovetail the EIEIO features with C primitives to accomplish something like what CL offers ITR? -- /s_P\