]> git.eshelyaron.com Git - emacs.git/commit
Reconcile register overwrite confirmation and kbd macros
authorEshel Yaron <me@eshelyaron.com>
Fri, 15 Dec 2023 16:39:07 +0000 (17:39 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Dec 2023 19:57:20 +0000 (20:57 +0100)
commit773509b596391025dedd155d0265bbd0f3371f44
tree9352910d949ee342dc17c066fcedda0d4c7f95fb
parenta99cb9e1106b6df43d50b60329825afc5bd49181
Reconcile register overwrite confirmation and kbd macros

Give full control over overwrite confirmation to callers of this
function.  Provide a helper function that such callers can use to
adhere to standard behavior, and in particular skip confirmation while
defining/executing keyboard macros.

* lisp/register.el (register-read-with-preview): Simplify.
(register-confirm-overwrite): New function.
(point-to-register, window-configuration-to-register)
(frame-configuration-to-register, number-to-register)
(copy-to-register, copy-rectangle-to-register)
* lisp/play/gametree.el (gametree-layout-to-register)
* lisp/kmacro.el (kmacro-to-register)
* lisp/frameset.el (frameset-to-register)
* lisp/cedet/semantic/senator.el (senator-copy-tag-to-register)
* lisp/calc/calc-yank.el (calc-copy-to-register): Use it.
* doc/emacs/regs.texi (Registers): Update.
* test/lisp/register-tests.el (register-test-bug27634): Adapt.
doc/emacs/regs.texi
lisp/calc/calc-yank.el
lisp/cedet/semantic/senator.el
lisp/frameset.el
lisp/kmacro.el
lisp/play/gametree.el
lisp/register.el
test/lisp/register-tests.el