emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/lisp.el [lexbind]
Date: Mon, 25 Oct 2004 00:44:09 -0400

Index: emacs/lisp/emacs-lisp/lisp.el
diff -c emacs/lisp/emacs-lisp/lisp.el:1.46.4.9 
emacs/lisp/emacs-lisp/lisp.el:1.46.4.10
*** emacs/lisp/emacs-lisp/lisp.el:1.46.4.9      Thu Sep 16 00:12:21 2004
--- emacs/lisp/emacs-lisp/lisp.el       Mon Oct 25 04:19:40 2004
***************
*** 75,91 ****
  move to with the same argument.
  If this command is repeated, it marks the next ARG sexps after the ones
  already marked."
!   (interactive "p")
    (cond ((and (eq last-command this-command) (mark t))
         (set-mark
          (save-excursion
           (goto-char (mark))
!          (forward-sexp (or arg 1))
           (point))))
        (t
         (push-mark
          (save-excursion
!           (forward-sexp (or arg 1))
            (point))
          nil t))))
  
--- 75,93 ----
  move to with the same argument.
  If this command is repeated, it marks the next ARG sexps after the ones
  already marked."
!   (interactive "P")
    (cond ((and (eq last-command this-command) (mark t))
+        (setq arg (if arg (prefix-numeric-value arg)
+                    (if (> (mark) (point)) 1 -1)))
         (set-mark
          (save-excursion
           (goto-char (mark))
!          (forward-sexp arg)
           (point))))
        (t
         (push-mark
          (save-excursion
!           (forward-sexp (prefix-numeric-value arg))
            (point))
          nil t))))
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]