]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-command-on-region): Don't go into the REPLACE = t
authorRichard M. Stallman <rms@gnu.org>
Fri, 26 Feb 1999 03:48:07 +0000 (03:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 26 Feb 1999 03:48:07 +0000 (03:48 +0000)
case just because the current buffer is the output buffer.

lisp/simple.el

index 10ece47318029d4b00009fe33e8911903a35a35d..116304482983ea96a41d9f59be9059f743f5017f 100644 (file)
@@ -1242,8 +1242,7 @@ of ERROR-BUFFER."
        exit-status)
     (if (or replace
            (and output-buffer
-                (not (or (bufferp output-buffer) (stringp output-buffer))))
-           (equal (buffer-name (current-buffer)) "*Shell Command Output*"))
+                (not (or (bufferp output-buffer) (stringp output-buffer)))))
        ;; Replace specified region with output from command.
        (let ((swap (and replace (< start end))))
          ;; Don't muck with mark unless REPLACE says we should.