From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13480: 24.3.50; `C-w' from Isearch should translate newlines to spaces Date: Sun, 24 Apr 2022 18:46:50 +0300 Organization: LINKOV.NET Message-ID: <86pml6o5h5.fsf@mail.linkov.net> References: <87r4ljh54a.fsf@mail.jurta.org> <87wqva2lvg.fsf@mail.jurta.org> <87obgl5vuz.fsf@mail.jurta.org> <8738xx30eo.fsf@mail.jurta.org> <753FBC5FA6504FE187B65C5B59C262D1@us.oracle.com> <878v7okavd.fsf@mail.jurta.org> <87sfq51evg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24015"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 13480@debbugs.gnu.org, Stefan Monnier , 'Dani Moncayo' To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 24 17:51:12 2022 Return-path: Envelope-to: geb-bug-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 1nieVz-00063k-VW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 17:51:11 +0200 Original-Received: from localhost ([::1]:46708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nieVy-0001zI-G1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 11:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nieVq-0001yt-Az for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2022 11:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nieVq-0007GU-2m for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2022 11:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nieVp-0001du-Vv for bug-gnu-emacs@gnu.org; Sun, 24 Apr 2022 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Apr 2022 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13480 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 13480-submit@debbugs.gnu.org id=B13480.16508154256248 (code B ref 13480); Sun, 24 Apr 2022 15:51:01 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 24 Apr 2022 15:50:25 +0000 Original-Received: from localhost ([127.0.0.1]:60016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nieVE-0001ci-Oi for submit@debbugs.gnu.org; Sun, 24 Apr 2022 11:50:24 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:34431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nieVD-0001cH-74 for 13480@debbugs.gnu.org; Sun, 24 Apr 2022 11:50:23 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id DA67040003; Sun, 24 Apr 2022 15:50:14 +0000 (UTC) In-Reply-To: <87sfq51evg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 22 Apr 2022 14:28:35 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230576 Archived-At: > Reading this bug report, it seems like everybody agrees that yanking a > text containing newlines in `C-s C-y' should have the match also match > other whitespace (if laxness is enabled). There was disagreement > whether the isearch prompt in these cases should be saying "foo^Jbar" or > "foo bar" -- the former would be difficult to implement, while the > latter isn't displaying exactly what the user yanked. > > I think displaying "foo bar" makes the most sense, because we're in a > lax search. And I think one of the patches Juri prepared implemented > this, so I think we should just go ahead and push that change (possibly > behind a user option). Juri? Ah, I already forgot about this problem, because it now works fine with such customization :) ``` (setq search-whitespace-regexp "\\(?:\\s-\\|\n\\)+") (setq-default search-default-mode 'char-fold-to-regexp) (require 'char-fold) (setq char-fold-symmetric t) ```