From 252e5a88523e119475cfee933b161fdd0b977831 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 9 Dec 2019 00:27:34 +0200 Subject: [PATCH] * 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 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) -- 2.39.2