From: Juri Linkov Date: Mon, 6 May 2024 16:48:04 +0000 (+0300) Subject: * lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fbcac51378a235f69e1492f662faa688295a2758;p=emacs.git * lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'. (cherry picked from commit 6e835dfaca2655a9ba1cfac2d3d3e236fd59674f) --- 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