Function: calc-refresh-top
calc-refresh-top is an interactive and byte-compiled function defined
in calc-ext.el.gz.
Signature
(calc-refresh-top N)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-ext.el.gz
(defun calc-refresh-top (n)
(interactive "p")
(calc-wrapper
(cond ((< n 0)
(setq n (- n))
(let ((entry (calc-top n 'entry))
(calc-undo-list nil) (calc-redo-list nil))
(calc-pop-stack 1 n t)
(calc-push-list (list (car entry)) n (list (nth 2 entry)))))
((= n 0)
(calc-refresh))
(t
(let ((entries (calc-top-list n 1 'entry))
(calc-undo-list nil) (calc-redo-list nil))
(calc-pop-stack n 1 t)
(calc-push-list (mapcar #'car entries)
1
(mapcar (lambda (x) (nth 2 x))
entries)))))))