]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-bar.el (tab-bar-select-restore-windows): Use 'special-mode'.
authorJuri Linkov <juri@linkov.net>
Mon, 6 May 2024 16:48:04 +0000 (19:48 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:57:35 +0000 (18:57 +0200)
(cherry picked from commit 6e835dfaca2655a9ba1cfac2d3d3e236fd59674f)

lisp/tab-bar.el

index 26023f24389405bee383ff8fc239c8257a4c6b23..176982256825a442b23327640bcb7ae478790feb 100644 (file)
@@ -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