all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Javier Olaechea <pirata@gmail.com>
To: 41691@debbugs.gnu.org
Cc: Javier Olaechea <pirata@gmail.com>
Subject: bug#41691: [PATCH] Add bookmark-jump-other-tab
Date: Wed,  3 Jun 2020 11:39:25 -0500	[thread overview]
Message-ID: <20200603163925.11161-1-pirata@gmail.com> (raw)

* 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






             reply	other threads:[~2020-06-03 16:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 16:39 Javier Olaechea [this message]
2020-06-03 17:16 ` bug#41691: [PATCH] Add bookmark-jump-other-tab 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200603163925.11161-1-pirata@gmail.com \
    --to=pirata@gmail.com \
    --cc=41691@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.