From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Date: Wed, 05 Aug 2015 18:15:18 +0300 Message-ID: <8337zxu5q1.fsf@gnu.org> References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1438787790 992 80.91.229.3 (5 Aug 2015 15:16:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2015 15:16:30 +0000 (UTC) Cc: 21192@debbugs.gnu.org, Dima Kogan To: bruce.connor.am@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 17:16:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZN0QT-0000kM-Np for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 17:16:17 +0200 Original-Received: from localhost ([::1]:40894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN0QS-0000Iq-7Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 11:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN0QH-0000BD-Q9 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 11:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN0QE-00083N-K9 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 11:16:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN0QE-00083A-HH for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZN0QE-0004d1-10 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.143878774817772 (code B ref 21192); Wed, 05 Aug 2015 15:16:01 +0000 Original-Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 15:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:40284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN0Pz-0004cZ-LV for submit@debbugs.gnu.org; Wed, 05 Aug 2015 11:15:48 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34797) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN0Pw-0004cN-Lp for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 11:15:46 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NSM001007JJG900@a-mtaout22.012.net.il> for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 18:15:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSM001DA7PP8E30@a-mtaout22.012.net.il>; Wed, 05 Aug 2015 18:15:25 +0300 (IDT) In-reply-to: <87614u6o6k.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105312 Archived-At: > From: Dima Kogan > Date: Wed, 05 Aug 2015 03:10:27 -0700 > Cc: 21192@debbugs.gnu.org > > Artur Malabarba writes: > > > Is your replace-regexp-lax-whitespace variable non-nil, by any chance? > > It is nil. This issue is reproducible from 'emacs -Q' Artur, this happens because we are "folding" newline with whitespace: ;; Add some manual entries. (dolist (it '((?\" """ "“" "”" "”" "„" "⹂" "〞" "‟" "‟" "❞" "❝" "❠" "“" "„" "〝" "〟" "🙷" "🙶" "🙸" "«" "»") (?' "❟" "❛" "❜" "‘" "’" "‚" "‛" "‚" "󠀢" "❮" "❯" "‹" "›") (?` "❛" "‘" "‛" "󠀢" "❮" "‹") (?\s "\t" "\r" "\n"))) <<<<<<<<<<<<<<<<<<<<<<<<< I think we should remove this, since replace-regexp-lax-whitespace already provides the same feature, and it's confusing to have that variable set to nil and still see such "lax" matches. Regardless, I think replace commands should start with character folding off, as I don't think most users will want that by default, especially since we don't perform the reverse transformation when replacing, and so, say, ² is replaced with 3, not with ³.