diff options
| author | Kim F. Storm | 2004-12-14 12:17:43 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-12-14 12:17:43 +0000 |
| commit | 24199fe75aa6e8842fd68d02b0f766bb5a67dd44 (patch) | |
| tree | 9c1ae6798da48d536cd51625234d80c40ff5ba69 | |
| parent | 5b631efcca1d76407a069e63f703339505dd01bc (diff) | |
| download | emacs-24199fe75aa6e8842fd68d02b0f766bb5a67dd44.tar.gz emacs-24199fe75aa6e8842fd68d02b0f766bb5a67dd44.zip | |
(inhibit-mark-movement): Remove defvar.
(beginning-of-buffer, end-of-buffer): Don't use it.
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 3a55d5f27ca..3c9e8c72428 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -645,10 +645,6 @@ If BACKWARD-ONLY is non-nil, only delete spaces before point." | |||
| 645 | (skip-chars-forward " \t") | 645 | (skip-chars-forward " \t") |
| 646 | (constrain-to-field nil orig-pos t))))) | 646 | (constrain-to-field nil orig-pos t))))) |
| 647 | 647 | ||
| 648 | (defvar inhibit-mark-movement nil | ||
| 649 | "If non-nil, movement commands, such as \\[beginning-of-buffer], \ | ||
| 650 | do not set the mark.") | ||
| 651 | |||
| 652 | (defun beginning-of-buffer (&optional arg) | 648 | (defun beginning-of-buffer (&optional arg) |
| 653 | "Move point to the beginning of the buffer; leave mark at previous position. | 649 | "Move point to the beginning of the buffer; leave mark at previous position. |
| 654 | With \\[universal-argument] prefix, do not set mark at previous position. | 650 | With \\[universal-argument] prefix, do not set mark at previous position. |
| @@ -660,8 +656,7 @@ of the accessible part of the buffer. | |||
| 660 | Don't use this command in Lisp programs! | 656 | Don't use this command in Lisp programs! |
| 661 | \(goto-char (point-min)) is faster and avoids clobbering the mark." | 657 | \(goto-char (point-min)) is faster and avoids clobbering the mark." |
| 662 | (interactive "P") | 658 | (interactive "P") |
| 663 | (or inhibit-mark-movement | 659 | (or (consp arg) |
| 664 | (consp arg) | ||
| 665 | (and transient-mark-mode mark-active) | 660 | (and transient-mark-mode mark-active) |
| 666 | (push-mark)) | 661 | (push-mark)) |
| 667 | (let ((size (- (point-max) (point-min)))) | 662 | (let ((size (- (point-max) (point-min)))) |
| @@ -686,8 +681,7 @@ of the accessible part of the buffer. | |||
| 686 | Don't use this command in Lisp programs! | 681 | Don't use this command in Lisp programs! |
| 687 | \(goto-char (point-max)) is faster and avoids clobbering the mark." | 682 | \(goto-char (point-max)) is faster and avoids clobbering the mark." |
| 688 | (interactive "P") | 683 | (interactive "P") |
| 689 | (or inhibit-mark-movement | 684 | (or (consp arg) |
| 690 | (consp arg) | ||
| 691 | (and transient-mark-mode mark-active) | 685 | (and transient-mark-mode mark-active) |
| 692 | (push-mark)) | 686 | (push-mark)) |
| 693 | (let ((size (- (point-max) (point-min)))) | 687 | (let ((size (- (point-max) (point-min)))) |