From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10113: 24.0.91; Isearch & `M-e' Date: Tue, 22 Mar 2022 10:47:44 +0200 Organization: LINKOV.NET Message-ID: <861qyu73d3.fsf@mail.linkov.net> References: <871uszwxoi.fsf@mail.jurta.org> <87sjletwnb.fsf@mail.jurta.org> <87wraqpm7a.fsf@mail.jurta.org> <87fwh0yzj7.fsf@gnu.org> <87sjkz70oo.fsf@mail.jurta.org> <87czifnfc0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15426"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Dani Moncayo , 10113@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 22 10:22:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWaiW-0003pY-3s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Mar 2022 10:22:16 +0100 Original-Received: from localhost ([::1]:47698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWaiU-00012q-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Mar 2022 05:22:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWaiI-00011J-It for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2022 05:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWaiI-00071n-3J for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2022 05:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWaiH-0004pJ-Qx for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2022 05:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Mar 2022 09:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10113 X-GNU-PR-Package: emacs Original-Received: via spool by 10113-submit@debbugs.gnu.org id=B10113.164794089718522 (code B ref 10113); Tue, 22 Mar 2022 09:22:01 +0000 Original-Received: (at 10113) by debbugs.gnu.org; 22 Mar 2022 09:21:37 +0000 Original-Received: from localhost ([127.0.0.1]:39177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWaht-0004od-Gn for submit@debbugs.gnu.org; Tue, 22 Mar 2022 05:21:37 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWahs-0004oO-8f for 10113@debbugs.gnu.org; Tue, 22 Mar 2022 05:21:37 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 982E8E0006; Tue, 22 Mar 2022 09:21:25 +0000 (UTC) In-Reply-To: <87czifnfc0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 21 Mar 2022 22:52:31 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228740 Archived-At: >> Yes, this patch makes automatic toggling in both directions: >> from case-insensitive to case-sensitive and back from case-sensitive >> to case-insensitive. > > This was ten years ago, and isearch behaves the same, as far as I can > tell. This request is exactly as bug#14729 - to change the traditional behavior of isearch for no gain, only for consistency with some abstract ideas. >> 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'. > > I think your patch makes sense -- make `M-c' toggle the case > sensitivity in both directions, if I understand correctly? The patch implemented automatic case-fold toggling in both directions, where typing a letter re-evaluates case-sensitivity of the search string. This might break some users' habits. So another idea was to re-evaluate case-sensitivity only in `isearch-edit-string' and `isearch-del-char'. Still such change might be unexpected for some users.