]> git.eshelyaron.com Git - emacs.git/commitdiff
(pop-to-mark-command): Do not set this-command.
authorKim F. Storm <storm@cua.dk>
Thu, 18 Apr 2002 22:16:50 +0000 (22:16 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 18 Apr 2002 22:16:50 +0000 (22:16 +0000)
(set-mark-command): Always jump to mark when called with arg.

lisp/ChangeLog
lisp/simple.el

index f58dc9f617330c1f645c54236d5aa8e4b5f4e1a9..0f2530c5cea952d535fb8525a786260fea933a1a 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-19  Kim F. Storm  <storm@cua.dk>
+
+       * simple.el (pop-to-mark-command): Do not set this-command.
+       (set-mark-command): Always jump to mark when called with arg.
+
 2002-04-18  Francesco Potorti`  <pot@gnu.org>
 
        * comint.el (comint-watch-for-password-prompt): Remove whitespace
index df7955098e012ff52dd8ba65c71206cd6d75dd53..71f33054dd19a51efe22df01d8f5125bc9c409ad 100644 (file)
@@ -2294,7 +2294,6 @@ Start discarding off end if gets this big."
   (interactive)
   (if (null (mark t))
       (error "No mark set in this buffer")
-    (setq this-command 'pop-to-mark-command)
     (goto-char (mark t))
     (pop-mark)))
 
@@ -2325,12 +2324,16 @@ purposes.  See the documentation of `set-mark' for more information."
       (setq transient-mark-mode nil))
   (cond
    ((not (eq this-command 'set-mark-command))
-    (push-mark-command t))
+    (if arg
+       (pop-to-mark-command)
+      (push-mark-command t)))
    ((eq last-command 'pop-to-mark-command)
     (if (and (consp arg) (> (prefix-numeric-value arg) 4))
        (push-mark-command nil)
+      (setq this-command 'pop-to-mark-command)
       (pop-to-mark-command)))
    (arg
+    (setq this-command 'pop-to-mark-command)
     (pop-to-mark-command))
    ((and (eq last-command 'set-mark-command)
         mark-active (null transient-mark-mode))