From unknown Fri Aug 15 16:56:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22494 <22494@debbugs.gnu.org> To: bug#22494 <22494@debbugs.gnu.org> Subject: Status: still can't search for two spaces Reply-To: bug#22494 <22494@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:56:49 +0000 retitle 22494 still can't search for two spaces reassign 22494 emacs submitter 22494 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 22494 minor tag 22494 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 01:34:39 2016 Received: (at submit) by debbugs.gnu.org; 30 Jan 2016 06:34:39 +0000 Received: from localhost ([127.0.0.1]:40968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPP7H-0004KE-JC for submit@debbugs.gnu.org; Sat, 30 Jan 2016 01:34:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52663) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPP7G-0004K2-TO for submit@debbugs.gnu.org; Sat, 30 Jan 2016 01:34:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPP7A-00010A-L9 for submit@debbugs.gnu.org; Sat, 30 Jan 2016 01:34:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPP7A-000105-HT for submit@debbugs.gnu.org; Sat, 30 Jan 2016 01:34:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPP79-0003zH-5m for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 01:34:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPP70-0000xd-0E for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 01:34:31 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:41455 helo=homiemail-a6.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPP6z-0000xT-OV for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 01:34:21 -0500 Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id AC7BA59806B for ; Fri, 29 Jan 2016 22:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=AjDPW8i0CEfPsTmkL67sBza0Xgc=; b=adsN56q3cCzL5IQs lv7VwhMWJ8gMEnXZaxt8WxgZTxyyWo3I9+NKw425C7E7uqI5qlhyHxo8EGpNb42N aaQ8afscRQ/8FdoRao7ax3T0HoWEfhS4WyQI8M61U2IwcE2Y8t8fzQWDFnR0reiS /5rKuFMdwqSlvDtfoH6CM6oj7MI= Received: from jidanni.org (114-41-31-190.dynamic.hinet.net [114.41.31.190]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 75C7E598021 for ; Fri, 29 Jan 2016 22:34:16 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs Subject: still can't search for two spaces Date: Sat, 30 Jan 2016 14:34:12 +0800 Message-ID: <87h9hvshi3.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.18 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 (-----) I still can't search for two spaces with C-s SPC SPC. It still just sits on the first match for single space. (emacs-version)"GNU Emacs 24.5.1 (i586-pc-linux-gnu, GTK+ Version 3.18.6) of 2016-01-23 on x86-csail-01, modified by Debian" From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 02:41:20 2016 Received: (at 22494) by debbugs.gnu.org; 30 Jan 2016 07:41:20 +0000 Received: from localhost ([127.0.0.1]:40994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPQ9o-0005wD-J1 for submit@debbugs.gnu.org; Sat, 30 Jan 2016 02:41:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32907) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPQ9m-0005vy-Uh for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 02:41:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPQ9e-0007ZC-LG for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 02:41:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0 tests=BAYES_50, MIME_CHARSET_FARAWAY, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPQ9e-0007Z8-HU; Sat, 30 Jan 2016 02:41:10 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1253 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aPQ9d-0002C2-U3; Sat, 30 Jan 2016 02:41:10 -0500 Date: Sat, 30 Jan 2016 09:40:40 +0200 Message-Id: <8337tfy0p3.fsf@gnu.org> From: Eli Zaretskii To: =?shift_jis?B?kM+ST5Py?= Dan Jacobson In-reply-to: <87h9hvshi3.fsf@jidanni.org> Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=shift_jis Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: ϒO Dan Jacobson > > Date: Sat, 30 Jan 2016 14:34:12 +0800 > > I still can't search for two spaces with C-s SPC SPC. > It still just sits on the first match for single space. Crystal ball says you didn't read the manual, which explains that you need to type M-s SPC after C-s to get what you want (which is literal space matching). If you want this to be a permanent setting, there's a variable to customize, also described in the manual. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 12:43:46 2016 Received: (at control) by debbugs.gnu.org; 30 Jan 2016 17:43:47 +0000 Received: from localhost ([127.0.0.1]:42269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPZYo-0008GI-Ol for submit@debbugs.gnu.org; Sat, 30 Jan 2016 12:43:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41271) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPZYn-0008G5-9T for control@debbugs.gnu.org; Sat, 30 Jan 2016 12:43:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPZYh-00073l-AU for control@debbugs.gnu.org; Sat, 30 Jan 2016 12:43:39 -0500 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPZYh-00073g-7b for control@debbugs.gnu.org; Sat, 30 Jan 2016 12:43:39 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aPZYg-0001eG-VG for control@debbugs.gnu.org; Sat, 30 Jan 2016 12:43:39 -0500 Subject: control message for bug 22494 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 30 Jan 2016 12:43:38 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (-----) severity 22494 minor tag 22494 notabug close 22494 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 17:10:44 2016 Received: (at 22494) by debbugs.gnu.org; 30 Jan 2016 22:10:44 +0000 Received: from localhost ([127.0.0.1]:42349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPdjA-0007ng-Ea for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:10:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56334) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPdj8-0007nS-MN for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 17:10:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPdj2-0008Hw-PM for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 17:10:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdix-0008Gm-Iu; Sat, 30 Jan 2016 17:10:31 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aPdiw-0001yi-W4; Sat, 30 Jan 2016 17:10:31 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Eli Zaretskii In-reply-to: <8337tfy0p3.fsf@gnu.org> (message from Eli Zaretskii on Sat, 30 Jan 2016 09:40:40 +0200) Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org> <8337tfy0p3.fsf@gnu.org> Message-Id: Date: Sat, 30 Jan 2016 17:10:30 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I still can't search for two spaces with C-s SPC SPC. > > It still just sits on the first match for single space. > Crystal ball says you didn't read the manual, which explains that you > need to type M-s SPC after C-s to get what you want (which is literal > space matching). This is a bug. When the user types SPC SPC in a search string, person clearly wants to search for two spaces. It should do that. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 17:28:36 2016 Received: (at 22494) by debbugs.gnu.org; 30 Jan 2016 22:28:36 +0000 Received: from localhost ([127.0.0.1]:42368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPe0S-0008Ec-Ek for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:28:36 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:43550) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPe0R-0008EP-6b for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 17:28:35 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0UMSSmp021938 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 30 Jan 2016 22:28:28 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0UMSRsJ019233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 30 Jan 2016 22:28:27 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u0UMSRDK017469; Sat, 30 Jan 2016 22:28:27 GMT MIME-Version: 1.0 Message-ID: <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> Date: Sat, 30 Jan 2016 14:28:26 -0800 (PST) From: Drew Adams To: rms@gnu.org, Eli Zaretskii Subject: RE: bug#22494: still can't search for two spaces References: <<87h9hvshi3.fsf@jidanni.org>> <<8337tfy0p3.fsf@gnu.org>> <> In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) > > > I still can't search for two spaces with C-s SPC SPC. > > > It still just sits on the first match for single space. >=20 > > Crystal ball says you didn't read the manual, which explains that you > > need to type M-s SPC after C-s to get what you want (which is literal > > space matching). >=20 > This is a bug. When the user types SPC SPC in a search string, > person clearly wants to search for two spaces. It should do that. +1 If lax-whitespace matching is currently turned on, typing multiple whitespace chars contiguously could turn it off. But in that case a message should let the user know that this change has occurred. And then what if the user made a mistake typing that second SPC char - i.e., didn't really mean to search literally for multiple whitespace chars? It won't be enough to just delete the second SPC char (but the user might try that). Perhaps the message that lax whitespace matching has been switched to literal should also mention the key sequence for toggling back to lax matching. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 17:47:46 2016 Received: (at 22494) by debbugs.gnu.org; 30 Jan 2016 22:47:46 +0000 Received: from localhost ([127.0.0.1]:42376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPeIz-0000FI-P6 for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:47:45 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:54677) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPeIx-0000F5-BX for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 17:47:43 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 141CC9D2002; Sat, 30 Jan 2016 23:47:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4nFwWcZICWyV; Sat, 30 Jan 2016 23:47:38 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 914FF9D2001; Sat, 30 Jan 2016 23:47:38 +0100 (CET) References: <<87h9hvshi3.fsf@jidanni.org> < <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> User-agent: mu4e 0.9.13; emacs 25.1.50.1 From: Marcin Borkowski To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces In-reply-to: <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> Date: Sat, 30 Jan 2016 23:47:38 +0100 Message-ID: <871t8yit11.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, Eli Zaretskii , rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) On 2016-01-30, at 23:28, Drew Adams wrote: >> > > I still can't search for two spaces with C-s SPC SPC. >> > > It still just sits on the first match for single space. >> >> > Crystal ball says you didn't read the manual, which explains that you >> > need to type M-s SPC after C-s to get what you want (which is literal >> > space matching). >> >> This is a bug. When the user types SPC SPC in a search string, >> person clearly wants to search for two spaces. It should do that. > > +1 +1 > And then what if the user made a mistake typing that second SPC > char - i.e., didn't really mean to search literally for multiple > whitespace chars? It won't be enough to just delete the second > SPC char (but the user might try that). Why couldn't it be enough? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 19:02:41 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 00:02:41 +0000 Received: from localhost ([127.0.0.1]:42397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfTV-00020X-1w for submit@debbugs.gnu.org; Sat, 30 Jan 2016 19:02:41 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:28356) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfTT-00020J-2j for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 19:02:39 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0V02V85026085 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 31 Jan 2016 00:02:31 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u0V02UYj026454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 31 Jan 2016 00:02:31 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.13.8) with ESMTP id u0V02Uos020590; Sun, 31 Jan 2016 00:02:30 GMT MIME-Version: 1.0 Message-ID: <77b5b6df-4889-4142-a04d-526dd94c3a48@default> Date: Sat, 30 Jan 2016 16:02:29 -0800 (PST) From: Drew Adams To: Marcin Borkowski Subject: RE: bug#22494: still can't search for two spaces References: <<87h9hvshi3.fsf@jidanni.org> < <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> <871t8yit11.fsf@mbork.pl> In-Reply-To: <871t8yit11.fsf@mbork.pl> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, Eli Zaretskii , rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) > >> > > I still can't search for two spaces with C-s SPC SPC. > >> > > It still just sits on the first match for single space. > >> > >> > Crystal ball says you didn't read the manual, which explains that = you > >> > need to type M-s SPC after C-s to get what you want (which is lite= ral > >> > space matching). > >> > >> This is a bug. When the user types SPC SPC in a search string, > >> person clearly wants to search for two spaces. It should do that. > > > > +1 >=20 > +1 >=20 > > And then what if the user made a mistake typing that second SPC > > char - i.e., didn't really mean to search literally for multiple > > whitespace chars? It won't be enough to just delete the second > > SPC char (but the user might try that). >=20 > Why couldn't it be enough? It's not a clear indication that the user wants to return to lax whitespace matching. What if s?he deleted the second SPC and typed a TAB or other whitespace char? Or typed a SPC char again? Would you toggle back again? More than one whitespace char in a row might be sufficient cause to switch to literal whitespace matching, but it's not clear that a single such char is sufficient cause to switch to lax matching. I'd propose a clear message indicating that Emacs has guessed, because you typed more than one whitespace char in a row, that you really want literal whitespace char matching, and so it has switched to that mode. And at the same time indicate that you can toggle the whitespace-matching behavior using `M-s SPC'. That should be clear enough, I would think. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 19:16:16 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 00:16:17 +0000 Received: from localhost ([127.0.0.1]:42407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfge-0002KV-NH for submit@debbugs.gnu.org; Sat, 30 Jan 2016 19:16:16 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:56362 helo=homiemail-a21.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfgd-0002KL-5e for 22494@debbugs.gnu.org; Sat, 30 Jan 2016 19:16:15 -0500 Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id AB1A0300064; Sat, 30 Jan 2016 16:16:14 -0800 (PST) Received: from localhost.linkov.net (62.65.226.255.cable.starman.ee [62.65.226.255]) (Authenticated sender: jurta@jurta.org) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPA id 345B9300061; Sat, 30 Jan 2016 16:16:13 -0800 (PST) From: Juri Linkov To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces Organization: LINKOV.NET References: <87h9hvshi3.fsf@jidanni.org>> <8337tfy0p3.fsf@gnu.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> Date: Sun, 31 Jan 2016 02:08:07 +0200 In-Reply-To: <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> (Drew Adams's message of "Sat, 30 Jan 2016 14:28:26 -0800 (PST)") Message-ID: <878u36pq54.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, Eli Zaretskii , rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) > And then what if the user made a mistake typing that second SPC > char - i.e., didn't really mean to search literally for multiple > whitespace chars? It won't be enough to just delete the second > SPC char (but the user might try that). Then the state of lax-whitespace should be remembered in the stack of isearch-cmds. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 00:39:30 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 05:39:30 +0000 Received: from localhost ([127.0.0.1]:42475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPkjR-0003Bw-TN for submit@debbugs.gnu.org; Sun, 31 Jan 2016 00:39:30 -0500 Received: from mail-ob0-f176.google.com ([209.85.214.176]:35817) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPkjQ-0003Bk-Nx for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 00:39:29 -0500 Received: by mail-ob0-f176.google.com with SMTP id ny8so72958913obc.2 for <22494@debbugs.gnu.org>; Sat, 30 Jan 2016 21:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mime-version:content-type; bh=TL+aJxfgNSF2wc9mT+JIgst3IrlMTWl8u/zWWjOn7Qw=; b=EazCh8Chm1ELAcfNUe8jvtwR59zaw8THE/iIRv9LE0MxV1pU37cekPgK8CDkk6lyPj aQQ/sbuZ+BMDcqQ20FaZpqinnlVDfzp09eK8YZghd4WlipQtVV7+HKfuZVP6i7cr2ryB wCo6iFBCNnMZSU3jICHLq15oJo9P7FLzfJm3p3DcedIF7dsVV713zcbd4VxO8Uk1EFWS Ke9ybZaf6NWdsgWio+6Oq3X7WDBFr2YK4rdN8tA8brSE6X8RNYICwyohl6iy7S3wpo/d H39Z1cEdPVkV30WUZ30Ke8aEcSizogd+k5Nxe3Z+a2TiLa5R60bG2EsZ+aw9RyAyau3V izDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mime-version:content-type; bh=TL+aJxfgNSF2wc9mT+JIgst3IrlMTWl8u/zWWjOn7Qw=; b=K/71vDoZTQejkaUz3ZTDh+L469nJcF7n5L8sshdshb+Y2T+etHrCseLD28HqowHswB qn4fG/hTw46ccaENW72CmuKgR9cHEACoopzcTAzaJY80kMfo4HJB6fRUr6BiatEd1FIl KlxgwwCntbdbFqcyMbaW1ND0NNdKoB8vQSfwX+1g4wXFOMuvFms4I/6rQkkPi+TZ0qZ/ h1bZVObZqTuzfaDJTHBQ/wz+1S9GUoRCkTSp3cKu79XFMWZQswal021Bb9vDKGIz3hEd ypwi8hdoONaxTBurF8LJVikl0OZGKGVKlrzeF73TDW/iDcfWgQAY4YCUkDndRXi/1zsz nPSA== X-Gm-Message-State: AG10YOStiE7DZKmYpa5XmkFAeVUyfzY20o+Fc/+wvwxOqFRl6HUVN7lewKyQSg8oTM/R1Q== X-Received: by 10.182.130.162 with SMTP id of2mr12435689obb.57.1454218762954; Sat, 30 Jan 2016 21:39:22 -0800 (PST) Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id cn2sm11881362oeb.8.2016.01.30.21.39.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 30 Jan 2016 21:39:21 -0800 (PST) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id 4821B129DDCE0; Sat, 30 Jan 2016 21:39:20 -0800 (PST) To: Richard Stallman Subject: Re: bug#22494: still can't search for two spaces In-Reply-To: (Richard Stallman's message of "Sat, 30 Jan 2016 17:10:30 -0500") Date: Sat, 30 Jan 2016 21:39:18 -0800 Message-ID: References: <87h9hvshi3.fsf@jidanni.org> <8337tfy0p3.fsf@gnu.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, Eli Zaretskii , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Wiegley Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>>>> Richard Stallman writes: > This is a bug. When the user types SPC SPC in a search string, person > clearly wants to search for two spaces. It should do that. Yes, exactly in the same sense that we disable case folding if mixed case is used in a search string. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 11:08:24 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 16:08:24 +0000 Received: from localhost ([127.0.0.1]:43290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPuY4-0004X4-7N for submit@debbugs.gnu.org; Sun, 31 Jan 2016 11:08:24 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:17533) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPuY2-0004Wq-GW for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 11:08:22 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0VG8Gqi029255 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 31 Jan 2016 16:08:16 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u0VG8Frj018849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 31 Jan 2016 16:08:15 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.13.8) with ESMTP id u0VG8ENU008510; Sun, 31 Jan 2016 16:08:15 GMT MIME-Version: 1.0 Message-ID: <9c737239-e177-4790-944c-20dbb245e019@default> Date: Sun, 31 Jan 2016 08:08:13 -0800 (PST) From: Drew Adams To: John Wiegley , Richard Stallman Subject: RE: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org> <8337tfy0p3.fsf@gnu.org> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.9 (--) > > This is a bug. When the user types SPC SPC in a search string, person > > clearly wants to search for two spaces. It should do that. >=20 > Yes, exactly in the same sense that we disable case folding if mixed case= is > used in a search string. 1. We do both, yes. But I see no logical connection between those two design decisions. Neither of them implies or supports the other. 2. Here's another consideration that might apply to whether we automatically switch to literal whitespace search due to multiple, contiguous whitespace chars (and yes, you could argue similarly wrt automatic turn-off of case-folding): If a user _types_ additional whitespace chars then it is reasonable to assume that literal search is what is intended. But if a user _pastes_ some copied text that includes multiple, contiguous whitespace chars, then such an assumption is less reasonable. The intention might depend on where the text was copied from, etc. It's really hard to guess whether the user intended to respect the copied whitespace literally - or even whether s?he is aware that there are multiple, contiguous whitespace chars in the pasted text. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 15:32:13 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 20:32:13 +0000 Received: from localhost ([127.0.0.1]:43471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPyfN-0005b9-KW for submit@debbugs.gnu.org; Sun, 31 Jan 2016 15:32:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50878) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPyfM-0005au-19 for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 15:32:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPyfG-0005Ge-1e for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 15:32:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 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]:45208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPyeh-00052n-2p; Sun, 31 Jan 2016 15:31:31 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aPyeg-0003QJ-B5; Sun, 31 Jan 2016 15:31:30 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Drew Adams In-reply-to: <77b5b6df-4889-4142-a04d-526dd94c3a48@default> (message from Drew Adams on Sat, 30 Jan 2016 16:02:29 -0800 (PST)) Subject: Re: bug#22494: still can't search for two spaces References: <<87h9hvshi3.fsf@jidanni.org> < <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> <871t8yit11.fsf@mbork.pl> <77b5b6df-4889-4142-a04d-526dd94c3a48@default> Message-Id: Date: Sun, 31 Jan 2016 15:31:30 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, eliz@gnu.org, mbork@mbork.pl, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > It's not a clear indication that the user wants to return to > lax whitespace matching. What if s?he deleted the second SPC > and typed a TAB or other whitespace char? Or typed a SPC char > again? Would you toggle back again? Don't think if it as "toggling" but rather as heeding what is in the search string. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 16:29:39 2016 Received: (at 22494) by debbugs.gnu.org; 31 Jan 2016 21:29:39 +0000 Received: from localhost ([127.0.0.1]:43490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPzYx-0006tQ-0R for submit@debbugs.gnu.org; Sun, 31 Jan 2016 16:29:39 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:26199) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPzYu-0006tD-Qp for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 16:29:37 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0VLTRCp011921 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 31 Jan 2016 21:29:28 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0VLTRkJ021818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 31 Jan 2016 21:29:27 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u0VLTRua010850; Sun, 31 Jan 2016 21:29:27 GMT MIME-Version: 1.0 Message-ID: <6281db1e-d974-4cdc-b111-3e9097ae89db@default> Date: Sun, 31 Jan 2016 13:29:26 -0800 (PST) From: Drew Adams To: rms@gnu.org, Drew Adams Subject: RE: bug#22494: still can't search for two spaces References: <<<87h9hvshi3.fsf@jidanni.org>> <<> <<54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <<871t8yit11.fsf@mbork.pl>> <<77b5b6df-4889-4142-a04d-526dd94c3a48@default>> <> In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, eliz@gnu.org, mbork@mbork.pl, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.9 (--) > > It's not a clear indication that the user wants to return to > > lax whitespace matching. What if s?he deleted the second SPC > > and typed a TAB or other whitespace char? Or typed a SPC char > > again? Would you toggle back again? >=20 > Don't think if it as "toggling" but rather as heeding what is in > the search string. Heeding what is in the search string means nothing - or anything. What is in the search string is a search pattern. How it is interpreted is the question. Literal matching of whitespace chars is one such interpretation. I've already agreed that more than one whitespace char in a row is a reasonable indication that the user wants/expects whitespace chars to be matched literally. Why? Because with lax whitespace matching there is never any reason to type multiple, contiguous whitespace chars - it serves no purpose. (But see also what I wrote about pasting copied text that might contain multiple, contiguous whitespace chars.) What is not obvious is whether whitespace search should be changed away from literal matching just because there are not (no longer) multiple such chars in a row in the search pattern. That was the subject of the text you quoted. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 19:13:17 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 00:13:17 +0000 Received: from localhost ([127.0.0.1]:43634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ27I-0002D5-TC for submit@debbugs.gnu.org; Sun, 31 Jan 2016 19:13:17 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:44774 helo=homiemail-a14.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ27H-0002Cy-Oy for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 19:13:16 -0500 Received: from homiemail-a14.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTP id 5CDF7392076; Sun, 31 Jan 2016 16:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=Ci7i+s73azcmXhFxkMA34H9qjPI=; b=cVrjdHy5Dzc25 hmSqPG5JWjp51+m0CjD3n+mkeNf32dizKxvnn2TqtoTl1NOHGxuSJbKLhng3sgJJ sqLjL3jrJIiNCgFfzZun3UhgCk7ccnrmh+LP2UvEDaGzz8iP/4p1dwcya8N/5BN3 Xrl+6vRgtnaLevPrfSwOIgKf05Qzxw= Received: from jidanni.org (114-26-44-112.dynamic.hinet.net [114.26.44.112]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 165D1392075; Sun, 31 Jan 2016 16:13:13 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> Date: Mon, 01 Feb 2016 08:13:09 +0800 Message-ID: <87powhz3sa.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, eliz@gnu.org, mbork@mbork.pl, rms@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) >>>>> "DA" == Drew Adams writes: DA> What is not obvious is whether whitespace search should be DA> changed away from literal matching just because there are DA> not (no longer) multiple such chars in a row in the search DA> pattern. That was the subject of the text you quoted. All I know is an Auntie Nelda-like person (me) typed those two spaces and expected them to match. I don't know about all that other stuff. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 20:57:56 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 01:57:56 +0000 Received: from localhost ([127.0.0.1]:43663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ3kZ-0006C8-VA for submit@debbugs.gnu.org; Sun, 31 Jan 2016 20:57:56 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:37387) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ3kY-0006Bt-Hh for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 20:57:55 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u111vlBt004874 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 01:57:47 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u111vkY4023434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 01:57:47 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u111vklo018084; Mon, 1 Feb 2016 01:57:46 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 31 Jan 2016 17:57:45 -0800 (PST) From: Drew Adams To: ??? Dan Jacobson Subject: RE: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> <87powhz3sa.fsf@jidanni.org> In-Reply-To: <87powhz3sa.fsf@jidanni.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, eliz@gnu.org, mbork@mbork.pl, rms@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.9 (--) > All I know is an Auntie Nelda-like person (me) typed those two spaces > and expected them to match. I don't know about all that other stuff. I, at least, have agreed with you and your Auntie Nelda. And I think that Richard has also agreed about this. FWIW, I said so (in emacs-devel@gnu.org) before Isearch was changed to provide lax whitespace search as a possibility, and I opposed (unsuccessfully) making it the default behavior. For me, as for your Auntie Nelda also, it seems, literal search is clearest as a default behavior for C-s. I disagree that C-s should default to a "handy", Emacs-knows-what-you-really-want/need behavior. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 22:10:57 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 03:10:57 +0000 Received: from localhost ([127.0.0.1]:43705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ4tF-0007tD-At for submit@debbugs.gnu.org; Sun, 31 Jan 2016 22:10:57 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:48930 helo=homiemail-a7.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ4tD-0007t4-UT for 22494@debbugs.gnu.org; Sun, 31 Jan 2016 22:10:56 -0500 Received: from homiemail-a7.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTP id 61A7925C06E; Sun, 31 Jan 2016 19:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=NO5k411S+CkJKF0fCVTnqhVd9ds=; b=HcmHvJ8qCwTeF PB+7YL2hlBVxZks0uajnwfDMrfu/hlhRo7gGSnfWPEVFP3DW6stgrgEHX7f3WiAK yErwVd1TYSKyhXGy+BT+LU41hDbmb3jxzfUdcsfPppbMbdVwZTiQOWpFxnsNYPk+ cBzvDoxI7+p2jDUI/QYwgKSA3xJbQg= Received: from jidanni.org (111-246-87-72.dynamic.hinet.net [111.246.87.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 1F59425C06B; Sun, 31 Jan 2016 19:10:52 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> Date: Mon, 01 Feb 2016 11:10:49 +0800 Message-ID: <87powh3z2e.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, eliz@gnu.org, mbork@mbork.pl, rms@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) >>>>> "DA" == Drew Adams writes: DA> I, at least, have agreed with you and your Auntie Nelda. Besides, if the user is using emacs -nw then one can't tell if he pasted or typed anyway... From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 06:01:59 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 11:01:59 +0000 Received: from localhost ([127.0.0.1]:43959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQCF5-0002gf-8o for submit@debbugs.gnu.org; Mon, 01 Feb 2016 06:01:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40827) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQCF3-0002gR-GM for 22494@debbugs.gnu.org; Mon, 01 Feb 2016 06:01:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQCEu-0001wJ-LI for 22494@debbugs.gnu.org; Mon, 01 Feb 2016 06:01:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 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]:59974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQCEl-0001sl-42; Mon, 01 Feb 2016 06:01:39 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aQCEk-0004pz-Du; Mon, 01 Feb 2016 06:01:38 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Drew Adams In-reply-to: <6281db1e-d974-4cdc-b111-3e9097ae89db@default> (message from Drew Adams on Sun, 31 Jan 2016 13:29:26 -0800 (PST)) Subject: Re: bug#22494: still can't search for two spaces References: <<<87h9hvshi3.fsf@jidanni.org>> <<> <<54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <<871t8yit11.fsf@mbork.pl>> <<77b5b6df-4889-4142-a04d-526dd94c3a48@default>> <> <6281db1e-d974-4cdc-b111-3e9097ae89db@default> Message-Id: Date: Mon, 01 Feb 2016 06:01:38 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, drew.adams@oracle.com, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > What is in the search string is a search pattern. How it is > interpreted is the question. Right. And I am proposing a way to interpret part of it. Namely, two spaces in a row means to match two spaces in the buffer. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 06:20:33 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 11:20:33 +0000 Received: from localhost ([127.0.0.1]:43967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQCX3-00036p-2k for submit@debbugs.gnu.org; Mon, 01 Feb 2016 06:20:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:57052) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQCX0-00036h-VH for 22494@debbugs.gnu.org; Mon, 01 Feb 2016 06:20:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8C064AD66; Mon, 1 Feb 2016 11:20:29 +0000 (UTC) From: Andreas Schwab To: Richard Stallman Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> X-Yow: I once decorated my apartment entirely in ten foot salad forks!! Date: Mon, 01 Feb 2016 12:20:29 +0100 In-Reply-To: (Richard Stallman's message of "Mon, 01 Feb 2016 06:01:38 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, Drew Adams , jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (-) Richard Stallman writes: > > What is in the search string is a search pattern. How it is > > interpreted is the question. > > Right. And I am proposing a way to interpret part of it. Namely, > two spaces in a row means to match two spaces in the buffer. But if you isearch-yank them they should be normalized so that they continue to do lax matching. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 09:16:02 2016 Received: (at 22494) by debbugs.gnu.org; 1 Feb 2016 14:16:02 +0000 Received: from localhost ([127.0.0.1]:44129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQFGs-0000Rs-38 for submit@debbugs.gnu.org; Mon, 01 Feb 2016 09:16:02 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34358) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQFGq-0000RZ-Mz for 22494@debbugs.gnu.org; Mon, 01 Feb 2016 09:16:00 -0500 Received: by mail-wm0-f52.google.com with SMTP id 128so73113284wmz.1 for <22494@debbugs.gnu.org>; Mon, 01 Feb 2016 06:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jdHAlgFt/WhEqunu5L0DWL78rf3pfHJCXYDMLjctT3U=; b=l4/7MAFsqtWjFrnzGjkhXCKTWSGOBsP0gPCD99FBIA7a7/P4tbGioxKqfgjtpQnW8r Ka5eTAwSqqS5Fc1z+A6aAD0rNEXipXWBcI0X0nptM57mSsDyeMNaqDKE/AZdXKdlmSUg xSxQHeglNiMUODsQz1Q+ArpLGDZj/P3czXQPLDedJxt9D6yKSxflNDXBqbLwCP6Bzj0E 5xgk3WN/ZttcSnVLGYEchD+ONhWd3UtED7j7yAJSt3FxZ4t3TE7Cj7mAzJ1JG9MB9Hb8 vkeg4drnGtIJyU/49IgrsPJtAnFoRYDpOXHfDqWwjUZhKX6dpdtYbko9wPFB3+0K/LhO aDOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jdHAlgFt/WhEqunu5L0DWL78rf3pfHJCXYDMLjctT3U=; b=lm+tdwzmUWCYUbAQq3xZ356zjIx6lGVv0fVWdChb8Yk4G1wPQBs2lfLQRbC3SvEtQf OJWx+rnfbeOETxZN9sOYncveg4qiP3LKMLLpG2s8xDexlJJdMVcb/lLFFWjD5xp0q9rk U800EENii/N4G4jzCbmzS9hNAmQk0eoR7MUIeg9TmWDMmAOWpYsXP0ydpH40584Odgqf a8PCBWzzsdvWNjTLsIrcwPOt/qX/pe77efBHDWKjq4iCaanvrj3xEWHq9s4Lzr5wY7j7 +slf2OJa147Pe3gi3Lc0D8VpuF0+MMVC6pviYVErGecYIGNWgzG2/VKAstYedB+v7YdF FN4A== X-Gm-Message-State: AG10YOSiM5KcAO9Cdcrh+NI9eEmRXHS92f5spxBjPS6CEiIPZfidB/CvFPKVRxnAnMhpzlTdNfxqzJzrp8ElKA== MIME-Version: 1.0 X-Received: by 10.194.242.67 with SMTP id wo3mr22204303wjc.180.1454336155076; Mon, 01 Feb 2016 06:15:55 -0800 (PST) Received: by 10.27.225.4 with HTTP; Mon, 1 Feb 2016 06:15:55 -0800 (PST) In-Reply-To: References: <87h9hvshi3.fsf@jidanni.org> <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default> <871t8yit11.fsf@mbork.pl> <77b5b6df-4889-4142-a04d-526dd94c3a48@default> <6281db1e-d974-4cdc-b111-3e9097ae89db@default> Date: Mon, 1 Feb 2016 15:15:55 +0100 Message-ID: Subject: Re: bug#22494: still can't search for two spaces From: Dani Moncayo To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, Richard Stallman , Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) >> > What is in the search string is a search pattern. How it is >> > interpreted is the question. >> >> Right. And I am proposing a way to interpret part of it. Namely, >> two spaces in a row means to match two spaces in the buffer. > > But if you isearch-yank them they should be normalized so that they > continue to do lax matching. Quoting from [1]: IMO, Emacs should refrain from making permanent changes to the search string, as given by the user. IOW, the search string should be kept untouched, and any transformations of it should be done "on the fly" to achieve the intended behavior, based on both the _current_ search string and the _current_ user options that govern the search behavior. That way, if/when either the search string or the user options changes, Emacs will be able to exhibit the expected behavior. IOW, I don't think that normalization is a good idea. But I agree with you that two (or more) consecutive spaces should be treated specially _only_ if they were *typed* by the user (not yanked from the kill ring or grabbed from the buffer) --- Dani Moncayo [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16546#43 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 01:45:53 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 06:45:53 +0000 Received: from localhost ([127.0.0.1]:57381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQrCL-00057v-6X for submit@debbugs.gnu.org; Wed, 03 Feb 2016 01:45:53 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:36563) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQrCI-00057h-Tq for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 01:45:51 -0500 Received: by mail-pf0-f180.google.com with SMTP id n128so8474250pfn.3 for <22494@debbugs.gnu.org>; Tue, 02 Feb 2016 22:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mime-version:content-type; bh=c12eXZ02K7Xr+RRDEpScCYHvizI6nX0wSPF/JQq8VvQ=; b=SXnasQF8ohb4extrSV2jmr2cdPA1l3aD1j+5Gh9vYWDsTpSgZ376sLU8wuWa3Yy05c tGj9UUk92LERANZYLXB8xiysMTex2nrGlt+w3w98d168w2m+64p/r0beL/dZXLAM01w2 UtTyQja8tV94LLfWtz+RaK51sQIsHzbBv2ped4i6b0d83vCwtQ3zTgcKuQudwv8Twa1H S/jmQpLuCZIjsQldNaFwjXLbCqWnGyrpStoTRdasZ+GEVllKpAQUo3GsmZY0bL/uXu1Q CaNY1D/mmq/qMQxQc78tdYG6FRa/nhyD/pRdCmP8HcQ9Vq5qVCGiYUPCjB0QOEinx5r7 99iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mime-version:content-type; bh=c12eXZ02K7Xr+RRDEpScCYHvizI6nX0wSPF/JQq8VvQ=; b=HbMPkAwjWdsN/ycGwLgWUloX/My6dPckxJfKSGGpZUxJfxBmnm5s8TwEqpERACeWLt lYjzl3O9DFozgdt8U9a2mq8Bq9IO0hnMgOH4xNog5OlXj2RAE6dvZ9HrlJjg03nARELb kL3cfbO7Z7Kxd/QzVnMOp8S5Sk5bPL7EfxX+/QJcmONq4E5W/6SlJV3G/EQ+xcIWg+50 wQN18mKAQ7CP41CcyoNG+DTigid+K2TdzorDB2ScylqzyBwe7MuAlVnh2uKlhNWN7pmk wcVsl4RdVAIejgFLhJOCj28iLi7qt98jCQaZpLhakY3Vl5OI/Bt6x5kxe6GedKXFIwOa Y30A== X-Gm-Message-State: AG10YOTy9o5bNlQqJrVYeQuNv/KSvd1t0Megk1mJDPv1CV9pmxCsK/jkxJXEFdGYiIltaw== X-Received: by 10.98.68.220 with SMTP id m89mr53317215pfi.65.1454481945112; Tue, 02 Feb 2016 22:45:45 -0800 (PST) Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id s65sm7093598pfi.12.2016.02.02.22.45.43 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 02 Feb 2016 22:45:44 -0800 (PST) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id 5A8F912B8525E; Tue, 2 Feb 2016 22:45:43 -0800 (PST) To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces In-Reply-To: <6281db1e-d974-4cdc-b111-3e9097ae89db@default> (Drew Adams's message of "Sun, 31 Jan 2016 13:29:26 -0800 (PST)") Date: Tue, 02 Feb 2016 22:45:41 -0800 Message-ID: References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Wiegley Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>>>> Drew Adams writes: > Heeding what is in the search string means nothing - or anything. I don't know why you're saying this Drew. If the user types something into the search string, and exactly that something is present in the buffer, Emacs should locate it before any "lax" variant. This means that type "nD" where nD exists, should find nD. Typing " " where two spaces exist, should find the two spaces. Whether or not lax whitespace matching should be the default is an entirely separate matter. I rather like the lax matching, so long as my use of two spaces in a search string does not mean that I can't find two spaces. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 09:57:55 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 14:57:55 +0000 Received: from localhost ([127.0.0.1]:58220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQysV-0001XA-JZ for submit@debbugs.gnu.org; Wed, 03 Feb 2016 09:57:55 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:45346) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQysT-0001Wx-7c for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 09:57:53 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u13EvkQB005039 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Feb 2016 14:57:47 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u13Evkjr020998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 3 Feb 2016 14:57:46 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u13Evj8c032309; Wed, 3 Feb 2016 14:57:45 GMT MIME-Version: 1.0 Message-ID: <450ada88-ae30-4cde-8db0-cc8e625eebf9@default> Date: Wed, 3 Feb 2016 06:57:44 -0800 (PST) From: Drew Adams To: John Wiegley Subject: RE: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.7 (--) > > Heeding what is in the search string means nothing - or anything. >=20 > I don't know why you're saying this Drew. By itself, it could mean anything. What does it mean to "heed" the current search pattern? Nothing implies that a single whitespace char in a row should mean that "heed" means switch to lax whitespace matching. The whole question about what kind of matching to do (lax, literal, regexp,...) is about the meaning of "heeding" the search pattern in a given context. > If the user types something into the search string, and exactly that > something is present in the buffer, Emacs should locate it before any > "lax" variant. Really? Always? I wouldn't have a problem with that (except if you mean for it to apply also to regexp search). But those who are fans of lax whitespace search might not like it. Today, not only is lax whitespace matching a possibility, but it is the default for C-s. What you suggest would mean that even=20 with lax w-s matching, search should first look for an exact match, before finding a lax match (i.e., even if that lax match came before the literal match).=20 > This means that type "nD" where nD exists, should find nD. Typing > " " where two spaces exist, should find the two spaces. I have no problem with that, and have said so multiple times now. I was the first to +1 the motion that multiple, contiguous whitespace chars should automatically turn off lax-ws matching. > Whether or not lax whitespace matching should be the default is an entire= ly > separate matter. I rather like the lax matching, so long as my use of two > spaces in a search string does not mean that I can't find two spaces. Yes, the default behavior is a different matter from whether the matching mode should switch automatically depending on the search string. I think perhaps you misread what I've written. I simply pointed out that, while I agree with the proposal to automatically turn off lax w-s if you type multiple w-s chars, there are some possible questions for what to do in these cases: a. You delete the multiple w-s chars, so there is now only one in a row. Should we then turn lax w-s matching back on? I only raised the question - I didn't propose an answer. b. Instead of _typing_ multiple, contiguous w-s chars (which some of us have agreed should turn off lax w-s), you _paste_ text that includes multiple, contiguous w-s chars. Should we turn off lax w-s in that case too? Again, I only raised the question - I didn't propose an answer. In some cases where you paste such text, you might be well aware that there are multiple such chars in a row, and you might purposefully want to search for them literally. This can be the case if you copy and yank code, for example. And it is more likely to be true if you copy+paste text from an Emacs buffer than non-code text from outside Emacs. In other cases, you might not realize that there are multiple such chars in a row, and you might not really care to search literally. This can happen if you paste text copied from outside Emacs, for instance. In sum: 1. I agree (!) with the proposal to automatically turn OFF lax w-s search if you type multiple, contiguous w-s chars. 2. I proposed that when that happens we clearly indicate the change to users. 3. I raised a question about whether lax w-s matching should be automatically turned back ON if you change the search string (e.g. delete some chars) so that it no longer has multiple, contiguous w-s chars. 4. I raised a question about whether lax w-s matching should be automatically turned OFF if you _paste_ (not type) text that contains multiple, contiguous w-s chars. TL;DR: DWIM is hard. It never does what everyone means, in every context. It's about compromises & judgment. And it requires good feedback about what it's doing for "free". DWIM behind a user's back always bites someone, in the end. ;-) Hope this clears things up a bit. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 10:29:18 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 15:29:18 +0000 Received: from localhost ([127.0.0.1]:58240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQzMs-0002Xk-90 for submit@debbugs.gnu.org; Wed, 03 Feb 2016 10:29:18 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33733) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQzMq-0002XX-56 for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 10:29:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQzMf-00051p-AI for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 10:29:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 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]:59867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQzMD-0004qn-Pf; Wed, 03 Feb 2016 10:28:37 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2996 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aQzM6-0002q9-25; Wed, 03 Feb 2016 10:28:30 -0500 Date: Wed, 03 Feb 2016 17:28:11 +0200 Message-Id: <83twlpyfsk.fsf@gnu.org> From: Eli Zaretskii To: John Wiegley In-reply-to: (message from John Wiegley on Tue, 02 Feb 2016 22:45:41 -0800) Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, drew.adams@oracle.com, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > From: John Wiegley > Date: Tue, 02 Feb 2016 22:45:41 -0800 > Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, jidanni@jidanni.org > > If the user types something into the search string, and exactly that something > is present in the buffer, Emacs should locate it before any "lax" variant. Of course, with the way it works in Emacs, there's no "before". There's either this or that: either Emacs finds only the literal matches, or it finds both literal and lax matches. If the latter, the first literal or lax match after point will be the first one found, even if it's a lax match and there's a literal match farther away. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 10:43:42 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 15:43:42 +0000 Received: from localhost ([127.0.0.1]:58244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQzao-0002sQ-Id for submit@debbugs.gnu.org; Wed, 03 Feb 2016 10:43:42 -0500 Received: from mxin.ulb.ac.be ([164.15.128.112]:43093) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQzan-0002sI-2N for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 10:43:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMJAGUfslakD4Xx/2dsb2JhbABeKAECgj6CEIJphXKpbokRhg0CghMBAQEBAQGBC0ESAYNuAQEEeRAIAw4TJQ8BBA08E4gGAxK7Ow1Eg20BAQEHAgEdhhKEN4I3hjUFlnGLWosFhV+Gf4dBYoNlOy6BP4gsAQEB Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 03 Feb 2016 16:43:39 +0100 From: Nicolas Richard To: John Wiegley Subject: Re: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> Date: Wed, 03 Feb 2016 16:44:07 +0100 In-Reply-To: (John Wiegley's message of "Tue, 02 Feb 2016 22:45:41 -0800") Message-ID: <87d1sdlry0.fsf@ulb.ac.be> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 22494 Cc: mbork@mbork.pl, rms@gnu.org, 22494@debbugs.gnu.org, John Wiegley , jidanni@jidanni.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.8 (--) John Wiegley writes: >>>>>> Drew Adams writes: > >> Heeding what is in the search string means nothing - or anything. > > I don't know why you're saying this Drew. > > If the user types something into the search string, and exactly that something > is present in the buffer, Emacs should locate it before any "lax" variant. That looks like setting lax-ws to nil by default but turning it on automatically if there's no match. One question is which one(s) of those lax-foo options should be turned on first ? -- Nicolas From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 13:56:27 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 18:56:27 +0000 Received: from localhost ([127.0.0.1]:58388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR2bL-0002PK-2N for submit@debbugs.gnu.org; Wed, 03 Feb 2016 13:56:27 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:36833) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR2bJ-0002P8-PJ for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 13:56:26 -0500 Received: by mail-pf0-f173.google.com with SMTP id n128so18135141pfn.3 for <22494@debbugs.gnu.org>; Wed, 03 Feb 2016 10:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mime-version:content-type; bh=y/h1pa9js5pyrneGFFU3hiKvw55MryVyMeiu2UWPzlE=; b=kVbzjXPFMpEiOXQZgmsUV1XZU30W3sbzLi8UJC/Bb20QutYh/XUark/v9L8PpptPdt lw8oZob0IrUYlfJ1iUIIlVD0QQu4cBaIP2eW2rsOa0Kh19K0fhETiJw3KdjZLLuTspkb G9LYefzEUsCImlMuJlrKfUL4NG+U0m5FO+7eJkoKew0zjfhCiLVqTwL1fMlmMjB+K0Vw v20SFTfppLcJmOLpqTKjjA5+RZW3h4Wi7q+OFJIQXJu46k1IbhPJL3hPIIKJSyMqkJwr 1paby0y+oSr4Y56iPwW8duFPbn8ymbvTh772Nkr3dzmQ5uYhX3YDtG2ofJ9uRgUPFMsb qjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mime-version:content-type; bh=y/h1pa9js5pyrneGFFU3hiKvw55MryVyMeiu2UWPzlE=; b=F4ruNBOcqhO9Z7R0SO/lRzfifZcDQjDZl6xW6Fmi5qYmNksHm+zqNfMYAjmen5Vfl4 yJn7esUq6D5babxYDLVmiytpkQ24iVzaMMpyq2agX/CGAadSI9YwTkRAX89TC8yl0VA5 erLZd41I5K39st9Y7bnYUa071HB5wAvyHwWk3SNt3D3TxNxMZii+3tpSkxpuRaetRmzf EsCb1Y3syjR2WnR2pMcE6rIiwwv9HEXCWVRvwW4RUAyVt7BEvYyKKqYjKSI5+8xsZf1N joPGP+FqM6lqz6J/YQ7M6pW6nYs/B3Kn+qEH5rz5jd8GGbCLLekzrURKieAXfoas12Id umbA== X-Gm-Message-State: AG10YOSOTNI0ASXzo+sDso2BiNEiYKop+h0mxrRTl+yHeLjRGEwR5bjGEG1QX9W+69/jHA== X-Received: by 10.98.12.21 with SMTP id u21mr4673634pfi.36.1454525779940; Wed, 03 Feb 2016 10:56:19 -0800 (PST) Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id z67sm11495865pfa.71.2016.02.03.10.56.18 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 03 Feb 2016 10:56:18 -0800 (PST) From: John Wiegley X-Google-Original-From: John Wiegley Received: by Vulcan.local (Postfix, from userid 501) id 7C82A12BA3F19; Wed, 3 Feb 2016 10:56:17 -0800 (PST) To: Drew Adams Subject: Re: bug#22494: still can't search for two spaces In-Reply-To: <450ada88-ae30-4cde-8db0-cc8e625eebf9@default> (Drew Adams's message of "Wed, 3 Feb 2016 06:57:44 -0800 (PST)") Date: Wed, 03 Feb 2016 10:56:16 -0800 Message-ID: References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> <450ada88-ae30-4cde-8db0-cc8e625eebf9@default> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Wiegley Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>>>> Drew Adams writes: > Really? Always? I wouldn't have a problem with that (except if you mean for > it to apply also to regexp search). But those who are fans of lax whitespace > search might not like it. > Today, not only is lax whitespace matching a possibility, but it is the > default for C-s. What you suggest would mean that even with lax w-s > matching, search should first look for an exact match, before finding a lax > match (i.e., even if that lax match came before the literal match). Sorry, I wasn't entirely clear: I meant, if the user enters a search string which contravenes the notion of lax matching, such as two spaces. In the same way that we do for case folding. > 1. I agree (!) with the proposal to automatically turn OFF > lax w-s search if you type multiple, contiguous w-s chars. Yay! > 2. I proposed that when that happens we clearly indicate the > change to users. I'm fine with that too. > 3. I raised a question about whether lax w-s matching should > be automatically turned back ON if you change the search > string (e.g. delete some chars) so that it no longer has > multiple, contiguous w-s chars. I wonder about this too. > 4. I raised a question about whether lax w-s matching should > be automatically turned OFF if you _paste_ (not type) text > that contains multiple, contiguous w-s chars. I think it should be, as with typing them. > DWIM is hard. It never does what everyone means, in every context. It's > about compromises & judgment. And it requires good feedback about what it's > doing for "free". DWIM behind a user's back always bites someone, in the > end. ;-) > > Hope this clears things up a bit. Yes, very much, thanks Drew! -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 14:08:21 2016 Received: (at 22494) by debbugs.gnu.org; 3 Feb 2016 19:08:21 +0000 Received: from localhost ([127.0.0.1]:58392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR2mr-0002h1-6s for submit@debbugs.gnu.org; Wed, 03 Feb 2016 14:08:21 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:22761) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR2mp-0002go-Ft for 22494@debbugs.gnu.org; Wed, 03 Feb 2016 14:08:19 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u13J8DLr004169 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Feb 2016 19:08:13 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u13J8Bpm011258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 3 Feb 2016 19:08:12 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u13J89q0028289; Wed, 3 Feb 2016 19:08:10 GMT MIME-Version: 1.0 Message-ID: <74c1c1b9-8bce-4cc9-8319-c1b9fce1fb1d@default> Date: Wed, 3 Feb 2016 11:08:08 -0800 (PST) From: Drew Adams To: John Wiegley Subject: RE: bug#22494: still can't search for two spaces References: <87h9hvshi3.fsf@jidanni.org>> > <54a07b7d-1fbd-4ed1-a8a0-e22eb5787c97@default>> <871t8yit11.fsf@mbork.pl>> <77b5b6df-4889-4142-a04d-526dd94c3a48@default>> > <6281db1e-d974-4cdc-b111-3e9097ae89db@default> <450ada88-ae30-4cde-8db0-cc8e625eebf9@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 22494 Cc: 22494@debbugs.gnu.org, mbork@mbork.pl, rms@gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.7 (--) > > 4. I raised a question about whether lax w-s matching should > > be automatically turned OFF if you _paste_ (not type) text > > that contains multiple, contiguous w-s chars. >=20 > I think it should be, as with typing them. Maybe. But it's easy to copy some text (e.g. non-code) from some external source (not Emacs), and search for it (by yanking). You might not even know whether it contains more than one whitespace char in a row. And if it does, I'm guessing that some users might be surprised to see lax whitespace matching turned off after the yank. Not a big deal, as long as they are clearly notified, in a way that they understand _why_ the search mode has changed (e.g. the search string now contains more than one w-s char in a row). But I still have the question of what the right approach is. There are different possibilities, when someone yanks some text to add to the search string, regarding the intention wrt searching for whitespace. My guess is that whatever behavior we choose some users will be confused. This just underlines the importance of letting the user know (a) that a change in behavior has taken place and (b) why it has. From unknown Fri Aug 15 16:56:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Mar 2016 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator