all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Thibaut Verron <thibaut.verron@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Default setting for sh-maybe-here-document-mode
Date: Fri, 20 Feb 2015 08:58:01 -0500	[thread overview]
Message-ID: <jwvy4nsn11w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFsi02T1WV7_c668M=pwsBysAr1EvPzwJZs819fBFQ9PB2RbOg@mail.gmail.com> (Thibaut Verron's message of "Fri, 20 Feb 2015 09:19:22 +0100")

> I was wondering why is `sh-electric-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 default"
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,
> inserting text beyond what the user types, without requiring anything
> besides text input, are disabled by default.

We don't really have a clear policy on this.  I generally tend 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 annoying
> 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 help)

I haven't noticed this, no.  Neither on gnu.emacs.help nor on stackoverflow.

> I understand that changing defaults is sensible, but in this case, wouldn'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 these
> 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,


        Stefan



  parent reply	other threads:[~2015-02-20 13:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20  8:19 Default setting for sh-maybe-here-document-mode Thibaut Verron
2015-02-20  8:31 ` Eli Zaretskii
2015-02-20  8:39   ` Thibaut Verron
2015-02-20 13:58 ` Stefan Monnier [this message]
2015-02-20 15:49   ` Thibaut Verron
2015-02-20 17:08     ` Stefan Monnier
2015-02-20 17:23       ` Thibaut Verron
2015-02-22 23:24         ` Stefan Monnier
2015-02-23  8:41           ` Thibaut Verron
2015-02-21  9:12     ` Philipp Stephani

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=jwvy4nsn11w.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=thibaut.verron@gmail.com \
    /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.