1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

; Fix documentation of register-preview changes

* etc/NEWS: Fix wording of 'register-use-preview' entry.

* lisp/register.el (register-use-preview): Doc fix.  Add ':version'.
This commit is contained in:
Eli Zaretskii 2023-12-09 12:02:48 +02:00
parent ca709f9c06
commit 598ab9ca10
2 changed files with 11 additions and 9 deletions

View File

@ -1176,8 +1176,9 @@ showcases all their customization options.
---
** 'register-preview-delay' is no longer used.
Register preview is no more delayed. If you want to disable it, use
'register-use-preview' instead with a boolean value.
Register preview is no longer delayed. If you want to disable the
preview, customize the new option 'register-use-preview' to the value
'never'.
+++
** 'M-TAB' now invokes 'completion-at-point' also in Text mode.

View File

@ -107,17 +107,18 @@ If nil, do not show register previews, unless `help-char' (or a member of
:type '(repeat string))
(defcustom register-use-preview t
"Maybe show register preview.
"Whether to show preview of registers.
When set to `t' show a preview buffer with navigation and highlighting.
When nil show a basic preview buffer and exit minibuffer
immediately after insertion in minibuffer.
When set to \\='never behave as above but with no preview buffer at
all."
If the value is t, show a preview buffer with navigation and highlighting.
If the value is nil, show a basic preview buffer and exit minibuffer
immediately after the register name is inserted into minibuffer.
If the value is \\='never, behave as for nil, but with no preview buffer
at all."
:type '(choice
(const :tag "Use preview" t)
(const :tag "Use quick preview" nil)
(const :tag "Never use preview" never)))
(const :tag "Never use preview" never))
:version "30.1")
(defun get-register (register)
"Return contents of Emacs register named REGISTER, or nil if none."