]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/simple.el (shell-command): Fix last change (bug#79067).
authorEli Zaretskii <eliz@gnu.org>
Mon, 21 Jul 2025 10:41:18 +0000 (13:41 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:10:59 +0000 (10:10 +0200)
(cherry picked from commit 527dc4fafff13a86cc1b9c6dfc174c592a29b566)

lisp/simple.el

index 62130ce1cf3c9a5000a8d26ca859e746f41ed212..d362c0c82722d0e90bd80f9ee2c80075c258e37a 100644 (file)
@@ -4577,7 +4577,8 @@ impose the use of a shell (with its need to quote arguments)."
        ;; Output goes in a separate buffer.
        (if (string-match "[ \t]*&[ \t]*\\'" command)
            ;; Command ending with ampersand means asynchronous.
-            (let* ((_ (or (bufferp output-buffer)
+            (let* ((_ (or (null output-buffer)
+                          (bufferp output-buffer)
                           (stringp output-buffer)
                           (error "Asynchronous shell commands cannot output to current buffer")))
                    (buffer (get-buffer-create