[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Temporary notes in Emacs buffers?
From: |
Michael Heerdegen |
Subject: |
Re: Temporary notes in Emacs buffers? |
Date: |
Fri, 03 Jan 2020 02:07:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> I guess you mean just what you said before: You
> want to be able to move a file, and some bookmarks
> that target it, to a different directory, and have
> the bookmarks continue to work there.
Yes.
> > names. You are sure that there is no predefined way to use relative
> > names?
> You can define a bookmark handler for any type of
> bookmark. The handler could ignore the directory
> part of the recorded file name, and get the needed
> directory from somewhere else, e.g., from a global
> variable or a function. (It has to come from
> somewhere.) E.g., a variable could have an alist
> value with keys for your different whatevers (even
> nondir-filename keys) and with dirs as the values.
>
> But then you'd have to update the variable value
> when you move the targeted files. As I said before,
> you can write code that does something like that
> [...]
Can't I just use a file or directory local variable for that part? That
would be a trivial solution for the problem.
The problem is that the bookmark file can't know where I may have moved
a file to -- but I'm very unlikely to move the bookmark file very often.
So I would prefer a solution where the file knows where to ask for its
bookmarks and annotations, and the bookmark mechanism has the data and
the mean to deliver it.
Michael.
- Re: Temporary notes in Emacs buffers?, Michael Heerdegen, 2020/01/01
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/01
- Re: Temporary notes in Emacs buffers?, John Yates, 2020/01/01
- Re: Temporary notes in Emacs buffers?, Michael Heerdegen, 2020/01/01
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/01
- Re: Temporary notes in Emacs buffers?, Michael Heerdegen, 2020/01/01
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/02
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/02
- Re: Temporary notes in Emacs buffers?,
Michael Heerdegen <=
- Re: Temporary notes in Emacs buffers?, John Yates, 2020/01/02
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/03
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/03
- Re: Temporary notes in Emacs buffers?, Michael Heerdegen, 2020/01/04
- RE: Temporary notes in Emacs buffers?, Drew Adams, 2020/01/04
- Re: Temporary notes in Emacs buffers?, John Yates, 2020/01/06
- Re: Temporary notes in Emacs buffers?, tomas, 2020/01/06
- Re: Temporary notes in Emacs buffers?, John Yates, 2020/01/06
- Re: Temporary notes in Emacs buffers?, tomas, 2020/01/06
- Re: Temporary notes in Emacs buffers?, arthur miller, 2020/01/06