aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-01-12 00:42:57 +0000
committerJuri Linkov2005-01-12 00:42:57 +0000
commit0137bae6053ee443661d6b11a0cf7e383593b5fb (patch)
tree0b5ccd39263474d5eab6ca0f82332d7afaf6a6b6
parent987d1819c1486eb76d341ba22c8152fd07c89005 (diff)
downloademacs-0137bae6053ee443661d6b11a0cf7e383593b5fb.tar.gz
emacs-0137bae6053ee443661d6b11a0cf7e383593b5fb.zip
(pop-mark): Move deactivate-mark out of conditional
part to deactivate the active mark regardless of the state of the mark ring.
-rw-r--r--lisp/simple.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 565a6cba8ee..bdc51546a84 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3008,10 +3008,10 @@ Does not set point. Does nothing if mark ring is empty."
3008 (when mark-ring 3008 (when mark-ring
3009 (setq mark-ring (nconc mark-ring (list (copy-marker (mark-marker))))) 3009 (setq mark-ring (nconc mark-ring (list (copy-marker (mark-marker)))))
3010 (set-marker (mark-marker) (+ 0 (car mark-ring)) (current-buffer)) 3010 (set-marker (mark-marker) (+ 0 (car mark-ring)) (current-buffer))
3011 (deactivate-mark)
3012 (move-marker (car mark-ring) nil) 3011 (move-marker (car mark-ring) nil)
3013 (if (null (mark t)) (ding)) 3012 (if (null (mark t)) (ding))
3014 (setq mark-ring (cdr mark-ring)))) 3013 (setq mark-ring (cdr mark-ring)))
3014 (deactivate-mark))
3015 3015
3016(defalias 'exchange-dot-and-mark 'exchange-point-and-mark) 3016(defalias 'exchange-dot-and-mark 'exchange-point-and-mark)
3017(defun exchange-point-and-mark (&optional arg) 3017(defun exchange-point-and-mark (&optional arg)