Function: indent-bars--custom-set

indent-bars--custom-set is a natively compiled function defined in indent-bars.el.

Signature

(indent-bars--custom-set SYM VAL)

Documentation

Set SYM to VAL, and reset indent-bars in all windows.

Source Code

;; Defined in /nix/store/zkcdcnmcj3605fj09x584bf58d85brax-emacs-packages-deps/share/emacs/site-lisp/elpa/indent-bars-1.0.1/indent-bars.el
(defun indent-bars--custom-set (sym val)
  "Set SYM to VAL, and reset `indent-bars' in all windows."
  (set-default-toplevel-value sym val)
  (when (and (not indent-bars--custom-set-inhibit) (boundp 'indent-bars-mode))
    (let ((indent-bars--custom-set-inhibit t)) ; prevent re-entry
      (cl-loop for win in (window-list)
	       if (buffer-local-value 'indent-bars-mode (window-buffer win)) do
	       (with-selected-window win
		 (indent-bars-reset)
		 (let ((indent-bars-depth-update-delay 0))
		   (indent-bars--compute-and-highlight-current-depth 'force))
		 (run-hooks 'indent-bars-custom-set))
	       and return win))))