]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix `async-shell-command-display-buffer' display
authorEliza Velasquez <eliza@eliza.sh>
Sat, 1 Jul 2023 00:35:44 +0000 (17:35 -0700)
committerJuri Linkov <juri@linkov.net>
Tue, 4 Jul 2023 17:54:15 +0000 (20:54 +0300)
* 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).

lisp/simple.el

index 321734a502652814b92f06b1497fcafbc2ce6915..7da2bf0fae24917081473af28a2de233274952e6 100644 (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