aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-24 18:46:13 +0000
committerRichard M. Stallman1993-05-24 18:46:13 +0000
commitc3e46f0c63ec0a2278d7f22ec8ace85dc442407c (patch)
tree5139e1ace27441c664b7592abb3f49dc3533e89f
parenta706b8084a5af427a54a384122c4f6c0766ade59 (diff)
downloademacs-c3e46f0c63ec0a2278d7f22ec8ace85dc442407c.tar.gz
emacs-c3e46f0c63ec0a2278d7f22ec8ace85dc442407c.zip
(shell-command): Don't activate mark even momentarily.
-rw-r--r--lisp/simple.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index f5184105361..729685ddaed 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -648,7 +648,12 @@ This cannot be done asynchronously."
648 ;; aliases for shell commands then they can still have them. 648 ;; aliases for shell commands then they can still have them.
649 (call-process shell-file-name nil t nil 649 (call-process shell-file-name nil t nil
650 "-c" command) 650 "-c" command)
651 (exchange-point-and-mark)) 651 ;; This is like exchange-point-and-mark, but doesn't activate the mark.
652 ;; It is cleaner to avoid activation, even though the command
653 ;; loop would deactivate the mark because we inserted text.
654 (goto-char (prog1 (mark t)
655 (set-marker (mark-marker) (point)
656 (current-buffer)))))
652 ;; Preserve the match data in case called from a program. 657 ;; Preserve the match data in case called from a program.
653 (let ((data (match-data))) 658 (let ((data (match-data)))
654 (unwind-protect 659 (unwind-protect