emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 252e5a8: * lisp/simple.el (shell-command-on-region): Use set-buff


From: Juri Linkov
Subject: master 252e5a8: * lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode.
Date: Sun, 8 Dec 2019 17:27:41 -0500 (EST)

branch: master
commit 252e5a88523e119475cfee933b161fdd0b977831
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode.
    
    This enables globalized minor modes explicitly after get-buffer-create
    creates "*Shell Command Output*" buffer (bug#38111).
---
 lisp/simple.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/simple.el b/lisp/simple.el
index 67ddab3..a0250cc 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3925,6 +3925,7 @@ interactively, this is t."
         ;; replacing its entire contents.
         (let ((buffer (get-buffer-create
                        (or output-buffer "*Shell Command Output*"))))
+          (set-buffer-major-mode buffer) ; Enable globalized modes (bug#38111)
           (unwind-protect
               (if (and (eq buffer (current-buffer))
                        (or (not shell-command-dont-erase-buffer)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]