Function: web-mode-count-invisible-character-ranges

web-mode-count-invisible-character-ranges is an interactive and natively compiled function defined in web-mode.el.

Signature

(web-mode-count-invisible-character-ranges MIN MAX)

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-count-invisible-character-ranges (min max)
  (interactive "r")
  (let ((count 0) (current-pos min))
    (save-excursion
      (while (<= current-pos max)
        (goto-char current-pos)
        (if (get-text-property current-pos 'invisible)
            (progn
              (setq count (1+ count))
              (setq current-pos (1+ current-pos))
              (while (and (<= current-pos max)
                          (get-text-property current-pos 'invisible))
                (setq current-pos (1+ current-pos))))
          (setq current-pos (1+ current-pos)))))
    count))