summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-04-30 03:21:44 +0000
committerKarl Heuer <kwzh@gnu.org>1996-04-30 03:21:44 +0000
commitee0fc133ed3442f174856081654b3afe107eaee3 (patch)
treefed5ee4165da7c1948b58dc113b65356195eeadf /lisp/simple.el
parent739fc8ff639373e30bf0d291bc1aa50d7461cf88 (diff)
downloademacs-ee0fc133ed3442f174856081654b3afe107eaee3.tar.gz
(shell-command-on-region): Start of region to keep is
min of endpoints, not max.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 5617efa773d..829f39083d6 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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)