Function: transient-read-string-from-buffer

transient-read-string-from-buffer is a byte-compiled function defined in transient.el.gz.

Signature

(transient-read-string-from-buffer PROMPT VALUE _)

Documentation

Switch to a new buffer to edit STRING in a recursive edit.

Like read-string-from-buffer but accept an additional argument as provided by transient-infix-read (but ignore it). Only available when using Emacs 29.1 or greater.

Source Code

;; Defined in /usr/src/emacs/lisp/transient.el.gz
(defun transient-read-string-from-buffer (prompt value _)
  "Switch to a new buffer to edit STRING in a recursive edit.
Like `read-string-from-buffer' but accept an additional argument as
provided by `transient-infix-read' (but ignore it).  Only available
when using Emacs 29.1 or greater."
  (string-edit prompt (or value "")
               (lambda (edited)
                 (setq value edited)
                 (exit-recursive-edit))
               :abort-callback #'exit-recursive-edit)
  (recursive-edit)
  value)