From fbcac51378a235f69e1492f662faa688295a2758 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 6 May 2024 19:48:04 +0300 Subject: [PATCH] * lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'. (cherry picked from commit 6e835dfaca2655a9ba1cfac2d3d3e236fd59674f) --- lisp/tab-bar.el | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.39.5