[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i search for lines which wrap?

From: Eli Zaretskii
Subject: Re: How can i search for lines which wrap?
Date: Fri, 09 Jul 2021 09:35:35 +0300

> From: Dan Hitt <>
> Date: Thu, 8 Jul 2021 21:39:08 -0700
> I was recently editing a document to try to make all the lines be no longer
> than 79 characters.
> There were a few ways that could occur: one would be a line of 80 dashes,
> one would be a line of 80 underscores, and there were a few variants that i
> could systematically locate (by searching for the offending pattern
> followed by a control-J), and then fix.  Searching for control-J by itself
> wouldn't do because i only wanted to get to the end of lines that are too
> long.
> So what i was missing was an easy way to search to the end of the next line
> with 80 or more characters.

Use end-of-line to go to the end of a line, then use current-column to
find out the column number, and compare that to 79 (or any other
number you need).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]