]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode.
authorJuri Linkov <juri@linkov.net>
Sun, 8 Dec 2019 22:27:34 +0000 (00:27 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 8 Dec 2019 22:27:34 +0000 (00:27 +0200)
This enables globalized minor modes explicitly after get-buffer-create
creates "*Shell Command Output*" buffer (bug#38111).

lisp/simple.el

index 67ddab3d343fb8951962aabf424b2685da1dd6fa..a0250cc2ac45fd58c0e4afcb9f8bc057d4a95c7b 100644 (file)
@@ -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)