Function: indent-bars--compute-and-highlight-current-depth

indent-bars--compute-and-highlight-current-depth is a natively compiled function defined in indent-bars.el.

Signature

(indent-bars--compute-and-highlight-current-depth &optional FORCE)

Documentation

Compute and highlight current bar depth in the current buffer.

If FORCE is non-nil, update depth even if it has not changed.

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--compute-and-highlight-current-depth (&optional force)
  "Compute and highlight current bar depth in the current buffer.
If FORCE is non-nil, update depth even if it has not changed."
  (let ((depth (indent-bars--current-indentation-depth
		indent-bars-highlight-selection-method)))
    (when (and depth (or force (not (= depth indent-bars--current-depth))))
      (setq indent-bars--current-depth depth)
      (indent-bars--set-current-depth-highlight depth))))