Function: calc-stack-command-p
calc-stack-command-p is a byte-compiled function defined in
calc-prog.el.gz.
Signature
(calc-stack-command-p CMD)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-prog.el.gz
(defun calc-stack-command-p (cmd)
(if (and cmd (symbolp cmd))
(and (fboundp cmd)
(calc-stack-command-p (symbol-function cmd)))
(and (consp cmd)
(eq (car cmd) 'lambda)
(setq cmd (or (assq 'calc-wrapper cmd)
(assq 'calc-slow-wrapper cmd)))
(setq cmd (assq 'calc-enter-result cmd))
(memq (car (nth 3 cmd)) '(cons list))
(eq (car (nth 1 (nth 3 cmd))) 'quote)
(nth 1 (nth 1 (nth 3 cmd))))))