unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: 2QdxY4RzWzUUiLuE@potatochowder.com
To: help-gnu-emacs@gnu.org
Subject: Re: How can i search for lines which wrap?
Date: Thu, 8 Jul 2021 22:12:48 -0700	[thread overview]
Message-ID: <YOfa0AmxgXzLWZ1Z@scrozzle> (raw)
In-Reply-To: <CAOphizL+AeqJN+TorS9CG5yQ8b3zG_hX0W1O1Px5qtGOXjTSiA@mail.gmail.com>

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	other threads:[~2021-07-09  5:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  4:39 How can i search for lines which wrap? Dan Hitt
2021-07-09  5:12 ` 2QdxY4RzWzUUiLuE [this message]
2021-07-09  6:36   ` Eli Zaretskii
2021-07-09  6:35 ` Eli Zaretskii
2021-07-10  1:20 ` [External] : " Drew Adams
2021-07-12 17:16   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YOfa0AmxgXzLWZ1Z@scrozzle \
    --to=2qdxy4rzwzuuilue@potatochowder.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).