From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Default setting for sh-maybe-here-document-mode Date: Fri, 20 Feb 2015 10:31:54 +0200 Message-ID: <83r3tlkmpx.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424421126 5630 80.91.229.3 (20 Feb 2015 08:32:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 08:32:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: thibaut.verron@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 20 09:31:58 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 1YOj09-0006nx-DX for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2015 09:31:57 +0100 Original-Received: from localhost ([::1]:59456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOj03-0006Hc-Qa for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2015 03:31:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOizv-0006HT-Pg for emacs-devel@gnu.org; Fri, 20 Feb 2015 03:31:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOizs-0002nA-KX for emacs-devel@gnu.org; Fri, 20 Feb 2015 03:31:43 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:39801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOizs-0002mN-CN for emacs-devel@gnu.org; Fri, 20 Feb 2015 03:31:40 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NK2008009VDVE00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 20 Feb 2015 10:31:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK2008GTACQSZ80@a-mtaout21.012.net.il>; Fri, 20 Feb 2015 10:31:39 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:183319 Archived-At: > 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)?