Commit 252e5a88 authored by Juri Linkov's avatar Juri Linkov

* 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).
parent 9ea3137b
Pipeline #4273 failed with stage
in 80 minutes and 5 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment