summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2024-05-06 19:48:04 +0300
committerJuri Linkov <juri@linkov.net>2024-05-06 19:48:04 +0300
commit6e835dfaca2655a9ba1cfac2d3d3e236fd59674f (patch)
tree82c2c55f70bad69ebb11a37bbf58538655743f90
parent9ecd65a6607aaaaf4ef74f52e252ab1c64dcbdff (diff)
downloademacs-6e835dfaca2655a9ba1cfac2d3d3e236fd59674f.tar.gz
* lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'.
-rw-r--r--lisp/tab-bar.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 26023f24389..17698225682 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1451,7 +1451,6 @@ if it was visiting a file."
(new-buffer (generate-new-buffer
(format " *Old buffer %s*" name))))
(with-current-buffer new-buffer
- (set-auto-mode)
(insert (format-message "This window displayed the %s `%s'.\n"
(if file "file" "buffer")
name))
@@ -1464,7 +1463,7 @@ if it was visiting a file."
(set-window-point window (nth 3 quad))))
(insert "\n"))
(goto-char (point-min))
- (setq buffer-read-only t)
+ (special-mode)
(set-window-buffer window new-buffer))))))
(defcustom tab-bar-select-restore-context t