From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54804: 29.0.50; zap-to-char: case sensitive for upper-case letter Date: Tue, 17 May 2022 15:41:53 +0300 Message-ID: <83pmkcgwku.fsf@gnu.org> References: <87ee27fd1a.fsf@gmail.com> <83bkxaaj45.fsf@gnu.org> <878rs55m81.fsf@gmail.com> <834k2t1cva.fsf@gnu.org> <87ilqdnl8z.fsf@gmail.com> <83bkw4s4ln.fsf@gnu.org> <87fslgnn9h.fsf@gmail.com> <87lev85d36.fsf@gmail.com> <877d6sum2c.fsf@igel.home> <4548a66-c8f8-57de-58db-6241a1f16cc4@gmail.com> <8735hguk0u.fsf@igel.home> <218f952c-747d-c32-5bce-5ad078a51f41@gmail.com> <878rr6oidh.fsf@gmail.com> <83czgind12.fsf@gnu.org> <874k1onxs1.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40591"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54804@debbugs.gnu.org, juri@linkov.net, uyennhi.qm@gmail.com, monnier@iro.umontreal.ca, spwhitton@spwhitton.name To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 17 16:26:25 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 1nqy9Z-000AR6-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 May 2022 16:26:25 +0200 Original-Received: from localhost ([::1]:47540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqy9Y-0008GO-9U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 May 2022 10:26:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqwXW-0006bI-9x for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 08:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqwXV-00054L-VC for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 08:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqwXV-00011p-SE for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 08:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 May 2022 12:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54804-submit@debbugs.gnu.org id=B54804.16527913303882 (code B ref 54804); Tue, 17 May 2022 12:43:01 +0000 Original-Received: (at 54804) by debbugs.gnu.org; 17 May 2022 12:42:10 +0000 Original-Received: from localhost ([127.0.0.1]:56017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqwWg-00010Y-Av for submit@debbugs.gnu.org; Tue, 17 May 2022 08:42:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqwWe-00010J-Lk for 54804@debbugs.gnu.org; Tue, 17 May 2022 08:42:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqwWY-0004u1-SC; Tue, 17 May 2022 08:42:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=R7CUfo+/Kqj20di2opr35xevbjkQ7f1mBAxNEyR9NZY=; b=M8TvWvmUyCFL +/WSGFMj8EYn9u6UvPR/1RoJ937uyr5fVgo8ZGZ3w+Qdus8UYtDXX0Xhn6Ap7Sn5lFOUJ0cHf5yR3 4kaLdXhuNyJeejhFX7bhVIYci9uRUhSdwiCDmCaqAdkM+NLwDFx9Xnh2n8UqYDoeT1osDFpf8wjFZ 4D6VZcK4lkrHTuU1JWEZGgqaijU8Rja9KqjhRV98GP5ms846EzH7bs3vDAM+po06NDCLmGf80VeiZ 0Q9/c2EZIPQiL6l1TkmtCNtP3mUYB4FI+bbTr6UNk6cc3i+kbwuFBWITPWRRcp+hkZSiuklXZGzeG Pg+AnbgNMyBYD8ksWV5LMQ==; Original-Received: from [87.69.77.57] (port=2920 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqwWY-00020v-Be; Tue, 17 May 2022 08:42:02 -0400 In-Reply-To: <874k1onxs1.fsf@gmail.com> (message from Tino Calancha on Tue, 17 May 2022 14:34:06 +0200) 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:232451 Archived-At: > From: Tino Calancha > Cc: 54804@debbugs.gnu.org, spwhitton@spwhitton.name,uyennhi.qm@gmail.com, > , juri@linkov.net > Date: Tue, 17 May 2022 14:34:06 +0200 > > Eli Zaretskii writes: > > I have added Stefan, who suggests using the interactive arg (see > explanation below). > I have also added Juri, who is expert on isearch. > > >> From: Tino Calancha > >> * lisp/misc.el (zap-up-to-char): Add an optional arg INTERACTIVE. > >> Perform a case-sensitive search when INTERACTIVE is non-nil and > >> CHAR is an upper-case character. > > > > I don't understand why the need for the new INTERACTIVE argument. > > > And, as mentioned above, I don't think I understand why we need to do > > this only in interactive calls. Non-interactive invocations already > > have a way to request case-sensitivity, by let-binding > > case-fold-search, right? > > I'll try to explain this. > > This is what Emacs does for isearch/search. Search is a much more complex set of features and commands in Emacs. These two commands are much simpler, and I see no reason to try to be compatible with search commands, since these two commands don't search anything. > I want the analog behavior for zap-to... commands: automatic > case sensitivity when the char is uppercase. > I want this behavior on interactive calls only, for instance when users > do `M-z'. As I said I disagree: these are DWIMish features that are best reserved for interactive invocation. In calls from Lisp, it is confusing to have the behavior change so drastically depending on the letter-case of an argument.