diff options
| author | Kim F. Storm | 2003-03-22 00:18:12 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-03-22 00:18:12 +0000 |
| commit | f45a683109971529661c08ac422c922aa716fa71 (patch) | |
| tree | 3cd1200ea314d63d6e546fa06d6279cd211668ec | |
| parent | 16210a2570af045fe4efc47c8c41f883265e34fe (diff) | |
| download | emacs-f45a683109971529661c08ac422c922aa716fa71.tar.gz emacs-f45a683109971529661c08ac422c922aa716fa71.zip | |
(cua-set-mark): Doc fixes.
Allow pop-global-mark to be repeated with C-x C-SPC C-SPC...
C-u C-u C-SPC now unconditionally sets the mark.
| -rw-r--r-- | lisp/emulation/cua-base.el | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 9e1f271a7bb..254a6b29c75 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -870,18 +870,28 @@ of text." | |||
| 870 | 870 | ||
| 871 | (defun cua-set-mark (&optional arg) | 871 | (defun cua-set-mark (&optional arg) |
| 872 | "Set mark at where point is, clear mark, or jump to mark. | 872 | "Set mark at where point is, clear mark, or jump to mark. |
| 873 | With no prefix argument, set mark, push old mark position on local mark | 873 | |
| 874 | ring, and push mark on global mark ring, or if mark is already set, clear mark. | 874 | With no prefix argument, clear mark if already set. Otherwise, set |
| 875 | With argument, jump to mark, and pop a new position for mark off the ring; | 875 | mark, and push old mark position on local mark ring; also push mark on |
| 876 | then it jumps to the next mark off the ring if repeated with no argument, or | 876 | global mark ring if last mark was set in another buffer. |
| 877 | sets the mark at the new position if repeated with argument." | 877 | |
| 878 | With argument, jump to mark, and pop a new position for mark off | ||
| 879 | the local mark ring \(this does not affect the global mark ring\). | ||
| 880 | Use \\[pop-global-mark] to jump to a mark off the global mark ring | ||
| 881 | \(see `pop-global-mark'\). Repeating the command without the prefix | ||
| 882 | jumps to the next position off the local \(or global\) mark ring. | ||
| 883 | |||
| 884 | With a double \\[universal-argument] prefix argument, unconditionally set mark." | ||
| 878 | (interactive "P") | 885 | (interactive "P") |
| 879 | (cond | 886 | (cond |
| 887 | ((and (consp arg) (> (prefix-numeric-value arg) 4)) | ||
| 888 | (push-mark-command nil)) | ||
| 880 | ((eq last-command 'pop-to-mark-command) | 889 | ((eq last-command 'pop-to-mark-command) |
| 881 | (if (and (consp arg) (> (prefix-numeric-value arg) 4)) | 890 | (setq this-command 'pop-to-mark-command) |
| 882 | (push-mark-command nil) | 891 | (pop-to-mark-command)) |
| 883 | (setq this-command 'pop-to-mark-command) | 892 | ((and (eq last-command 'pop-global-mark) (not arg)) |
| 884 | (pop-to-mark-command))) | 893 | (setq this-command 'pop-global-mark) |
| 894 | (pop-global-mark)) | ||
| 885 | (arg | 895 | (arg |
| 886 | (setq this-command 'pop-to-mark-command) | 896 | (setq this-command 'pop-to-mark-command) |
| 887 | (pop-to-mark-command)) | 897 | (pop-to-mark-command)) |