]> git.eshelyaron.com Git - emacs.git/commit
Provide emacs-29 behavior for register-preview
authorThierry Volpiatto <thievol@posteo.net>
Tue, 12 Dec 2023 06:24:32 +0000 (07:24 +0100)
committerThierry Volpiatto <thievol@posteo.net>
Wed, 20 Dec 2023 17:14:02 +0000 (18:14 +0100)
commit67e16d37e9c83fea9f67d144eeac27a83d52c949
tree9dcecd8c57a9a32d87909531228449e222889001
parent46367e0a5c9a58087d59f19966b23ee980bdbb24
Provide emacs-29 behavior for register-preview

It is now the default with a value of register-use-preview eq to
basic.
To change this one have now to customize register-use-preview to
another value.

* lisp/register.el (register-preview-delay): Remove obsolescence.
(register--read-with-preview-function): New.
(register-use-preview): New option basic, it is now the default.
(register-preview-default-1): New the register-preview-default used by
`register-read-with-preview-fancy`.
(register-preview-default): Restored (same as Emacs-29).
(register--preview-function): Generic fn that return the right
function for register--preview-function.
(register-preview): Restored (same behavior as Emacs-29).
(register-preview-1): Used by `register-read-with-preview-fancy'.
(register-read-with-preview-basic): The old
register-read-with-preview.
(register-read-with-preview-fancy): The new
register-read-with-preview.
lisp/register.el