Function: help-fns-edit-variable
help-fns-edit-variable is an interactive and byte-compiled function
defined in help-fns.el.gz.
Signature
(help-fns-edit-variable)
Documentation
Edit the variable under point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/help-fns.el.gz
(defun help-fns-edit-variable ()
"Edit the variable under point."
(declare (completion ignore))
(interactive)
(let ((var (get-text-property (point) 'help-fns--edit-variable)))
(unless var
(error "No variable under point"))
(pop-to-buffer-same-window (format "*edit %s*" (nth 0 var)))
(prin1 (nth 1 var) (current-buffer))
(pp-buffer)
(goto-char (point-min))
(help-fns--edit-value-mode)
(insert (format ";; Edit the `%s' variable.\n" (nth 0 var))
(substitute-command-keys
";; `\\[help-fns-edit-mode-done]' to update the value and exit; \
`\\[help-fns-edit-mode-cancel]' to cancel.\n\n"))
(setq-local help-fns--edit-variable var)))