[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 f72bb4c: * lisp/tab-bar.el (switch-to-buffer-other-tab): Normal
From: |
Juri Linkov |
Subject: |
emacs-27 f72bb4c: * lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer. |
Date: |
Sat, 30 May 2020 18:30:45 -0400 (EDT) |
branch: emacs-27
commit f72bb4ce36686d814bbb540a7844f22570540bc8
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer.
* lisp/tab-bar.el (switch-to-buffer-other-tab): Use
'window-normalize-buffer-to-switch-to' on 'buffer-or-name',
like does 'pop-to-buffer' used by 'switch-to-buffer-other-frame',
instead of raising the error "Invalid buffer" on a non-existent buffer name.
---
lisp/tab-bar.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 69863e5..5c237e7 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1526,9 +1526,10 @@ indirectly called by the latter."
Like \\[switch-to-buffer-other-frame] (which see), but creates a new tab."
(interactive
(list (read-buffer-to-switch "Switch to buffer in other tab: ")))
- (display-buffer buffer-or-name '((display-buffer-in-tab
- display-buffer-same-window)
- (inhibit-same-window . nil))
+ (display-buffer (window-normalize-buffer-to-switch-to buffer-or-name)
+ '((display-buffer-in-tab
+ display-buffer-same-window)
+ (inhibit-same-window . nil))
norecord))
(defun find-file-other-tab (filename &optional wildcards)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 f72bb4c: * lisp/tab-bar.el (switch-to-buffer-other-tab): Normalize buffer.,
Juri Linkov <=