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)
  (goto-char (point-min))
  ;; Skip past the help text.
  (text-property-search-forward 'string-edit--prompt)
  (let ((string (buffer-substring (point) (point-max)))
        (callback string-edit--success-callback))
    (quit-window 'kill)
    (funcall callback string)))