From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#5591: 23.1.92; bookmark.el and file path Date: Wed, 17 Feb 2010 23:26:37 +0100 Organization: ThierryVolpiatto Message-ID: <87tytflcrm.fsf@tux.homenetwork> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266447210 23464 80.91.229.12 (17 Feb 2010 22:53:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2010 22:53:30 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 17 23:53:23 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 1Nhslf-0004wf-A6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2010 23:53:15 +0100 Original-Received: from localhost ([127.0.0.1]:46605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nhsle-0006l6-TL for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2010 17:53:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhslH-0006T1-Kk for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:52:51 -0500 Original-Received: from [140.186.70.92] (port=58849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhslG-0006Rp-JE for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:52:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhslF-0006pp-18 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:52:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34565) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhslE-0006pf-VN for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:52:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NhsR7-0001o7-PF; Wed, 17 Feb 2010 17:32:01 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2010 22:32:01 +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.12664459086939 (code B ref -1); Wed, 17 Feb 2010 22:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Feb 2010 22:31:48 +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 1NhsQt-0001ns-Cj for submit@debbugs.gnu.org; Wed, 17 Feb 2010 17:31:47 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhsQr-0001nm-8W for submit@debbugs.gnu.org; Wed, 17 Feb 2010 17:31:46 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:47030) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhsQn-00071h-8c for submit@debbugs.gnu.org; Wed, 17 Feb 2010 17:31:41 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhsQl-00022J-Jb for submit@debbugs.gnu.org; Wed, 17 Feb 2010 17:31:41 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:52198) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NhsQl-00022D-DB for submit@debbugs.gnu.org; Wed, 17 Feb 2010 17:31:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhsQk-0003pI-TT for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:31:38 -0500 Original-Received: from [140.186.70.92] (port=37278 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhsQj-0003ne-1V for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:31:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhsQh-0003Xi-SO for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:31:36 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34312) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhsQh-0003XR-G9 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 17:31:35 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NhsQf-0005A5-DS for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 23:31:33 +0100 Original-Received: from 85.211.85-79.rev.gaoland.net ([79.85.211.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 23:31:33 +0100 Original-Received: from thierry.volpiatto by 85.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 23:31:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.211.85-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:pwPMyCmRakAEeYZfn9PB8kgo3d0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: Wed, 17 Feb 2010 17:32:01 -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:35154 Archived-At: Hi all, 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. Leo writes: > If you open a file in your home directory and bookmark it, the path in > bookmark list (C-x r l) will be something beginning with ~ for example: > ~/Emacs/gtd/Tasks.org. > > However, if the directory gtd does not exist and you use bookmark's > relocation to change to a new file, say ~/Emacs/todo/Tasks.org. The path > in bookmark list will be a absolute path: > /home/someone/Emacs/todo/Tasks.org. > > Using a absolute path here is not a good idea. For example I sync some > directories between machines and I don't have the same user name on all > of them. And these bookmarks will fail. > > Another case. I recently installed Snow Leopard and decided to create a > different user name for myself. But I find out many bookmarks are no > longer valid due to the use of absolute paths. > > > In GNU Emacs 23.1.92.2 (x86_64-apple-darwin10.2.0, Carbon Version 1.6.0 AppKit 1038.25) > of 2010-02-03 on Victoria.local > Windowing system distributor `Apple Inc.', version 10.6.2 > configured using `configure '--prefix=/usr/local/unix/emacs' '--with-mac'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: nil > value of $XMODIFIERS: nil > locale-coding-system: iso-latin-1-unix > default enable-multibyte-characters: t > > Major mode: Group > > > > > > -- Thierry Volpiatto