; Minor improvements of last change

* lisp/register.el (register-use-preview): Doc fix.
* doc/emacs/regs.texi (Registers): Fix wording.  (Bug#68654)
This commit is contained in:
Eli Zaretskii 2024-01-27 12:52:55 +02:00
parent 6b93e16e43
commit d36c370ce5
2 changed files with 8 additions and 7 deletions

View file

@ -72,9 +72,9 @@ inserted into the buffer, omitting registers which hold window
configurations, positions, and other un-insertable values.
@item insist
This value is like @code{t}, but in addition of pressing @key{RET} to
exit with the choosen value, you can press the same key as the name of
register.
This value is like @code{t}, but in addition you can press the same
key as the name of register one more time to exit the minibuffer,
instead of pressing @key{RET}.
@item nil
This value requests behavior similar to @code{traditional}, but the

View file

@ -133,9 +133,10 @@ to the value of `register--read-with-preview-function'.")
When set to `t', show a preview buffer with navigation and
highlighting.
When set to \\='insist behave as with `t' but allow exiting minibuffer
by pressing a second time the selected register, e.g pressing \"a\"
select register \"a\" and pressing again \"a\" exit minibuffer.
When set to \\='insist, behave as with `t', but allow exiting the
minibuffer by pressing the register name a second time. E.g.,
press \"a\" to select register \"a\", then press \"a\" again to
exit the minibuffer.
When nil, show a preview buffer without navigation and highlighting, and
exit the minibuffer immediately after inserting response in minibuffer.
When set to \\='never, behave as with nil, but with no preview buffer at
@ -145,7 +146,7 @@ according to `register-preview-delay'; this preserves the traditional
behavior of Emacs 29 and before."
:type '(choice
(const :tag "Use preview" t)
(const :tag "Use preview and exit on second hit" insist)
(const :tag "Use preview and exit by pressing register name" insist)
(const :tag "Use quick preview" nil)
(const :tag "Never use preview" never)
(const :tag "Basic preview like Emacs-29" traditional))