all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5591: 23.1.92; bookmark.el and file path
Date: Wed, 17 Feb 2010 23:26:37 +0100	[thread overview]
Message-ID: <87tytflcrm.fsf@tux.homenetwork> (raw)
In-Reply-To: <m1r5ojfxsk.fsf@cam.ac.uk>

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 <sdl.web@gmail.com> 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








  reply	other threads:[~2010-02-17 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17 19:48 bug#5591: 23.1.92; bookmark.el and file path Leo
2010-02-17 22:26 ` Thierry Volpiatto [this message]
2010-02-18 14:00   ` Stefan Monnier
2010-02-18 18:54 ` Stefan Monnier
2010-02-20 11:18   ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tytflcrm.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.