help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How can i search for lines which wrap?


From: 2QdxY4RzWzUUiLuE
Subject: Re: How can i search for lines which wrap?
Date: Thu, 8 Jul 2021 22:12:48 -0700

On 2021-07-08 at 21:39:08 -0700,
Dan Hitt <dan.hitt@gmail.com> wrote:

> 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.

The regular expression .\{80\}$ matches the end of lines consisting of
80 or more characters.

> Basically, i would like to search for the continuation character which
> signifies that the next visible line is not really a new line.  In the
> emacs gui, this is depicted as a curved arrow in the margin.  In text emas,
> this is signified by a backslash (that you cannot search for as a
> backslash).

Those continuation characters depend on the width of the frame.  As you
noted, they're not part of your document.

> Since emacs can do everything else, i imagine there must be some way to
> search for this, but i cannot recall ever having done so.



reply via email to

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