Function: combobulate-count-lines-ahead

combobulate-count-lines-ahead is a natively compiled function defined in combobulate-misc.el.

Signature

(combobulate-count-lines-ahead &optional PT)

Documentation

Count the number of lines ahead of point.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-misc.el
(defun combobulate-count-lines-ahead (&optional pt)
  "Count the number of lines ahead of point."
  (save-excursion
    (goto-char (or pt (point)))
    (combobulate-string-count
     "\n"
     (buffer-substring-no-properties
      (or pt (point))
      (save-excursion
        (skip-chars-forward "[:space:]\n")
        (point))))))