Function: register-read-with-preview

register-read-with-preview is a byte-compiled function defined in register.el.gz.

Signature

(register-read-with-preview PROMPT)

Documentation

Read register name, prompting with PROMPT; possibly show existing registers.

This reads and returns the name of a register. PROMPT should be a string to prompt the user for the name. If help-char (or a member of help-event-list) is pressed, display preview window unconditionally. This calls the function specified by register--read-with-preview-function.

View in manual

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/register.el.gz
(defun register-read-with-preview (prompt)
  "Read register name, prompting with PROMPT; possibly show existing registers.
This reads and returns the name of a register.  PROMPT should be a string
to prompt the user for the name.
If `help-char' (or a member of `help-event-list') is pressed,
display preview window unconditionally.
This calls the function specified by `register--read-with-preview-function'."
  (funcall register--read-with-preview-function prompt))