From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: symbol-file Date: Thu, 14 Aug 2008 16:24:51 +0200 Message-ID: <48A44033.8050903@gmx.at> References: <48A43108.3050506@gmx.at> <48A433E0.8020907@gmail.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 1218724125 21489 80.91.229.12 (14 Aug 2008 14:28:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 14:28:45 +0000 (UTC) Cc: emacs-devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 16:29:36 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTdpN-00069f-E9 for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2008 16:29:25 +0200 Original-Received: from localhost ([127.0.0.1]:49547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTdoQ-0005YG-Uk for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2008 10:28:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTdnF-000595-E8 for emacs-devel@gnu.org; Thu, 14 Aug 2008 10:27:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTdnD-00058T-SX for emacs-devel@gnu.org; Thu, 14 Aug 2008 10:27:13 -0400 Original-Received: from [199.232.76.173] (port=57951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTdnD-00058L-LQ for emacs-devel@gnu.org; Thu, 14 Aug 2008 10:27:11 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:40283) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KTdnD-00089H-7Y for emacs-devel@gnu.org; Thu, 14 Aug 2008 10:27:11 -0400 Original-Received: (qmail invoked by alias); 14 Aug 2008 14:27:08 -0000 Original-Received: from 62-47-55-190.adsl.highway.telekom.at (EHLO [62.47.55.190]) [62.47.55.190] by mail.gmx.net (mp058) with SMTP; 14 Aug 2008 16:27:08 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX197jhRxy/x7Pvtu9Y2EmiO2B+H/cVUxiQz6x2MYyt iiR2ejBu37sRLU User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <48A433E0.8020907@gmail.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102457 Archived-At: > I think it would be best to return the absolute file name and then have > a separate function file-name-in-load-path that just gives for example > "ediff.el". The second function can then be used by the help functions > to display the file name. We could use the (find-function-search-for-symbol function nil "loaddefs.el") approach and search for "^;;; Generated autoloads from \\(.*\\)" just as `describe-function-1' does. I'm not sure whether this would break other applications using `symbol-file' though. WOW, I don't know whether it's intended to, for example, pass the result of `symbol-file' to `load' and expect the later to DTRT with it. BTW, you can see the current approach in action by doing (describe-function 'ediff-directories) which gives ediff-directories is an interactive autoloaded Lisp function in `ediff'. where `ediff' is just the "file name string" `load' would use but certainly not a file name. martin