Questions tagged [lines]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
3answers
128 views

Delete duplicate lines, with partial match

Sample text: This is first line.a This is over_second line. This is over_fourth line. This is third line. This is over_fourth delete it. This is over_fourth and one more. This is over_second with ...
0
votes
1answer
36 views

Is arbitrary buffer position at the beginning of a line?

What's the simplest way to check whether a given point value p is at the beginning of some line or not? Is there anything simpler than (save-excursion (goto-char p) (= p (point-at-bol))) or (member (...
3
votes
1answer
1k views

How to count the number of lines in the region?

Is there a command similar to count-words-region to count the total number of lines of a selected region?