1

Is there a convenient way to count the number of lines between two points?

While I could search for \n in a loop and limit it to one of the points, this seems like an overly verbose way of doing it.

Drew
  • 77,472
  • 10
  • 114
  • 243
ideasman42
  • 8,786
  • 1
  • 32
  • 114

1 Answers1

4

There is a function to count lines.

(count-lines beg end)

Found this soon after posting.

ideasman42
  • 8,786
  • 1
  • 32
  • 114