>From d059307d9776cb316816eecd01b6115a0335f857 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Luyten Date: Thu, 11 Oct 2018 23:41:44 +0200 Subject: [PATCH 2/2] * lisp/bookmark.el (bookmark-bmenu-other-frame): new function Add bookmark-bmenu-other-frame function Document it Bind function to bookmark-bmenu-mode-map --- lisp/bookmark.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 5ee5248b97..e89252960c 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1570,6 +1570,7 @@ unique numeric suffixes \"<2>\", \"<3>\", etc." (set-keymap-parent map special-mode-map) (define-key map "v" 'bookmark-bmenu-select) (define-key map "w" 'bookmark-bmenu-locate) + (define-key map "5" 'bookmark-bmenu-other-frame) (define-key map "2" 'bookmark-bmenu-2-window) (define-key map "1" 'bookmark-bmenu-1-window) (define-key map "j" 'bookmark-bmenu-this-window) @@ -1711,6 +1712,8 @@ Bookmark names preceded by a \"*\" have annotations. \\[bookmark-bmenu-this-window] -- select this bookmark in place of the bookmark menu buffer. \\[bookmark-bmenu-other-window] -- select this bookmark in another window, so the bookmark menu bookmark remains visible in its window. +\\[bookmark-bmenu-other-frame] -- select this bookmark in another frame, + so the bookmark menu bookmark remains visible in its window. \\[bookmark-bmenu-switch-other-window] -- switch the other window to this bookmark. \\[bookmark-bmenu-rename] -- rename this bookmark (prompts for new name). \\[bookmark-bmenu-relocate] -- relocate this bookmark's file (prompts for new file). @@ -1979,6 +1982,12 @@ With a prefix arg, prompts for a file to save them in." (let ((bookmark (bookmark-bmenu-bookmark))) (bookmark--jump-via bookmark 'switch-to-buffer-other-window))) +(defun bookmark-bmenu-other-frame () + "Select this line's bookmark in other frame, leaving bookmark menu visible." + (interactive) + (let ((pop-up-frames t)) + (bookmark-jump bookmark 'display-buffer)) + (other-frame 1)) (defun bookmark-bmenu-switch-other-window () "Make the other window select this line's bookmark. -- 2.19.0