unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jamie Beardslee <beardsleejamie@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: [PATCH] Add user option to disable location in bookmarks
Date: Sun, 21 Jun 2020 10:24:42 +1200	[thread overview]
Message-ID: <87blld2x5h.fsf@gmail.com> (raw)
In-Reply-To: ad9899d6-1ce8-4f78-a96a-6c52041a9aec@default

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]

  reply	other threads:[~2020-06-20 22:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-20 19:27 [PATCH] Add user option to disable location in bookmarks Jamie Beardslee
2020-06-20 21:35 ` Drew Adams
2020-06-20 22:24   ` Jamie Beardslee [this message]
2020-06-20 22:50     ` Stefan Monnier
2020-06-20 23:37       ` Drew Adams
2020-06-20 23:34     ` Drew Adams
2020-06-21  0:22       ` Jamie Beardslee
2020-06-21  5:19         ` Drew Adams
2020-06-21  9:56         ` Basil L. Contovounesios
2020-06-21  9:13       ` Yuri Khan
2020-06-21 18:44         ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87blld2x5h.fsf@gmail.com \
    --to=beardsleejamie@gmail.com \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).