From 31ede454672c727c079b5576053e52639ba94fcc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Luyten Date: Fri, 12 Oct 2018 21:35:45 +0200 Subject: [PATCH 2/2] * lisp/bookmark.el (bookmark-bmenu-other-frame):new function Add bookmark-bmenu-other-frame Bind 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 9d55c4aada..7f73c22267 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1569,6 +1569,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) @@ -1710,6 +1711,7 @@ 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. \\[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 +1981,13 @@ With a prefix arg, prompts for a file to save them in." (bookmark--jump-via bookmark 'switch-to-buffer-other-window))) +(defun bookmark-bmenu-other-frame () + "Select this line's bookmark in other frame." + (interactive) + (let ((bookmark (bookmark-bmenu-bookmark)) + (pop-up-frames t)) + (bookmark-jump-other-window bookmark))) + (defun bookmark-bmenu-switch-other-window () "Make the other window select this line's bookmark. The current window remains selected." -- 2.19.0