bug#81467: [PATCH] Make bookmark-jump work with other-window/frame/tab-prefix
martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]> Fri, 31 Jul 2026 09:43:13 +0200
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
> I think it's better to look at a concrete example > to get a general picture applicable to all other cases: Thanks. > 1. A bookmark handler 'shell-bookmark-jump' calls the function 'shell', > because for the authors it was the simplest way to implement the handler. > The function 'shell' uses 'pop-to-buffer' with the category 'comint' > that follows the user customization of displaying the shell buffer. > > 2. 'bookmark-jump' supports another customization by its argument > 'display-func'. A related command 'bookmark-jump-other-window' > sets this argument to 'switch-to-buffer-other-window'. > And the default 'display-func' is 'pop-to-buffer-same-window'. > > The unresolved question is whether jumping to a bookmarked shell > should follow the customization of displaying shell buffers > or more general customization of displaying a bookmark? > > Stéphane proposed to define this preference by a bookmark handler. > But now I think this preference should be customized by the user. > Then another question how to do this without adding more complexity? > How to customize the display preference for every bookmark handler? If the idea is to use one bookmark handler for all sorts of bookmarks and have both 'shell' and 'bookmark' adhere to it, then what would "every" in every bookmark handler stand for? martin