From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: 2QdxY4RzWzUUiLuE@potatochowder.com Newsgroups: gmane.emacs.help Subject: Re: How can i search for lines which wrap? Date: Thu, 8 Jul 2021 22:12:48 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6508"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 09 07:13:36 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1ipT-0001Wq-Lu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Jul 2021 07:13:35 +0200 Original-Received: from localhost ([::1]:36104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1ipR-0006Na-Hv for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Jul 2021 01:13:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m1iou-0006NE-OQ for help-gnu-emacs@gnu.org; Fri, 09 Jul 2021 01:13:00 -0400 Original-Received: from www458.your-server.de ([136.243.165.62]:53282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m1ior-0007fl-SZ for help-gnu-emacs@gnu.org; Fri, 09 Jul 2021 01:13:00 -0400 Original-Received: from sslproxy02.your-server.de ([78.47.166.47]) by www458.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m1iol-0008kd-2W for help-gnu-emacs@gnu.org; Fri, 09 Jul 2021 07:12:51 +0200 Original-Received: from [47.44.249.130] (helo=localhost) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <2QdxY4RzWzUUiLuE@potatochowder.com>) id 1m1iok-0000oo-Aj for help-gnu-emacs@gnu.org; Fri, 09 Jul 2021 07:12:50 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-Authenticated-Sender: 2QdxY4RzWzUUiLuE@potatochowder.com X-Virus-Scanned: Clear (ClamAV 0.103.2/26225/Thu Jul 8 13:06:32 2021) Received-SPF: pass client-ip=136.243.165.62; envelope-from=2QdxY4RzWzUUiLuE@potatochowder.com; helo=www458.your-server.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131628 Archived-At: On 2021-07-08 at 21:39:08 -0700, Dan Hitt 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.