changeset 22849:d1d9c92ca734

(crisp-mark-line): Greatly simplified.
author Richard M. Stallman <rms@gnu.org>
date Wed, 29 Jul 1998 22:44:56 +0000
parents f17131794fbc
children e7684a1dd417
files lisp/emulation/crisp.el
diffstat 1 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emulation/crisp.el	Wed Jul 29 18:59:34 1998 +0000
+++ b/lisp/emulation/crisp.el	Wed Jul 29 22:44:56 1998 +0000
@@ -270,19 +270,13 @@
       (message foo))))
 
 (defun crisp-mark-line (arg)
-  "Put mark at the end of line.  Arg works as in `end-of-line'."
+  "Set mark at the end of the line.  Arg works as in `end-of-line'."
   (interactive "p")
-  (save-excursion
-    (if (and (eq last-command 'crisp-mark-line) (mark))
-	;; Extend the previous state in the same direction:
-	(progn
-	  (if (< (mark) (point)) (setq arg (- arg)))
-	  (goto-char (mark))
-	  (end-of-line arg)
-	  ;; Do not mess with the mark stack, but merely adjust the previous state:
-	  (set-mark (point)))
+  (let (newmark)
+    (save-excursion
       (end-of-line arg)
-      (push-mark (point) nil t))))
+      (setq newmark (point)))
+    (push-mark newmark nil t)))
 
 (defun crisp-kill-line (arg)
   "Mark and kill line(s).