Function: calc-write-parse-table-part
calc-write-parse-table-part is an autoloaded and byte-compiled
function defined in calc-prog.el.gz.
Signature
(calc-write-parse-table-part P)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-prog.el.gz
(defun calc-write-parse-table-part (p)
(while p
(cond ((stringp (car p))
(let ((s (car p)))
(if (and (string-match "\\`\\\\dots\\>" s)
(not (memq calc-lang '(tex latex))))
(setq s (concat ".." (substring s 5))))
(if (or (and (string-match
"[a-zA-Z0-9\"{}]\\|\\`:=\\'\\|\\`#\\|\\`%%" s)
(string-match "[^a-zA-Z0-9\\]" s))
(and (assoc s '((")") ("]") (">")))
(not (cdr p))))
(insert (prin1-to-string s) " ")
(insert s " "))))
((integerp (car p))
(insert "#")
(or (= (car p) 0)
(insert "/" (int-to-string (car p))))
(insert " "))
((and (eq (car (car p)) '\?) (equal (car (nth 2 (car p))) "$$"))
(insert (car (nth 1 (car p))) " "))
(t
(insert "{ ")
(calc-write-parse-table-part (nth 1 (car p)))
(insert "}" (symbol-name (car (car p))))
(if (nth 2 (car p))
(calc-write-parse-table-part (list (car (nth 2 (car p)))))
(insert " "))))
(setq p (cdr p))))