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.devel Subject: Re: Emacs default bindings Date: Tue, 28 Sep 2021 16:01:27 +0300 Message-ID: <83bl4ckg60.fsf@gnu.org> References: <46353190-1190-495f-b15e-22980159b3ab@yandex.ru> <83y28mp0rb.fsf@gnu.org> <51a363db-fde7-791d-cf8d-98ac601d62ee@yandex.ru> <57ca4d78-2339-201d-edce-678c9b003a99@yandex.ru> <01341bd6-b94b-4f94-1461-405e723142ad@yandex.ru> <8735qmjklm.fsf@localhost> <87ilzi86h7.fsf@posteo.net> <875yvh9anq.fsf@posteo.net> <83o899yjh2.fsf@gnu.org> <2aed65dd-bcec-8e0e-e48b-7664a041f98b@yandex.ru> <875yul6v9w.fsf@posteo.net> <83sfxpjhba.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4278"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, danflscr@gmail.com, rms@gnu.org, stefan@marxist.se, lokedhs@gmail.com, yantar92@gmail.com, yuri.v.khan@gmail.com, dgutov@yandex.ru, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 15:38:47 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mVDJn-0000yW-As for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 15:38:47 +0200 Original-Received: from localhost ([::1]:50328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVDJm-0008T3-AK for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 09:38:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVCk9-0002My-IZ for emacs-devel@gnu.org; Tue, 28 Sep 2021 09:01:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42644) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVCk8-0006K7-EU; Tue, 28 Sep 2021 09:01:56 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4444 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 1mVCjc-0005fu-Ne; Tue, 28 Sep 2021 09:01:33 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 28 Sep 2021 08:56:14 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275691 Archived-At: > From: Stefan Monnier > Cc: Yuri Khan , philipk@posteo.net, > danflscr@gmail.com, rms@gnu.org, lokedhs@gmail.com, > yantar92@gmail.com, emacs-devel@gnu.org, stefan@marxist.se, > dgutov@yandex.ru > Date: Tue, 28 Sep 2021 08:56:14 -0400 > > >> a) foo; > >> b) bar; > >> c) baz. > > > > This could happen in prog-mode's as well. For example in shell > > scripts, with the 'case' construct. Does it mean this mode makes no > > sense in prog-mode either? > > FWIW, there's an important difference in that sh-script knows about sh's > `case` syntax and neuters those parentheses, so they (usually) don't > break paren matching. Usually, but not always. > In contrast in prose, the use of parens as above is just a loose > convention that's hard to properly detect and handle correctly. It is also used quite rarely IME. And anyone who sees that will immediately understand it's a false positive, and disregard it. Finally, if someone doesn't like this, they can easily disable it in their text-mode hooks. So this is just another incarnation of "arguing about defaults of user options is waste of time and energy" principle.