From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 08:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21192@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14387634021964 (code B ref -1); Wed, 05 Aug 2015 08:30:04 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2015 08:30:02 +0000 Received: from localhost ([127.0.0.1]:39882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMu5J-0000VJ-4j for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:30:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41499) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMu5F-0000V9-KL for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMu5E-0003uc-JR for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5E-0003uL-Gs for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5D-0002bm-I4 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMu5A-0003pP-8T for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:55 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5A-0003mr-2Q for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:52 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C5200209C7 for ; Wed, 5 Aug 2015 04:29:48 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 05 Aug 2015 04:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=5Zt2FIwWSdbIUI5gmmNhq0h82Ks =; b=ArU15+JPMEHSZiCektc8z93FVMEkX5KLMuKOwSY/CJixstvmEofootIx3jj iSFF3zzsgWjHtd7Vs3gaVyg7tycBr0oLk+Qaub2uPr9/y2t34fNJ4dFSNAWp53Hu by4Mdcln31mdgGGWHTBu47QXB/o0vo4EtfxjPOOnFUGVj0jE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=5Z t2FIwWSdbIUI5gmmNhq0h82Ks=; b=bDAtRzFTIdsHGbNMC1gJ643f0NFISktfH6 rLiZ2qxIJ3jmwUm4pMSRWhsKZVa6JDZOYsuT9xfqyc60UTSG2dyC9I5N4eBNvI1R IkV7uoLLGVoimjrnPRIXwbh7k4Lmv9iRG03oDoqksddzl/rLXGAFuXinJORL2ejI ri2eSsdzY= X-Sasl-enc: s0qL+am0/WRIymiFqht0wsoQxg3HrQPxVukrqUdXMEcM 1438763388 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 74A77680185 for ; Wed, 5 Aug 2015 04:29:48 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZMu50-0001A4-2U for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 01:29:42 -0700 From: Dima Kogan Date: Wed, 05 Aug 2015 01:29:42 -0700 Message-ID: <87a8u66suh.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. The following is an erroneous behavior in a new build of emacs (built from https://github.com/emacs-mirror/emacs/commit/bd3b426). 1. emacs -Q 2. Enter the following so the buffer looks like -------------------- 123 abc -------------------- 3. M-%, ' ' -> '' (i.e. delete all spaces) 4. What should happen is that the ' ' before 'abc' should be removed. Instead, the newline is removed also, so that I get a single line '123abc' From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 09:41: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: To: Dima Kogan Cc: 21192@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.14387676118201 (code B ref 21192); Wed, 05 Aug 2015 09:41:01 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 09:40:11 +0000 Received: from localhost ([127.0.0.1]:39916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMvBD-00028D-4Z for submit@debbugs.gnu.org; Wed, 05 Aug 2015 05:40:11 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:32774) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMvBB-000283-3A for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 05:40:09 -0400 Received: by labjt7 with SMTP id jt7so7348779lab.0 for <21192@debbugs.gnu.org>; Wed, 05 Aug 2015 02:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=h5aARzEZOuhDrQcARXyuoFA3RXMI8VGHRj4Xk2Vfg2I=; b=ceG8G3sHAb4Y+XFMINRvEkegudde4aMZQd5PrxFEjQW/80Yi/hxMR/q0t/nLV+vuPT Ldt3sSGI6v54yneISfIuu4yCANMblhAEvWfUGXbdNaULEeWriiNBzqmqxpJbvgASBz96 GptaoOLPq5+h67TB0YB6meWOsaLIgHedktys+iequAY58QCtlFs9tIbUtVdGISzAo2/A sbQ7BjSq84j6CIF5duOWQQuFM/SxWBq70m3yeoTKuMIQjjl2ipBVJPVnaleYeAAdtgKU dy7+ZRZPeyT6vonTpTpMAlnuggqsMe89F/ZTyvCIuZHwAaubBe5mJUg+V4DlD7cn1y2D mU0w== MIME-Version: 1.0 X-Received: by 10.112.210.137 with SMTP id mu9mr8277053lbc.95.1438767607921; Wed, 05 Aug 2015 02:40:07 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 02:40:07 -0700 (PDT) In-Reply-To: <87a8u66suh.fsf@secretsauce.net> References: <87a8u66suh.fsf@secretsauce.net> Date: Wed, 5 Aug 2015 10:40:07 +0100 X-Google-Sender-Auth: pZNozYo7aI__fHRZxUSfh-LMTpM Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Is your replace-regexp-lax-whitespace variable non-nil, by any chance? 2015-08-05 9:29 GMT+01:00 Dima Kogan : > Hi. The following is an erroneous behavior in a new build of emacs > (built from https://github.com/emacs-mirror/emacs/commit/bd3b426). > > 1. emacs -Q > > 2. Enter the following so the buffer looks like > -------------------- > 123 > abc > -------------------- > > 3. M-%, ' ' -> '' (i.e. delete all spaces) > > 4. What should happen is that the ' ' before 'abc' should be removed. > Instead, the newline is removed also, so that I get a single line > '123abc' > > > From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 10:11:02 +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: To: bruce.connor.am@gmail.com Cc: 21192@debbugs.gnu.org Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.143876943616753 (code B ref 21192); Wed, 05 Aug 2015 10:11:02 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 10:10:36 +0000 Received: from localhost ([127.0.0.1]:39929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMvee-0004M8-AX for submit@debbugs.gnu.org; Wed, 05 Aug 2015 06:10:36 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60720) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMvec-0004M0-3K for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 06:10:34 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id BF46D206FB for <21192@debbugs.gnu.org>; Wed, 5 Aug 2015 06:10:32 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 05 Aug 2015 06:10:32 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=DTIj9 ZIY42unLjOoWBgChLoU2Ag=; b=GuUeqyhqgndAFe3leTq7nmBHYYOTOlIOZlL4Y uUnimx4RyF/ELupDv3G9SK9TPHhjK3CaaHfEPlW3s6ed4SFEV+VamhlnAmJVST5s eeVYgIXA3Q5ifFo86nL6aAEumpCx/kTXnWvU1IWD/asISQuwfLfvtoGYE/+i2+hY oIvRK8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=DTIj9ZIY42unLjOoWBgChLoU2Ag=; b=HDsXV jrdj7x8ETq3v4t6GtO7OBE2uvs+FOs0QXcfiNeoTBGfsuYGK77R0TSwUMDSTF6kk NXf0uB+2Xg99/LYS1o1xKT75gbzPWkjvTcDYQSj9eXy3DfWJdjbDp1blJefbkyb/ 58IacIPJcy7jyTUsD1oODXOQJ2/yZudm4VfAcQ= X-Sasl-enc: O3PpH+qx670eV5bFioXnTCls8JHl1LCIgeRq/3bWhPF3 1438769432 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 62386C00012; Wed, 5 Aug 2015 06:10:32 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZMveV-0002o1-LR; Wed, 05 Aug 2015 03:10:27 -0700 References: <87a8u66suh.fsf@secretsauce.net> From: Dima Kogan In-reply-to: Date: Wed, 05 Aug 2015 03:10:27 -0700 Message-ID: <87614u6o6k.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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' From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines 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: To: bruce.connor.am@gmail.com Cc: 21192@debbugs.gnu.org, Dima Kogan Reply-To: Eli Zaretskii Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.143878774817772 (code B ref 21192); Wed, 05 Aug 2015 15:16:01 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 15:15:48 +0000 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 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 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) 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) Date: Wed, 05 Aug 2015 18:15:18 +0300 From: Eli Zaretskii In-reply-to: <87614u6o6k.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il Message-id: <8337zxu5q1.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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 ³. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 05 11:30:15 2015 Received: (at control) by debbugs.gnu.org; 5 Aug 2015 15:30:15 +0000 Received: from localhost ([127.0.0.1]:40290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN0dx-0004xk-RX for submit@debbugs.gnu.org; Wed, 05 Aug 2015 11:30:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN0dv-0004xc-2F for control@debbugs.gnu.org; Wed, 05 Aug 2015 11:30:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN0dr-0007yf-2p for control@debbugs.gnu.org; Wed, 05 Aug 2015 11:30:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN0dr-0007yV-0s for control@debbugs.gnu.org; Wed, 05 Aug 2015 11:30:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZN0dq-00014p-7H for control@debbugs.gnu.org; Wed, 05 Aug 2015 11:30:06 -0400 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 05 Aug 2015 11:30:06 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) block 19759 by 21192 From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 17:50:03 +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: To: Eli Zaretskii Cc: 21192@debbugs.gnu.org, Dima Kogan Reply-To: bruce.connor.am@gmail.com Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.14387969915282 (code B ref 21192); Wed, 05 Aug 2015 17:50:03 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 17:49:51 +0000 Received: from localhost ([127.0.0.1]:40323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN2p4-0001N7-I5 for submit@debbugs.gnu.org; Wed, 05 Aug 2015 13:49:50 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:35600) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN2p2-0001Mz-3Q for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 13:49:48 -0400 Received: by lbbpo9 with SMTP id po9so29036124lbb.2 for <21192@debbugs.gnu.org>; Wed, 05 Aug 2015 10:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=FsL0vXh+1Ea7cGcZbbhzGMTkQOfh3S327suGGn1BdUw=; b=BFmfmML/faWBggMtUiqfpitJXY6na/n1G6QtQxUkgzJiWoC3Ak95xUdjFL6Y9PnHWB 7h+VtRu+D3tRplOSgPs93wIEMB3/WnKtMcGEPAa2Q6Xhcm1rP7m8FBaXQP/Xc+NQx7Ik FblH+oQmQHbkt8tCVEPn/5/BUW7PFZIs5rIAh6nAIJfQTpb2DgPDQ1GAY4225fwycF2O 4RjUR4vBJMDwB5G8oZSNxXOyAU/weXKhPGDFvrgbszp7zpLf2AVlZm+gs0j4cKpbO3W8 0kUKsKE6jjeby93rdJenxpgKJIc3duWxRkD1HYgyHpHIButundXDejGExwb+kSgYW8nY Yb5w== MIME-Version: 1.0 X-Received: by 10.152.44.230 with SMTP id h6mr10274294lam.21.1438796986187; Wed, 05 Aug 2015 10:49:46 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 10:49:46 -0700 (PDT) In-Reply-To: <8337zxu5q1.fsf@gnu.org> References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> <8337zxu5q1.fsf@gnu.org> Date: Wed, 5 Aug 2015 18:49:46 +0100 X-Google-Sender-Auth: JuCJpTkTK1E4OhrwsVoYKwqG97o Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 2015-08-05 16:15 GMT+01:00 Eli Zaretskii : >> 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 from 'emacs -Q' Yes, of course, you said that. :-) Sorry > (?\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. Yes. That line is from when `character-fold-to-regexp' didn't do lax matching. Now it's definitely unnecessary. > 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, =C2=B2 is replaced with 3, not with =C2=B3. Sure, I can move it to a variable. From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 18:18: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: To: Eli Zaretskii Cc: 21192@debbugs.gnu.org, Dima Kogan Reply-To: bruce.connor.am@gmail.com Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.14387986697925 (code B ref 21192); Wed, 05 Aug 2015 18:18:01 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 18:17:49 +0000 Received: from localhost ([127.0.0.1]:40335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN3G9-00023k-Fx for submit@debbugs.gnu.org; Wed, 05 Aug 2015 14:17:49 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:34982) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN3G8-00023d-7f for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 14:17:48 -0400 Received: by lbbpo9 with SMTP id po9so29463867lbb.2 for <21192@debbugs.gnu.org>; Wed, 05 Aug 2015 11:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=onmCbG4lFeTqes7zASHaYEw5Up+ZnljEK7Z2uQ0YN9o=; b=B0ZHICtD3mPRLI88eTPVqBxbzzxIj5LqSt0twOF37T9jmLT+hg6b4o+AU79ddi2FGr VqL/s2kgG91uKT23wcWC3c0Kpc4pgqz1at7LtZqy8+yZzSGnOHZoC0D2tWEk8wqXA7YT yCxz03fvBjCz8P1Rl+bk6liu2srckBDppGfGT8EuM+x0Z6NnGaW0AWS2VEepAj45+BxP gar1OZ2tPiZfIwoThyuIMMPqL8wlFijlcmsFig484+bn5PgmCvdovF0ItxsbEE7Ir8j/ 3g0iPT7p6j0P7ZVmDb10dyUh7/X8XfPdT7krPqxC8is/+dowHIVNZduylJiszdIoNivR h0SA== MIME-Version: 1.0 X-Received: by 10.153.7.137 with SMTP id dc9mr10345073lad.16.1438798667604; Wed, 05 Aug 2015 11:17:47 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 11:17:47 -0700 (PDT) In-Reply-To: References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> <8337zxu5q1.fsf@gnu.org> Date: Wed, 5 Aug 2015 19:17:47 +0100 X-Google-Sender-Auth: 71_ERc6_fP1MSLJebdzL8JEMNLk Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >> 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, =C2=B2 is replaced with 3, not with =C2=B3. > > Sure, I can move it to a variable. It was already a variable, so I've defaulted it to nil now. Dima, could you check if this solves your problem? From unknown Sun Jun 22 17:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 20:48: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: To: bruce.connor.am@gmail.com Cc: 21192@debbugs.gnu.org Received: via spool by 21192-submit@debbugs.gnu.org id=B21192.143880762421866 (code B ref 21192); Wed, 05 Aug 2015 20:48:01 +0000 Received: (at 21192) by debbugs.gnu.org; 5 Aug 2015 20:47:04 +0000 Received: from localhost ([127.0.0.1]:40411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN5aa-0005gb-3v for submit@debbugs.gnu.org; Wed, 05 Aug 2015 16:47:04 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:46974) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN5aX-0005g6-Ni for 21192@debbugs.gnu.org; Wed, 05 Aug 2015 16:47:02 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0F30C20317 for <21192@debbugs.gnu.org>; Wed, 5 Aug 2015 16:47:01 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 05 Aug 2015 16:47:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=aLsFe U96fLOzjjX5KdhWe7BxUN8=; b=tmMH/8h+Qduz1CU8Px7fPWscBTq9iDSYmsvyf Tv24LjlP7I4659FNEdCCCX0KgvUSU7A8e0pLOPpQQkNwKHRib1kbVM5R+LHPPUV3 +3YkyavWYc/3HUg4qnKu81XTmLdJc+hDuVZieeKk3Hz3GSytWomtWgNokW4/rQLK yHpQR0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=aLsFeU96fLOzjjX5KdhWe7BxUN8=; b=brIim Xd6PkKPbv1Ey8Oq62uhMzDhKUxxohFtQFTq3sXmgf3oR0mAz2ZQo0FxT3nDd3jDS EkggIYHQFuQOWFHW2Zl09XXEYVQJfizOMo+P1wZGrTaKZ3cXSRmkjO/Mm1ViWDo3 RMq+mAAytCkmJXb0jwQDcrWPeFUyQz6O8PB/og= X-Sasl-enc: oYCvhAddqbcgznUj4Ovd+hGuU+fWeo+XdMH33r92dh88 1438807620 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id BCAF5680172; Wed, 5 Aug 2015 16:47:00 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZN5aV-00041W-Qp; Wed, 05 Aug 2015 13:46:59 -0700 References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> <8337zxu5q1.fsf@gnu.org> From: Dima Kogan In-reply-to: Date: Wed, 05 Aug 2015 13:46:59 -0700 Message-ID: <874mkd79a4.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Artur Malabarba writes: > Dima, could you check if this solves your problem? Hi. Yes. Setting replace-character-fold to nil makes this bug go away. Thanks. From unknown Sun Jun 22 17:16:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dima Kogan Subject: bug#21192: closed (Re: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines) Message-ID: References: <87a8u66suh.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 21192 X-Gnu-PR-Package: emacs Reply-To: 21192@debbugs.gnu.org Date: Thu, 06 Aug 2015 09:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1438852562-827-1" This is a multi-part message in MIME format... ------------=_1438852562-827-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21192: 25.0.50; search-replace of spaces erroneously touches newlines which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21192@debbugs.gnu.org. --=20 21192: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21192 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1438852562-827-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21192-done) by debbugs.gnu.org; 6 Aug 2015 09:15:52 +0000 Received: from localhost ([127.0.0.1]:40851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNHHD-0000D0-Vj for submit@debbugs.gnu.org; Thu, 06 Aug 2015 05:15:52 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:36627) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNHHB-0000Cr-IS for 21192-done@debbugs.gnu.org; Thu, 06 Aug 2015 05:15:49 -0400 Received: by lbbpu9 with SMTP id pu9so11746923lbb.3 for <21192-done@debbugs.gnu.org>; Thu, 06 Aug 2015 02:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:cc:content-type; bh=ncs4zwqQJbOv5VISNriwv0I7fzej02mz0y9QxCs+LJ0=; b=Zlksc5oD/ToNyebXyK73IVhTA9FELbuoB31LrcSB4YZok0KfoiA1ec2rYT1ZGvaDio nJfe9jsnWIQMGBzUYYv9O/q2uLr6tAKtTuS64qhkYRgN+5ee9gVZhzT3ndTxxy3KoiBR v1BVW8N9rF0hKcFESXqUodEK/g4V3QUd1buU5tyTm+D4vfeaV1x+W9iW8xrztdeazI3z BEydXWHaQTaqOMjFCvHrWEJ2UDi/D69u5QPgJCd6DaX3qyFlxzglfaEpjFYbRXWl+l6r ijr6a4Eq7I9mC58X3rQmtBQ9t52JiIrcT1cnfL8soRvr8PHgVs8KzMrdRPa+1M9raUgI 0+Iw== MIME-Version: 1.0 X-Received: by 10.112.25.69 with SMTP id a5mr625477lbg.16.1438852548665; Thu, 06 Aug 2015 02:15:48 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Thu, 6 Aug 2015 02:15:48 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Thu, 6 Aug 2015 02:15:48 -0700 (PDT) In-Reply-To: <874mkd79a4.fsf@secretsauce.net> References: <87a8u66suh.fsf@secretsauce.net> <87614u6o6k.fsf@secretsauce.net> <8337zxu5q1.fsf@gnu.org> <874mkd79a4.fsf@secretsauce.net> Date: Thu, 6 Aug 2015 10:15:48 +0100 X-Google-Sender-Auth: ueJ8JXBN0CW-85WAA085ymVs-5s Message-ID: Subject: Re: bug#21192: 25.0.50; search-replace of spaces erroneously touches newlines From: Artur Malabarba Content-Type: multipart/alternative; boundary=001a11c3f5be0c2990051ca0f7b9 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 21192-done Cc: 21192-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --001a11c3f5be0c2990051ca0f7b9 Content-Type: text/plain; charset=UTF-8 Great, closing then. --001a11c3f5be0c2990051ca0f7b9 Content-Type: text/html; charset=UTF-8

Great, closing then.

--001a11c3f5be0c2990051ca0f7b9-- ------------=_1438852562-827-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Aug 2015 08:30:02 +0000 Received: from localhost ([127.0.0.1]:39882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMu5J-0000VJ-4j for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:30:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41499) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMu5F-0000V9-KL for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMu5E-0003uc-JR for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5E-0003uL-Gs for submit@debbugs.gnu.org; Wed, 05 Aug 2015 04:29:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5D-0002bm-I4 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMu5A-0003pP-8T for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:55 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMu5A-0003mr-2Q for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 04:29:52 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C5200209C7 for ; Wed, 5 Aug 2015 04:29:48 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 05 Aug 2015 04:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=5Zt2FIwWSdbIUI5gmmNhq0h82Ks =; b=ArU15+JPMEHSZiCektc8z93FVMEkX5KLMuKOwSY/CJixstvmEofootIx3jj iSFF3zzsgWjHtd7Vs3gaVyg7tycBr0oLk+Qaub2uPr9/y2t34fNJ4dFSNAWp53Hu by4Mdcln31mdgGGWHTBu47QXB/o0vo4EtfxjPOOnFUGVj0jE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=5Z t2FIwWSdbIUI5gmmNhq0h82Ks=; b=bDAtRzFTIdsHGbNMC1gJ643f0NFISktfH6 rLiZ2qxIJ3jmwUm4pMSRWhsKZVa6JDZOYsuT9xfqyc60UTSG2dyC9I5N4eBNvI1R IkV7uoLLGVoimjrnPRIXwbh7k4Lmv9iRG03oDoqksddzl/rLXGAFuXinJORL2ejI ri2eSsdzY= X-Sasl-enc: s0qL+am0/WRIymiFqht0wsoQxg3HrQPxVukrqUdXMEcM 1438763388 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 74A77680185 for ; Wed, 5 Aug 2015 04:29:48 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZMu50-0001A4-2U for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 01:29:42 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; search-replace of spaces erroneously touches newlines Date: Wed, 05 Aug 2015 01:29:42 -0700 Message-ID: <87a8u66suh.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. The following is an erroneous behavior in a new build of emacs (built from https://github.com/emacs-mirror/emacs/commit/bd3b426). 1. emacs -Q 2. Enter the following so the buffer looks like -------------------- 123 abc -------------------- 3. M-%, ' ' -> '' (i.e. delete all spaces) 4. What should happen is that the ' ' before 'abc' should be removed. Instead, the newline is removed also, so that I get a single line '123abc' ------------=_1438852562-827-1--