From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Should autoloaded functions show LIB.el for its location? Date: Sun, 18 Dec 2005 09:31:47 -0500 Message-ID: <871x0apji1.fsf-monnier+emacs@gnu.org> References: <43A41242.9070709@student.lu.se> <43A4128B.9090203@student.lu.se> <43A53016.1030904@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134916446 22768 80.91.229.2 (18 Dec 2005 14:34:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 14:34:06 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 18 15:33:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Enzal-0006qm-Ez for ged-emacs-devel@m.gmane.org; Sun, 18 Dec 2005 15:32:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnzbY-0008BI-Fc for ged-emacs-devel@m.gmane.org; Sun, 18 Dec 2005 09:33:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Enzac-00086l-J2 for emacs-devel@gnu.org; Sun, 18 Dec 2005 09:32:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Enzab-00086L-Cu for emacs-devel@gnu.org; Sun, 18 Dec 2005 09:32:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Enzaa-00086E-UE for emacs-devel@gnu.org; Sun, 18 Dec 2005 09:32:41 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnzdM-0007Kg-H8; Sun, 18 Dec 2005 09:35:32 -0500 Original-Received: from alfajor ([65.92.242.250]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20051218143148.VVCK25777.tomts25-srv.bellnexxia.net@alfajor>; Sun, 18 Dec 2005 09:31:48 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 6A1A5D7611; Sun, 18 Dec 2005 09:31:47 -0500 (EST) Original-To: Lennart Borgman In-Reply-To: <43A53016.1030904@student.lu.se> (Lennart Borgman's message of "Sun, 18 Dec 2005 10:47:02 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] 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:47996 Archived-At: >> > I just noticed that for an autoloaded function like >> apropos-variable' > the location is shown as "apropos", not >> "apropos.el". Is that > intentional? >> > >> In describe-function of course. Sorry. >> >> Since the file's name is `apropos.el', it would be clearer (all else >> being equal) to show `apropos.el'. >> > Does the attached small fix do the right thing? No, because the autoload entry may say "foo.el" or "foo.elc" instead of "foo", in which case adding a ".el" doesn't make much sense. I think it's better to leave it as it is: after all, maybe you only have a "foo" file and no "foo.el" or "foo.elc" file. The only good alternative I can think of otherwise is to do a locate-library to find the file that would be used if the function were to be loaded. Stefan