From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#21277: 25.0.50; char-fold search is a screw, and I can't see how to disable Date: Tue, 18 Aug 2015 14:30:35 +0200 Message-ID: <87pp2k22z8.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439901084 12058 80.91.229.3 (18 Aug 2015 12:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 12:31:24 +0000 (UTC) Cc: Andreas Schwab , 21277@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 14:31:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRg2p-0008MO-BQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 14:31:11 +0200 Original-Received: from localhost ([::1]:56535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRg2o-0000Mj-OG for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 08:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRg2m-0000Kt-0G for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2015 08:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRg2g-0004ow-CL for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2015 08:31:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRg2g-0004os-8B for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2015 08:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZRg2f-0006bN-TX for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2015 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Aug 2015 12:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21277 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21277-submit@debbugs.gnu.org id=B21277.143990104225348 (code B ref 21277); Tue, 18 Aug 2015 12:31:01 +0000 Original-Received: (at 21277) by debbugs.gnu.org; 18 Aug 2015 12:30:42 +0000 Original-Received: from localhost ([127.0.0.1]:58804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZRg2L-0006am-7e for submit@debbugs.gnu.org; Tue, 18 Aug 2015 08:30:41 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:49544) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZRg2G-0006aa-Cu for 21277@debbugs.gnu.org; Tue, 18 Aug 2015 08:30:37 -0400 Original-Received: from thinkpad-t440p (dhcp163.uni-koblenz.de [141.26.71.163]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 88AB43D6005; Tue, 18 Aug 2015 14:30:35 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Mon, 17 Aug 2015 23:41:54 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) 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: 208.118.235.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:105552 Archived-At: Richard Stallman writes: > > That has nothing to do with char-fold, this feature already exists since > > 24.3 and is called lax-whitespace. > > How come it did not occur in the Emacs I was running before last week? > I built that from master a few months ago. > > Anyway, it is a total screw. Who likes this as a default? I like that behavior because I frequently search for "some text" in prose, and then it allows me to find also the matches where the two words are wrapped around. But I think the `isearch-lax-whitespace' feature can still be improved: 1. The `isearch-lax-whitespace' docstring speaks of "ordinary incremental search" which I've read as "non-regex isearch". But it seems that regex isearch is also affected. I'd just strip the "ordinary". 2. More importantly, isearching for C-j SPC matches any sequence of two whitespace characters, e.g., it matches between here and here, too. ^^ ^^ I had expected that only space characters in the search string are replaced by `search-whitespace-regexp' but it seems that any whitespace character is replaced by it. I think this is not good. And IMHO, it would be a good idea to disable lax-whitespace for the current search as soon as the search string contains a non-space whitespace character. I think if the user explicitly types C-j, C-i, etc. she's probably not interested in treating spaces as any-whitespace but wants to distinguish newlines from tabs and spaces. Bye, Tassilo