From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10113: 24.0.91; Isearch & `M-e' Date: Mon, 05 Dec 2011 12:49:43 +0200 Organization: JURTA Message-ID: <87sjkz70oo.fsf@mail.jurta.org> References: <871uszwxoi.fsf@mail.jurta.org> <87sjletwnb.fsf@mail.jurta.org> <87wraqpm7a.fsf@mail.jurta.org> <87fwh0yzj7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323082541 21675 80.91.229.12 (5 Dec 2011 10:55:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2011 10:55:41 +0000 (UTC) Cc: 10113@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 11:55:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXWCt-00012c-Vj for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 11:55:36 +0100 Original-Received: from localhost ([::1]:55162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXWCt-0008WV-74 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 05:55:35 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXWCq-0008WL-HD for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 05:55:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXWCo-0007Ud-Up for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 05:55:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXWCo-0007UZ-Q7 for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 05:55:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RXWDJ-0002H7-Pj for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 05:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2011 10:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10113 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10113-submit@debbugs.gnu.org id=B10113.13230825258665 (code B ref 10113); Mon, 05 Dec 2011 10:56:01 +0000 Original-Received: (at 10113) by debbugs.gnu.org; 5 Dec 2011 10:55:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXWCi-0002Fh-W8 for submit@debbugs.gnu.org; Mon, 05 Dec 2011 05:55:25 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXWCg-0002FT-3h for 10113@debbugs.gnu.org; Mon, 05 Dec 2011 05:55:22 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 995E768407F; Mon, 5 Dec 2011 02:54:48 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EA3BC451C684; Mon, 5 Dec 2011 02:54:30 -0800 (PST) In-Reply-To: <87fwh0yzj7.fsf@gnu.org> ("Johan \=\?iso-8859-1\?Q\?Bockg\=E5rd\=22\?\= \=\?iso-8859-1\?Q\?'s\?\= message of "Sun, 04 Dec 2011 19:14:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Dec 2011 05:56:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54708 Archived-At: >>> I'll try to express myself better: by default (without touching >>> `isearch-edit-string'), the "case fold search" behavior can be >>> switched on/off in two ways: >>> a. Manually: by typing `M-c'. >>> b. Automatically (only applies if the previous criterion is "case >>> insensitive"): based on whether the current search string contains any >>> uppercase letter or not. >>> >>> What I say is that currently (as we are shown) the (b) criterion is >>> not always re-evaluated, and it should. >>> >>> BTW, Stefan agrees on this, and I hope you too :-). >> >> True, currently after the first typed upper case letter, >> case-sensitivity is not re-evaluated anymore. >> >> This behavior can be changed with the following patch: > > Your patch breaks the `M-c' case. Yes, this patch makes automatic toggling in both directions: from case-insensitive to case-sensitive and back from case-sensitive to case-insensitive. Without this patch the current behavior is automatic toggling in one direction: from case-insensitive to case-sensitive (on the first encountered upper case letter). Toggling back from case-sensitive to case-insensitive is manual with `M-c', and this choice is remembered with the value `yes' of `isearch-case-fold-search'. To remember the user's toggle in the reverse direction (from case-insensitive to case-sensitive) we need to introduce a new value of `isearch-case-fold-search' (e.g. `no', but treating it as a nil value would be quite ugly). So perhaps instead of that, a better solution would be to re-evaluate case-sensitivity only in two places: in `isearch-edit-string' and `isearch-del-char'.