From: Madhu <enometh@meer.net>
To: emacs-devel@gnu.org
Subject: Re: newline-and-indent vs. electric-indent-mode
Date: Mon, 25 Jan 2021 07:26:03 +0530 [thread overview]
Message-ID: <m3wnw1eq4s.fsf@leonis4.robolove.meer.net> (raw)
In-Reply-To: jwva6t0s6vj.fsf-monnier+emacs@gnu.org
* Stefan Monnier <jwva6t0s6vj.fsf-monnier+emacs@gnu.org> :
Wrote on Fri, 22 Jan 2021 22:16:39 -0500:
> I think `electric-indent-mode` is annoying in any case if the
> indentation code disagrees with your style. There are lots of knobs to
> play with deciding when and were indentation happens, and it's hard to
> know what the statistically optimal heuristic. So I won't try to argue
> that the current choice is best, but I think it's equally hard to argue
> that some other choice is best.
>
> If we could automatically detect when a reindentation is immediately
> undone by the user, maybe we could collect statistics.
As a data point, I find every design choice you have made in this area
has directly attacked my usage. Typically In C-like modes turning it on
leads to spurious whitespace when I want to insert a new line. Which
means I have to *always* what electric indent does. This may be an
excuse for introducing Telemetry in organizations like mozilla, but I
hope emacs development isn't driven by those devils.
I used to be benefit from emacs indentation by binding RET to
newline-and-indent and remain in control of indentation. Since electric
indent the *only* I can use emacs is to globally turn electric mode off.
IN ALL CASES what it guesses for me is exactly what I do not want it to
do.
Collecting the changes in a central place means that all modes are
affected. I am unable to use any mode effectively which SM has touched.
It is a lost case when the behaviour that I have been using for years is
now broken and there is no path to fix it short of throwing all SMIE
code out of the window. The problem is the new code is hostile by
design and only cares about enslaving me to its ideology and to change
my established work style and work behaviour. Invariably I have to give
up what I wanted to do and curse, and chalk it up as another victory of
the devil over me
next prev parent reply other threads:[~2021-01-25 1:56 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-22 13:53 newline-and-indent vs. electric-indent-mode Harald Jörg
2021-01-22 14:49 ` Stefan Monnier
2021-01-22 15:02 ` Dmitry Gutov
2021-01-22 15:09 ` Stefan Monnier
2021-01-22 22:43 ` Dmitry Gutov
2021-01-22 22:56 ` Stefan Monnier
2021-01-22 23:00 ` Dmitry Gutov
2021-01-22 23:16 ` Stefan Monnier
2021-01-23 0:45 ` Dmitry Gutov
2021-01-23 3:16 ` Stefan Monnier
2021-01-24 2:54 ` Dmitry Gutov
2021-01-24 5:29 ` Stefan Monnier
2021-01-24 21:45 ` Dmitry Gutov
2021-01-25 1:56 ` Madhu [this message]
2021-01-25 2:29 ` Dmitry Gutov
2021-01-25 10:45 ` Madhu
2021-01-25 11:59 ` Dmitry Gutov
2021-01-25 14:36 ` Stefan Monnier
2021-01-25 14:42 ` Dmitry Gutov
2021-01-25 15:15 ` Stefan Monnier
2021-01-25 20:10 ` Rudolf Schlatte
2021-01-26 2:04 ` Dmitry Gutov
2021-01-26 2:43 ` Stefan Monnier
2021-01-26 15:58 ` martin rudalics
2021-01-25 3:33 ` Eli Zaretskii
2021-01-22 19:33 ` Harald Jörg
2021-01-22 22:05 ` Stefan Monnier
2021-01-23 2:19 ` Harald Jörg
2021-01-23 3:29 ` Stefan Monnier
2021-01-23 16:27 ` Harald Jörg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3wnw1eq4s.fsf@leonis4.robolove.meer.net \
--to=enometh@meer.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.