Function: calc-show-selections
calc-show-selections is an autoloaded, interactive and byte-compiled
function defined in calc-sel.el.gz.
Signature
(calc-show-selections ARG)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-sel.el.gz
(defun calc-show-selections (arg)
(interactive "P")
(calc-wrapper
(calc-preserve-point)
(setq calc-show-selections (if arg
(> (prefix-numeric-value arg) 0)
(not calc-show-selections)))
(let ((p calc-stack))
(while (and p
(or (null (nth 2 (car p)))
(equal (car p) calc-selection-cache-entry)))
(setq p (cdr p)))
(or (and p
(let ((calc-selection-cache-default-entry
calc-selection-cache-entry))
(calc-do-refresh)))
(and calc-selection-cache-entry
(let ((sel (nth 2 calc-selection-cache-entry)))
(setcar (nthcdr 2 calc-selection-cache-entry) nil)
(calc-change-current-selection sel)))))
(message (if calc-show-selections
(if calc-highlight-selections-with-faces
"De-emphasizing all but selected part of formulas"
"Displaying only selected part of formulas")
(if calc-highlight-selections-with-faces
"Emphasizing selected part of formulas"
"Displaying all but selected part of formulas")))))