unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41691: [PATCH] Add bookmark-jump-other-tab
@ 2020-06-03 16:39 Javier Olaechea
  2020-06-03 17:16 ` Glenn Morris
  0 siblings, 1 reply; 14+ messages in thread
From: Javier Olaechea @ 2020-06-03 16:39 UTC (permalink / raw)
  To: 41691; +Cc: Javier Olaechea

* lisp/bookmark.el (bookmark-jump-other-tab): Add function to open a
bookmark on another tab
---
 lisp/bookmark.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 5bb1698171..99bb70ae0e 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1142,6 +1142,14 @@ bookmark-jump-other-frame
   (let ((pop-up-frames t))
     (bookmark-jump-other-window bookmark)))
 
+;;;###autoload
+(defun bookmark-jump-other-tab (bookmark)
+  "Jump to BOOKMARK in another tab.  See `bookmark-jump' for more."
+  (interactive
+   (list (bookmark-completing-read "Jump to bookmark (in another tab)"
+                                   bookmark-current-bookmark)))
+  (bookmark-jump bookmark 'switch-to-buffer-other-tab))
+
 (defun bookmark-jump-noselect (bookmark)
   "Return the location pointed to by BOOKMARK (see `bookmark-jump').
 The return value has the form (BUFFER . POINT).
-- 
2.17.1






^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-07-01 14:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 16:39 bug#41691: [PATCH] Add bookmark-jump-other-tab Javier Olaechea
2020-06-03 17:16 ` Glenn Morris
2020-06-03 23:00   ` Juri Linkov
2020-06-04 23:34     ` Juri Linkov
2020-06-06 23:42       ` Juri Linkov
2020-06-07  1:40         ` Javier Olaechea
2020-06-10 21:50       ` Juri Linkov
2020-06-21 23:18         ` Juri Linkov
2020-06-22 15:06           ` Eli Zaretskii
2020-06-28 22:00             ` Juri Linkov
2020-06-29 14:35               ` Eli Zaretskii
2020-06-29 22:52                 ` Juri Linkov
2020-06-30 21:30                   ` Juri Linkov
2020-07-01 14:34                     ` Eli Zaretskii

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).