Function: cider-stacktrace--toggle-visibility
cider-stacktrace--toggle-visibility is a byte-compiled function
defined in cider-stacktrace.el.
Signature
(cider-stacktrace--toggle-visibility ID)
Documentation
Toggle visibility of the region with ID invisibility prop.
ID can also be a button, in which case button's property :id is used instead. This function can be used directly in button actions.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-stacktrace.el
(defun cider-stacktrace--toggle-visibility (id)
"Toggle visibility of the region with ID invisibility prop.
ID can also be a button, in which case button's property :id is used
instead. This function can be used directly in button actions."
(let ((id (if (or (numberp id) (symbolp id))
;; There is no proper way to identify buttons. Assuming that
;; id's can be either numbers or symbols.
id
(button-get id :id))))
(if (and (consp buffer-invisibility-spec)
(assoc id buffer-invisibility-spec))
(remove-from-invisibility-spec (cons id t))
(add-to-invisibility-spec (cons id t)))))