Function: calc-edit-variable
calc-edit-variable is an autoloaded, interactive and byte-compiled
function defined in calc-store.el.gz.
Signature
(calc-edit-variable &optional VAR)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-store.el.gz
(defun calc-edit-variable (&optional var)
(interactive)
(calc-wrapper
(unless var
(setq var (calc-read-var-name
(format-prompt "Edit" (and calc-last-edited-variable
(calc-var-name
calc-last-edited-variable))))))
(or var (setq var calc-last-edited-variable))
(if var
(let* ((value (calc-var-value var)))
(if (eq (car-safe value) 'special-const)
(error "%s is a special constant" var))
(setq calc-last-edited-variable var)
(calc--edit-mode (lambda () (calc-finish-stack-edit var))
t
(format-message
"Editing variable `%s'" (calc-var-name var)))
(and value
(insert (math-format-nice-expr value (frame-width)) "\n")))))
(calc-show-edit-buffer))