Function: calc-edit-format-macro-buffer
calc-edit-format-macro-buffer is a byte-compiled function defined in
calc-prog.el.gz.
Signature
(calc-edit-format-macro-buffer)
Documentation
Rewrite the Calc macro editing buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-prog.el.gz
(defun calc-edit-format-macro-buffer ()
"Rewrite the Calc macro editing buffer."
(calc-edit-macro-adjust-buffer)
(goto-char calc-edit-top)
(let ((type (calc-edit-macro-command-type)))
(while (not (string-equal type ""))
(cond
((or
(string-equal type "calc-algebraic-entry")
(string-equal type "calc-auto-algebraic-entry"))
(calc-edit-macro-combine-alg-ent))
((string-equal type "calc-execute-extended-command")
(calc-edit-macro-combine-ext-command))
((string-equal type "calcDigit-start")
(calc-edit-macro-combine-digits))
((or
(string-equal type "calc-store")
(string-equal type "calc-store-into")
(string-equal type "calc-store-neg")
(string-equal type "calc-store-plus")
(string-equal type "calc-store-minus")
(string-equal type "calc-store-div")
(string-equal type "calc-store-times")
(string-equal type "calc-store-power")
(string-equal type "calc-store-concat")
(string-equal type "calc-store-inv")
(string-equal type "calc-store-dec")
(string-equal type "calc-store-incr")
(string-equal type "calc-store-exchange")
(string-equal type "calc-unstore")
(string-equal type "calc-recall")
(string-equal type "calc-let")
(string-equal type "calc-permanent-variable"))
(forward-line 1)
(calc-edit-macro-combine-var-name))
((or
(string-equal type "calc-copy-variable")
(string-equal type "calc-copy-special-constant")
(string-equal type "calc-declare-variable"))
(forward-line 1)
(calc-edit-macro-combine-var-name)
(calc-edit-macro-combine-var-name))
(t (forward-line 1)))
(setq type (calc-edit-macro-command-type))))
(goto-char calc-edit-top))