summaryrefslogtreecommitdiff
path: root/lisp/emulation
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-07-29 22:44:56 +0000
committerRichard M. Stallman <rms@gnu.org>1998-07-29 22:44:56 +0000
commit7602361d3a27ff883d4fd6cd01bde095b2be83c8 (patch)
tree69b16326210135cc8ab03fd5cb7cbe3df8c21ad8 /lisp/emulation
parentc748e06be02befb1202f5c8858db40458e892039 (diff)
downloademacs-7602361d3a27ff883d4fd6cd01bde095b2be83c8.tar.gz
(crisp-mark-line): Greatly simplified.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/crisp.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el
index 4f7d9766745..6f3071f2035 100644
--- a/lisp/emulation/crisp.el
+++ b/lisp/emulation/crisp.el
@@ -270,19 +270,13 @@ If ARG, insert results at point."
(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).