Function: string-edit-done
string-edit-done is an interactive and byte-compiled function defined
in string-edit.el.gz.
Signature
(string-edit-done)
Documentation
Finish editing the string and call the callback function.
This will kill the current buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/string-edit.el.gz
(defun string-edit-done ()
"Finish editing the string and call the callback function.
This will kill the current buffer."
(interactive)
(let* ((string
(save-excursion
(goto-char (point-min))
;; Skip past the help text.
(text-property-search-forward 'string-edit--prompt)
(buffer-substring (point) (point-max))))
(valid (funcall (or string-edit--read #'identity) string))
(callback string-edit--success-callback))
(quit-window 'kill)
(funcall callback valid)))