Fix `async-shell-command-display-buffer' display

* lisp/simple.el (shell-command): If `async-shell-command-display-buffer'
was nil, it did not respect `display-buffer-alist' entries with
`display-buffer-no-window'.  This behavior has been fixed (bug#64394).
This commit is contained in:
Eliza Velasquez 2023-06-30 17:35:44 -07:00 committed by Juri Linkov
parent 393958ea63
commit cb674ab40c

View file

@ -4734,7 +4734,7 @@ impose the use of a shell (with its need to quote arguments)."
(when (buffer-live-p buf)
(remove-function (process-filter proc)
nonce)
(display-buffer buf))))
(display-buffer buf '(nil (allow-no-window . t))))))
`((name . ,nonce)))))))
;; Otherwise, command is executed synchronously.
(shell-command-on-region (point) (point) command