From aa247686c2aaa9f4848f7c10972ebc6047dc846d Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 30 Apr 1996 03:21:44 +0000 Subject: [PATCH] (shell-command-on-region): Start of region to keep is min of endpoints, not max. --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2