From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#16546: C-s vs. whitespace highlighting Date: Mon, 27 Jan 2014 10:55:09 +0100 Message-ID: References: <87eh3wwfug.fsf@jidanni.org> <878uu46uns.fsf@bzg.ath.cx> <87bnyyifgr.fsf@yahoo.fr> <87lhy2idcs.fsf@bzg.ath.cx> <87vbx53hke.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1390816573 11787 80.91.229.3 (27 Jan 2014 09:56:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 09:56:13 +0000 (UTC) Cc: Bastien , 16546@debbugs.gnu.org, Nicolas Richard , Dan Jacobson To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 10:56:19 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 1W7ivR-00088Z-TJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 10:56:18 +0100 Original-Received: from localhost ([::1]:58625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7ivR-0004iv-Kg for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 04:56:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7ivJ-0004id-Bk for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 04:56:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7ivD-0004bm-9J for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 04:56:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7ivD-0004bg-5A for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 04:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7ivC-0000TQ-6o for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 04:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jan 2014 09:56:02 +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.13908165171765 (code B ref 16546); Mon, 27 Jan 2014 09:56:02 +0000 Original-Received: (at 16546) by debbugs.gnu.org; 27 Jan 2014 09:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:37370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7iuS-0000SO-OK for submit@debbugs.gnu.org; Mon, 27 Jan 2014 04:55:17 -0500 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:64404) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7iuM-0000SB-UT for 16546@debbugs.gnu.org; Mon, 27 Jan 2014 04:55:11 -0500 Original-Received: by mail-la0-f41.google.com with SMTP id mc6so4387868lab.28 for <16546@debbugs.gnu.org>; Mon, 27 Jan 2014 01:55:09 -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=4vtl0NN6ozqNW1TQneJ8ZEdh5HOApE/I2sOouihEh1A=; b=LzEg6+2Ap28a3x2rHLNzm78U8JzWCiZ8O4AUBYJms1yy/QFHpmKn67dwx7lZ7vp0Ua 1BJ4b9+0cunLWUx/QiK5F6pfnLQ2gcWXWPGkKjIpgY/EbdR5XXIKGUfSqmi8w/RWLzJr FWjC7TzFM3UA66v3GtONlwMhgsiBAFHSdOfGu/6hnSrsixpuAxQaRx1jztXwV/u3vOVf niTigcYwpJLWnHG3/wnpeQNXJ4Cjx+4Ec74WmXiLETjyHEa7J6H9RJmty4qh29leTMjl s1d9KFVnKny60/Y7G/9Q66Y8amg00bv7Hh+bOj1cm3Y8VHWdqEo7ExXp4PxiRt+gBA79 pZ6g== X-Received: by 10.152.43.103 with SMTP id v7mr37836lal.46.1390816509664; Mon, 27 Jan 2014 01:55:09 -0800 (PST) Original-Received: by 10.114.22.137 with HTTP; Mon, 27 Jan 2014 01:55:09 -0800 (PST) In-Reply-To: <87vbx53hke.fsf@mail.jurta.org> 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:84101 Archived-At: > This means that when the user types ` +' then `search-whitespace-regexp' > is ignored. I think the same should be implemented for a non-regexp search > as well, so typing ` ' will transform the input to ` +' and ignored. Just one comment, regarding the "transform" part: 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. But currently, there are cases where the original search string is lost (e.g. "C-s C-y" when the "yanked" text contains uppercase letters and case-fold-search is non-nil). For concrete use-cases related to this, see bugs #13480 or #10118. -- Dani Moncayo