[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add user option to disable location in bookmarks
From: |
Jamie Beardslee |
Subject: |
Re: [PATCH] Add user option to disable location in bookmarks |
Date: |
Sun, 21 Jun 2020 10:24:42 +1200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> You don't specify what the actual problem is. How does a bookmark
> interfere with save-place? Maybe provide a step-by-step recipe to
> show the problem, starting from `emacs -Q' (no init file).
‘bookmark-set’ saves the position--by which I mean point and context
strings--with no option (that I can find) of not saving it. When using
‘bookmark-jump’, point will always be moved to that position, ignoring
the position from save-place.
> Just what behavior are you looking for? Do you not want to open the
> file at all? (If so, what do you want the bookmark to do with the
> file, instead of opening it?)
>
> If you want the bookmark to open the file, where do you want the
> cursor to be in it - at what position?
My patch allows the user to choose whether or not the bookmark record
should be in control of the position.
> A bookmark can target a file in any way you want, including (but not
> limited to) opening it at a given position. You can easily bookmark a
> file so that the bookmark opens it with the cursor at position 1, for
> example. (And you need not visit a file in order to bookmark it.)
>
> Finally, a bookmark need not have any `location' field.
I understand this. I think it would be useful to have a simple
accessible way to effectively disable the point manipulation part of
bookmarks. It’s not exactly convenient to edit the bookmark file by
hand every time a bookmark is created just to disable this feature.
--
Jamie
signature.asc
Description: PGP signature