From: Juri Linkov Date: Sun, 8 Dec 2019 22:27:34 +0000 (+0200) Subject: * lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode. X-Git-Tag: emacs-27.0.90~403 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=252e5a88523e119475cfee933b161fdd0b977831;p=emacs.git * 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). --- diff --git a/lisp/simple.el b/lisp/simple.el index 67ddab3d343..a0250cc2ac4 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)