Function: calc-top-selected
calc-top-selected is a byte-compiled function defined in
calc-sel.el.gz.
Signature
(calc-top-selected &optional N M)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-sel.el.gz
(defun calc-top-selected (&optional n m)
(and calc-any-selections
calc-use-selections
(progn
(or n (setq n 1))
(or m (setq m 1))
(calc-check-stack (+ n m -1))
(let ((top (nthcdr (+ m calc-stack-top -1) calc-stack))
(sel nil))
(while (>= (setq n (1- n)) 0)
(if (nth 2 (car top))
(setq sel (if sel t (nth 2 (car top)))))
(setq top (cdr top)))
sel))))