]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-command-on-region): Start of region to keep is
authorKarl Heuer <kwzh@gnu.org>
Tue, 30 Apr 1996 03:21:44 +0000 (03:21 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 30 Apr 1996 03:21:44 +0000 (03:21 +0000)
min of endpoints, not max.

lisp/simple.el

index 5617efa773dbce319c75839b38cbfeccd440e4a2..829f39083d69e7688dec5d30b78c69912f3f12c3 100644 (file)
@@ -894,7 +894,7 @@ In either case, the output is inserted after point (leaving mark after it)."
              ;; then replace that region with the output.
              (progn (setq buffer-read-only nil)
                     (delete-region (max start end) (point-max))
-                    (delete-region (point-min) (max start end))
+                    (delete-region (point-min) (min start end))
                     (call-process-region (point-min) (point-max)
                                          shell-file-name t t nil
                                          shell-command-switch command)