From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
2015-02= -20 14:58 GMT+01:00 Stefan Monnier <monnier@iro.umontreal.ca>= ;:> I was wondering why is `sh-electri= c-here-document-mode` activated by
> default for new documents in `sh-mode`?
IIRC I turned it into a minor mode and made it "enabled by defa= ult"
because the corresponding functionality was active by default before
(i.e. I just tried to preserve the previous behavior).
> I was under the impression that in most cases, this kind of commands,<= br> > inserting text beyond what the user types, without requiring anything<= br> > besides text input, are disabled by default.
We don't really have a clear policy on this.=C2=A0 I generally t= end to prefer
keeping those things disabled, indeed, but OTOH electric-indent-mode is
now enabled by default (which is a pretty major counter example).
> And why is it so hard to disable it once you find out where the annoyi= ng
> behavior comes from?
Hmm... indeed, maybe it should be a global minor mode?
> (Just see how many articles deal with this specific
> issue; and having changed the name of the mode in 24.3 doesn't hel= p)
I haven't noticed this, no.=C2=A0 Neither on gnu.emacs.help nor = on stackoverflow.
> I understand that changing defaults is sensible, but in this case, wou= ldn't
> it be worth it? In my opinion, the only people who may appreciate this=
> setting are people who know how to use C-q to work around it, and thes= e
> people will know how to reactivate it.
It should (supposedly) be very rare that it triggers by accident.
If you have some sample scenarios where it triggers when it's undesired= ,
maybe we can fine-tune it to avoid those,