Function: treemacs--read-string

treemacs--read-string is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--read-string PROMPT &optional INITIAL-INPUT)

Documentation

Read a string with an interface based on treemacs-read-string-input.

PROMPT and INITIAL-INPUT will be passed on to the read function.

PROMPT: String INITIAL-INPUT: String

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs--read-string (prompt &optional initial-input)
  "Read a string with an interface based on `treemacs-read-string-input'.
PROMPT and INITIAL-INPUT will be passed on to the read function.

PROMPT: String
INITIAL-INPUT: String"
  (declare (side-effect-free t))
  (pcase treemacs-read-string-input
    ('from-child-frame (cfrs-read prompt initial-input))
    ('from-minibuffer  (read-string prompt initial-input))
    (other (user-error "Unknown read-string-input value: `%s'" other))))