bug#81662: 31.1; [FR] Registers pointing to bookmarks

Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Stefan Monnier <[email protected]> writes:

>> (cl-defmethod register-val-describe ((bm (head bookmark)) _verbose)
>>   (princ (format "Bookmark \"%s\"" (cdr bm))))
>
> Ah, so you'd use `(bookmark . NAME)` as representation?
> I was expecting we'd use the actual "bookmark record" rather than use an
> indirection through `bookmark-alist`.  Now that I see this option, I'm
> not sure which is best.

Yes. I prefer the (bookmark . NAME) representation since I still want to
keep the bookmark around as a regular bookmark. The idea is to fuse the
mechanisms together.

However I think it would be fine to also support (bookmark . NAME-OR-RECORD),
since most bookmark functions can take a name or a record.

> === Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.