From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#690: 23.0.60; Function origin file misremembered Date: Mon, 11 Aug 2008 14:09:11 +0200 Message-ID: <48A02BE7.3000300@gmx.at> References: <20080811004345.11BDDA1B802@mt-computer.local> <489FF80C.8050209@gmx.at> <48A0098F.6090804@gmx.at> Reply-To: martin rudalics , 690@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218457688 29994 80.91.229.12 (11 Aug 2008 12:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 12:28:08 +0000 (UTC) Cc: 690@emacsbugs.donarmstrong.com To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 14:28:59 2008 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.50) id 1KSWW7-00042B-VA for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 14:28:56 +0200 Original-Received: from localhost ([127.0.0.1]:57079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSWVB-0007OI-Si for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 08:27:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSWUi-0006q0-N6 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 08:27:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSWUh-0006nB-6q for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 08:27:27 -0400 Original-Received: from [199.232.76.173] (port=40187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSWUg-0006mW-QX for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 08:27:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43072) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSWUg-0007qZ-ED for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 08:27:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7BCROsn008325; Mon, 11 Aug 2008 05:27:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7BCK6vq005775; Mon, 11 Aug 2008 05:20:06 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 11 Aug 2008 12:20:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 690 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 690-submit@emacsbugs.donarmstrong.com id=B690.12184567213882 (code B ref 690); Mon, 11 Aug 2008 12:20:05 +0000 Original-Received: (at 690) by emacsbugs.donarmstrong.com; 11 Aug 2008 12:12:01 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7BCBu0H003858 for <690@emacsbugs.donarmstrong.com>; Mon, 11 Aug 2008 05:11:57 -0700 Original-Received: (qmail invoked by alias); 11 Aug 2008 12:11:50 -0000 Original-Received: from 62-47-57-72.adsl.highway.telekom.at (EHLO [62.47.57.72]) [62.47.57.72] by mail.gmx.net (mp064) with SMTP; 11 Aug 2008 14:11:50 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19kinR2nQpkXrDj3JFtCC7jeYBSisSTnPqNiDKJeD pcoCV0OyDxtMIg User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.77 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 11 Aug 2008 08:27:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:19289 Archived-At: > I do not see much value in abbreviating the file name at all; unless > that is important for other features to work, I find that the original > file name should be preserved in case of doubt. (symbol-file > 'prolog-mode) correctly evaluates to "/Users/mt/prolog.el", so this is > what should be shown. Otherwise, even future changes to load-path could > lead to distorted file origins of functions that are already loaded. `load-path' is fragile. Consider the case where you have duplicates of files foo.el and bar.el in two different directories that are both in `load-path'. You can't insist on finding foo.el in one and bar.el in the other directory. As I proposed in another thread we could try to _always_ find the definition from `symbol-file' and use that from the build directory iff the former fails. This should handle your case as well. martin