diff options
| author | Richard M. Stallman | 1993-02-25 06:39:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-02-25 06:39:57 +0000 |
| commit | a8a6776b57f88d10c59f4d44ff73051d0ee92d25 (patch) | |
| tree | 52a34b5e648c185307a72cc2e2fbc233264c4c73 | |
| parent | fe48f821caa8b9bd09996cf7bdbdfcf12b58a1fb (diff) | |
| download | emacs-a8a6776b57f88d10c59f4d44ff73051d0ee92d25.tar.gz emacs-a8a6776b57f88d10c59f4d44ff73051d0ee92d25.zip | |
(point-to-register): Make arg ARG optional.
(window-configuration-to-register): Likewise.
(frame-configuration-to-register): Likewise.
| -rw-r--r-- | lisp/register.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/register.el b/lisp/register.el index 0921af97b11..885e5c5a0a7 100644 --- a/lisp/register.el +++ b/lisp/register.el | |||
| @@ -42,7 +42,7 @@ A list represents a rectangle; its elements are strings.") | |||
| 42 | (setq register-alist (cons aelt register-alist))) | 42 | (setq register-alist (cons aelt register-alist))) |
| 43 | value)) | 43 | value)) |
| 44 | 44 | ||
| 45 | (defun point-to-register (char arg) | 45 | (defun point-to-register (char &optional arg) |
| 46 | "Store current location of point in register REGISTER. | 46 | "Store current location of point in register REGISTER. |
| 47 | With prefix argument, store current frame configuration. | 47 | With prefix argument, store current frame configuration. |
| 48 | Use \\[jump-to-register] to go to that location or restore that configuration. | 48 | Use \\[jump-to-register] to go to that location or restore that configuration. |
| @@ -50,14 +50,14 @@ Argument is a character, naming the register." | |||
| 50 | (interactive "cPoint to register: \nP") | 50 | (interactive "cPoint to register: \nP") |
| 51 | (set-register char (if arg (current-frame-configuration) (point-marker)))) | 51 | (set-register char (if arg (current-frame-configuration) (point-marker)))) |
| 52 | 52 | ||
| 53 | (defun window-configuration-to-register (char arg) | 53 | (defun window-configuration-to-register (char &optional arg) |
| 54 | "Store the window configuration of the selected frame in register REGISTER. | 54 | "Store the window configuration of the selected frame in register REGISTER. |
| 55 | Use \\[jump-to-register] to restore the configuration. | 55 | Use \\[jump-to-register] to restore the configuration. |
| 56 | Argument is a character, naming the register." | 56 | Argument is a character, naming the register." |
| 57 | (interactive "cPoint to register: \nP") | 57 | (interactive "cPoint to register: \nP") |
| 58 | (set-register char (current-window-configuration))) | 58 | (set-register char (current-window-configuration))) |
| 59 | 59 | ||
| 60 | (defun frame-configuration-to-register (char arg) | 60 | (defun frame-configuration-to-register (char &optional arg) |
| 61 | "Store the window configuration of all frames in register REGISTER. | 61 | "Store the window configuration of all frames in register REGISTER. |
| 62 | Use \\[jump-to-register] to restore the configuration. | 62 | Use \\[jump-to-register] to restore the configuration. |
| 63 | Argument is a character, naming the register." | 63 | Argument is a character, naming the register." |