From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.devel Subject: Re: Default setting for sh-maybe-here-document-mode Date: Fri, 20 Feb 2015 09:39:18 +0100 Message-ID: References: <83r3tlkmpx.fsf@gnu.org> Reply-To: thibaut.verron@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e0b3f2e85a4050f80fe8e X-Trace: ger.gmane.org 1424421587 12449 80.91.229.3 (20 Feb 2015 08:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 08:39:47 +0000 (UTC) Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 20 09:39:46 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YOj7h-0002PK-Kc for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2015 09:39:45 +0100 Original-Received: from localhost ([::1]:59476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOj7g-0000X9-Tr for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2015 03:39:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOj7d-0000Wt-IG for emacs-devel@gnu.org; Fri, 20 Feb 2015 03:39:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOj7c-00055D-Ip for emacs-devel@gnu.org; Fri, 20 Feb 2015 03:39:41 -0500 Original-Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:32868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOj7a-00053u-R2; Fri, 20 Feb 2015 03:39:38 -0500 Original-Received: by mail-ob0-f170.google.com with SMTP id va2so22898153obc.1; Fri, 20 Feb 2015 00:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=m2hSdDBApP0Aad0BP+imE7XDXD5isQELvZVlI9L0wPI=; b=WMtZg+kscvDEiT/14zGoxbKPomB4smhDro7KHgBa4tI4ALkKjsYCj4SuWtkoKB6bx1 AZ2IIdpsrR8hzRrgPAIbx4W4JZXo1hm5gFlMYuf2I7xOTA0rfmLsIl9gWYghIfhBUfd4 Fsjpr5ziIAaeWl803jabG5MFjt3mCSz3VwmWOvMoB4IA89qi/A/gxIg6NRL9RpmJQBdT JwbIlK0JahLVeh+cQY0cqt+hdEmLYZaAZBldPQm07R/jO1Gw0Qn+Hxy36AHxDKJPzwQw nOki5cuJ99oIlS06lKnvRtTepTZqNevrbNExmuQbLgdQOJ9JRvuM+ZsCUyc9LwgAXsN3 xqfQ== X-Received: by 10.60.129.161 with SMTP id nx1mr5697272oeb.77.1424421578243; Fri, 20 Feb 2015 00:39:38 -0800 (PST) Original-Received: by 10.202.216.85 with HTTP; Fri, 20 Feb 2015 00:39:18 -0800 (PST) In-Reply-To: <83r3tlkmpx.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183320 Archived-At: --047d7b2e0b3f2e85a4050f80fe8e Content-Type: text/plain; charset=UTF-8 Most of them are not activated by default. 2015-02-20 9:31 GMT+01:00 Eli Zaretskii : > > From: Thibaut Verron > > Date: 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`? In my opinion, it is confusing to > beginners, > > and working around it is difficult. > > > > 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. AUCTeX's electric backslash, for example, > require a > > specific option to be set, even though in most cases it can be > transparent > > input-wise (just visually confusing). Another example is dabbrev, which > needs > > to be activated by the user. > > > > And why is it so hard to disable it once you find out where the annoying > > behavior comes from? (Just see how many articles deal with this specific > issue; > > and having changed the name of the mode in 24.3 doesn't help) > > What you say is generally applicable to any electric behavior in any > Emacs mode, not just to sh-electric-here-document-mode, right? Or is > that mode somehow special (and if so, how)? > --047d7b2e0b3f2e85a4050f80fe8e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Most of them are not activated by default.

2015-02-20 9:31 GMT+01:00 E= li Zaretskii <eliz@gnu.org>:
= > From: Thibaut Verron <t= hibaut.verron@gmail.com>
> Date: Fri, 20 Feb 2015 09:19:22 +0100
>
> I was wondering why is `sh-electric-here-document-mode` activated by d= efault
> for new documents in `sh-mode`? In my opinion, it is confusing to begi= nners,
> and working around it is difficult.
>
> I was under the impression that in most cases, this kind of commands, = inserting
> text beyond what the user types, without requiring anything besides te= xt input,
> are disabled by default. AUCTeX's electric backslash, for example,= require a
> specific option to be set, even though in most cases it can be transpa= rent
> input-wise (just visually confusing). Another example is dabbrev, whic= h needs
> to be activated by the user.
>
> And why is it so hard to disable it once you find out where the annoyi= ng
> behavior comes from? (Just see how many articles deal with this specif= ic issue;
> and having changed the name of the mode in 24.3 doesn't help)

What you say is generally applicable to any electric behavior in any=
Emacs mode, not just to sh-electric-here-document-mode, right?=C2=A0 Or is<= br> that mode somehow special (and if so, how)?

--047d7b2e0b3f2e85a4050f80fe8e--