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#5591: 23.1.92; bookmark.el and file path Date: Thu, 18 Feb 2010 09:00:45 -0500 Message-ID: References: <87tytflcrm.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266502989 7573 80.91.229.12 (18 Feb 2010 14:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 14:23:09 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 15:23:06 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 1Ni7HP-0003p5-GX for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 15:22:59 +0100 Original-Received: from localhost ([127.0.0.1]:48659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7HO-0007LH-OQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 09:22:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni7HK-0007Kz-Ju for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:22:54 -0500 Original-Received: from [140.186.70.92] (port=50296 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7HI-0007Kc-5k for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:22:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni7HH-0006gH-6p for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:22:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33217) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7HH-0006gD-52 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:22:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ni6x8-0002Id-Bw; Thu, 18 Feb 2010 09:02:02 -0500 X-Loop: bug-gnu-emacs@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: Thu, 18 Feb 2010 14:02:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5591 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12665016648807 (code B ref -1); Thu, 18 Feb 2010 14:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2010 14:01:04 +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 1Ni6wB-0002I0-Kc for submit@debbugs.gnu.org; Thu, 18 Feb 2010 09:01:03 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni6w4-0002Ha-TR for submit@debbugs.gnu.org; Thu, 18 Feb 2010 09:01:02 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:44174) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni6w0-0004LE-3E for submit@debbugs.gnu.org; Thu, 18 Feb 2010 09:00:52 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ni6vz-0001ch-91 for submit@debbugs.gnu.org; Thu, 18 Feb 2010 09:00:52 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:40654) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ni6vz-0001cd-2k for submit@debbugs.gnu.org; Thu, 18 Feb 2010 09:00:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni6vy-0006dE-29 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:00:50 -0500 Original-Received: from [140.186.70.92] (port=38431 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni6vv-0006d0-18 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:00:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni6vu-0003k0-7z for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:00:46 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51743 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni6vu-0003jw-5C for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 09:00:46 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAOvWfEvO+LpH/2dsb2JhbACbB3W+QIRnBIMVh10 X-IronPort-AV: E=Sophos;i="4.49,497,1262581200"; d="scan'208";a="56266471" Original-Received: from 206-248-186-71.dsl.teksavvy.com (HELO pastel.home) ([206.248.186.71]) by ironport2-out.pppoe.ca with ESMTP; 18 Feb 2010 09:00:45 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 76A318050; Thu, 18 Feb 2010 09:00:45 -0500 (EST) In-Reply-To: <87tytflcrm.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Wed, 17 Feb 2010 23:26:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 18 Feb 2010 09:02:02 -0500 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:35169 Archived-At: > is there any reason to expand-file-name here in bookmark-relocate? > ,---- > | (let* ((bmrk-filename (bookmark-get-filename bookmark)) > | (newloc (expand-file-name ==> here > | (read-file-name > | (format "Relocate %s to: " bookmark) > | (file-name-directory bmrk-filename))))) > `---- > Work fine without here. read-file-name can return a relative file name, so yes, expand-file-name is needed. So the solution is to add a call to abbreviate-file-name. Stefan