From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16546: C-s vs. whitespace highlighting Date: Mon, 27 Jan 2014 09:21:41 +0100 Message-ID: <52E61715.7050200@gmx.at> References: <87eh3wwfug.fsf@jidanni.org> <878uu46uns.fsf@bzg.ath.cx> <87bnyyifgr.fsf@yahoo.fr> <87lhy2idcs.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1390810940 12724 80.91.229.3 (27 Jan 2014 08:22:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 08:22:20 +0000 (UTC) Cc: Bastien , 16546@debbugs.gnu.org, Nicolas Richard , Dan Jacobson To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 09:22:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7hSb-0006Kb-Pd for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 09:22:25 +0100 Original-Received: from localhost ([::1]:58291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7hSb-0007Gu-BR for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 03:22:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7hSP-0007AG-KB for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 03:22:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7hSG-0003g1-Gv for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 03:22:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7hSG-0003fw-DS for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 03:22:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7hSF-0006Y7-Vt for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 03:22:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jan 2014 08:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16546 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16546-submit@debbugs.gnu.org id=B16546.139081091225136 (code B ref 16546); Mon, 27 Jan 2014 08:22:03 +0000 Original-Received: (at 16546) by debbugs.gnu.org; 27 Jan 2014 08:21:52 +0000 Original-Received: from localhost ([127.0.0.1]:37331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7hS4-0006XM-6i for submit@debbugs.gnu.org; Mon, 27 Jan 2014 03:21:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:51118) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7hS2-0006XC-Kt for 16546@debbugs.gnu.org; Mon, 27 Jan 2014 03:21:51 -0500 Original-Received: from [62.47.55.74] ([62.47.55.74]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MRXzM-1Vjc612zxw-00Sjan for <16546@debbugs.gnu.org>; Mon, 27 Jan 2014 09:21:49 +0100 In-Reply-To: X-Provags-ID: V03:K0:yGAYxKnWpluUBLfTWDkmEmcHp3orNO5J7dtCRrCUACUXRJTVIjs vuN2SHxxNpwHE3gcHo+7uDgdIbklXCvOHxVAuZ2d7pobaK7M3aoZsYPsez10exMteQk3br1 Wu48qhalBkIYe4r9ijd/+cm3s25Y970BYykK5XyXO6UJd2JPIaTQcKXgsQXNOEORyUDP/Cx gSsL6v7V491mEXW6kxmkQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84094 Archived-At: >> Yes, good idea. I also think search for two whitespace chars in a row >> should temporary toggle `search-whitespace-regexp' to nil. > > IMO, that behavior would make sense only when the whitespace chars are > entered interactively (i.e. typed on the keyboard), because if the > search string comes from another place (copy&paste, grabbed from the > buffer, ...), I don't think it would be a good idea to temporarily set > `search-whitespace-regexp' to nil. And BTW, that reasoning applies > equally to case-fold-search. > > IOW, if I copy some text "foobar" from one place and > then go to Emacs and do "C-s C-y", I definitely want a "lax" search > wrt whitespace. > > At least, that behavior should be configurable, IMO. Searching for two or more whitespace characters without any surrounding non-whitespace characters should bind `search-whitespace-regexp' to nil. This would trivially take care of Dan's original problem. And it should go into Emacs 24.4 because Dan's scenario reveals a very obvious bug. martin