emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs default bindings


From: Eli Zaretskii
Subject: Re: Emacs default bindings
Date: Tue, 28 Sep 2021 16:01:27 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Yuri Khan <yuri.v.khan@gmail.com>,  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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]