]> git.eshelyaron.com Git - emacs.git/commit
Don't confirm with RET even when overwriting in register commands
authorThierry Volpiatto <thievol@posteo.net>
Mon, 11 Dec 2023 06:02:40 +0000 (07:02 +0100)
committerThierry Volpiatto <thievol@posteo.net>
Wed, 20 Dec 2023 17:14:01 +0000 (18:14 +0100)
commit46367e0a5c9a58087d59f19966b23ee980bdbb24
tree1f7cf464a3ddcbd0f878b0038fce8afb2f2ac146
parent0d518b78d785613967fb1b375aa7932385991891
Don't confirm with RET even when overwriting in register commands

This happen when register-use-preview is nil or never.
This reproduce what we had previously in 29.1 but with filtering in
the preview and default registers are provided for the commands of
type 'set'.

This is implemented with cl-defmethod to keep the code as much as
possible configurable.

* lisp/register.el (register-preview-info): New slot.
(register-command-info): Add new methods for copy-to-register,
point-to-register, number-to-register,
window-configuration-to-register, frameset-to-register and
copy-rectangle-to-register.
(register-read-with-preview): Bind noconfirm.
lisp/register.el