summaryrefslogtreecommitdiff
path: root/lisp/register.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-02-02 23:56:44 -0800
committerGlenn Morris <rgm@gnu.org>2014-02-02 23:56:44 -0800
commit7bcbca405fcab0cec6629856e9eeec8f97fd0a7d (patch)
treeff44f9ae4be646c5d597301118084654bec91c1a /lisp/register.el
parent15baaea8e763b5df8a7dee722c20293852845bd5 (diff)
downloademacs-7bcbca405fcab0cec6629856e9eeec8f97fd0a7d.tar.gz
Tidy up some -to-register function argument specs
* lisp/register.el (window-configuration-to-register) (frame-configuration-to-register): Unadvertise unused argument. * lisp/frameset.el (frameset-to-register): Remove unused argument.
Diffstat (limited to 'lisp/register.el')
-rw-r--r--lisp/register.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/register.el b/lisp/register.el
index 1a42d0bf376..786646139f1 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -201,6 +201,10 @@ Interactively, reads the register using `register-read-with-preview'."
;; of point in the current buffer, so record that separately.
(set-register register (list (current-window-configuration) (point-marker))))
+;; It has had the optional arg for ages, but never used it.
+(set-advertised-calling-convention 'window-configuration-to-register
+ '(register) "24.4")
+
(defun frame-configuration-to-register (register &optional _arg)
"Store the window configuration of all frames in register REGISTER.
Use \\[jump-to-register] to restore the configuration.
@@ -214,6 +218,10 @@ Interactively, reads the register using `register-read-with-preview'."
;; of point in the current buffer, so record that separately.
(set-register register (list (current-frame-configuration) (point-marker))))
+;; It has had the optional arg for ages, but never used it.
+(set-advertised-calling-convention 'frame-configuration-to-register
+ '(register) "24.4")
+
(defalias 'register-to-point 'jump-to-register)
(defun jump-to-register (register &optional delete)
"Move point to location stored in a register.