GNU bug report logs - #16770
Erroneous interaction between electric-indent-mode and electric-indent-local-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Alan Mackenzie <acm@HIDDEN>; dated Sun, 16 Feb 2014 17:17:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16770 <at> debbugs.gnu.org:


Received: (at 16770) by debbugs.gnu.org; 5 Feb 2016 20:10:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 05 15:10:22 2016
Received: from localhost ([127.0.0.1]:34766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aRmhx-0001Xb-SQ
	for submit <at> debbugs.gnu.org; Fri, 05 Feb 2016 15:10:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45125)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rgm@HIDDEN>) id 1aRmhw-0001XM-Oo
 for 16770 <at> debbugs.gnu.org; Fri, 05 Feb 2016 15:10:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1aRmhr-0002WL-5X
 for 16770 <at> debbugs.gnu.org; Fri, 05 Feb 2016 15:10:15 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59392)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1aRmhr-0002WG-29; Fri, 05 Feb 2016 15:10:15 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1aRmhp-0000Rc-OJ; Fri, 05 Feb 2016 15:10:14 -0500
From: Glenn Morris <rgm@HIDDEN>
To: 16770 <at> debbugs.gnu.org
Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and
 electric-indent-local-mode
References: <20140216171214.GB3058@HIDDEN>
 <jwvbny4jnca.fsf-monnier+emacsbugs@HIDDEN>
 <jwvr45wrbdq.fsf-monnier+bug#16770@HIDDEN>
X-Spook: Incident North Korea ANZUS 2600 Magazine NASA Norvo Virus
X-Ran: Y!li1Ir[(o8\>@"<Y!4e;AYg!$nb'`dw!TM3g)#Dq*UUuF[btiYsW?Y/zQ7@H{.3OS$Mk9
X-Hue: blue
X-Attribution: GM
Date: Fri, 05 Feb 2016 15:10:13 -0500
In-Reply-To: <jwvr45wrbdq.fsf-monnier+bug#16770@HIDDEN> (Stefan's message of
 "Thu, 20 Mar 2014 14:09:23 -0400")
Message-ID: <ylh9hmkjfe.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.4 (-----)
X-Debbugs-Envelope-To: 16770
Cc: Alan Mackenzie <acm@HIDDEN>, Stefan <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.4 (-----)


It seems to me that the issues here that were going to get fixed, did,
so I suggest closing it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16770; Package emacs. Full text available.

Message received at 16770 <at> debbugs.gnu.org:


Received: (at 16770) by debbugs.gnu.org; 20 Mar 2014 18:09:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 20 14:09:27 2014
Received: from localhost ([127.0.0.1]:42627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WQhPC-0007xW-LG
	for submit <at> debbugs.gnu.org; Thu, 20 Mar 2014 14:09:26 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:3777)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WQhPA-0007xO-IV
 for 16770 <at> debbugs.gnu.org; Thu, 20 Mar 2014 14:09:25 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDjhiWYoFegxM
X-IPAS-Result: Av4EABK/CFHO+KKg/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDjhiWYoFegxM
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="52783566"
Received: from 206-248-162-160.dsl.teksavvy.com (HELO pastel.home)
 ([206.248.162.160])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 20 Mar 2014 14:09:23 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id D121B6012B; Thu, 20 Mar 2014 14:09:23 -0400 (EDT)
From: Stefan <monnier@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and
 electric-indent-local-mode
Message-ID: <jwvr45wrbdq.fsf-monnier+bug#16770@HIDDEN>
References: <20140216171214.GB3058@HIDDEN>
 <jwvbny4jnca.fsf-monnier+emacsbugs@HIDDEN>
Date: Thu, 20 Mar 2014 14:09:23 -0400
In-Reply-To: <jwvbny4jnca.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's
 message of "Tue, 18 Feb 2014 13:26:56 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 16770
Cc: 16770 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>    (electric-indent-mode -1)
>    (electric-indent-local-mode 1)
>    (electric-indent-mode 1)
>    (electric-indent-mode -1)

> leaves us with a buffer where electric-indent-mode is locally t but
> there is no electric indentation.

I think I fixed this, now, as well as the "C-j is newline even after
disabling electric-indent-local-mode".


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16770; Package emacs. Full text available.

Message received at 16770 <at> debbugs.gnu.org:


Received: (at 16770) by debbugs.gnu.org; 18 Feb 2014 18:27:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 13:27:24 2014
Received: from localhost ([127.0.0.1]:58845 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WFpO8-000895-5i
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2014 13:27:24 -0500
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:39095)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WFpO5-00088w-Dl
 for 16770 <at> debbugs.gnu.org; Tue, 18 Feb 2014 13:27:21 -0500
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id 12E2884DAD;
 Tue, 18 Feb 2014 13:27:21 -0500 (EST)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 650ED1E5913;
 Tue, 18 Feb 2014 13:26:56 -0500 (EST)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id 4AFE1B40FE; Tue, 18 Feb 2014 13:26:56 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and
 electric-indent-local-mode
Message-ID: <jwvbny4jnca.fsf-monnier+emacsbugs@HIDDEN>
References: <20140216171214.GB3058@HIDDEN>
Date: Tue, 18 Feb 2014 13:26:56 -0500
In-Reply-To: <20140216171214.GB3058@HIDDEN> (Alan Mackenzie's message of
 "Sun, 16 Feb 2014 17:12:14 +0000")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 16770
Cc: 16770 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

> 1. Start emacs -Q.
> 2. Visit, successively, two random buffers foo and bar.
> 3. In buffer foo, do M-x electric-indent-local-mode.
> 4. In buffer bar, do M-x electric-indent-mode.

> Both buffers now have e-i-mode disabled.

> 5. Still in buffer bar, do M-x electric-indent-mode.

> This, being a global mode, should enable e-i-mode in all buffers.  But
> in buffer foo, electric-indent-mode remains disabled.  This is a bug.

Actually, upon further consideration, I don't think this one is a bug.
The behavior you want would make sense, but the current one also
makes sense.  At step 3 the user specifically requested to disable
electric-indent in `foo' so changing the global setting should not
affect it.

So the real problem is that electric-indent-local-mode is not consistent
in this regard (it sometimes remembers a local setting even if it's
equal to the global setting, and sometimes treats a local setting equal
to the global setting as meaning "obey the global setting").

Worse:

   (electric-indent-mode -1)
   (electric-indent-local-mode 1)
   (electric-indent-mode 1)
   (electric-indent-mode -1)

leaves us with a buffer where electric-indent-mode is locally t but
there is no electric indentation.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16770; Package emacs. Full text available.

Message received at 16770 <at> debbugs.gnu.org:


Received: (at 16770) by debbugs.gnu.org; 18 Feb 2014 16:41:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 11:41:13 2014
Received: from localhost ([127.0.0.1]:58639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WFnjM-0004sk-Ov
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2014 11:41:13 -0500
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:38800)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WFnjI-0004sV-Gc
 for 16770 <at> debbugs.gnu.org; Tue, 18 Feb 2014 11:41:08 -0500
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id BF1D284CED;
 Tue, 18 Feb 2014 11:41:07 -0500 (EST)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1322E1E5913;
 Tue, 18 Feb 2014 11:40:44 -0500 (EST)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id F2A46B40FE; Tue, 18 Feb 2014 11:40:43 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and
 electric-indent-local-mode
Message-ID: <jwvzjlojrx3.fsf-monnier+emacsbugs@HIDDEN>
References: <20140216171214.GB3058@HIDDEN>
Date: Tue, 18 Feb 2014 11:40:43 -0500
In-Reply-To: <20140216171214.GB3058@HIDDEN> (Alan Mackenzie's message of
 "Sun, 16 Feb 2014 17:12:14 +0000")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 16770
Cc: 16770 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

> Suggestion for a fix: make electric-indent-local-mode a self-sufficient
> minor mode, and define electric-indent-mode with
> define-globalized-minor-mode.

I don't think it's worth the trouble.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16770; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Feb 2014 17:16:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 12:16:10 2014
Received: from localhost ([127.0.0.1]:54965 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WF5K6-0001x7-9n
	for submit <at> debbugs.gnu.org; Sun, 16 Feb 2014 12:16:10 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50657)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <acm@HIDDEN>) id 1WF5K4-0001wv-Vu
 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2014 12:16:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1WF5Jq-0008P0-FI
 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2014 12:16:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39266)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1WF5Jq-0008Ou-CJ
 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2014 12:15:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52331)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1WF5Jj-0000Xm-1A
 for bug-gnu-emacs@HIDDEN; Sun, 16 Feb 2014 12:15:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1WF5Jb-0008MY-O9
 for bug-gnu-emacs@HIDDEN; Sun, 16 Feb 2014 12:15:46 -0500
Received: from colin.muc.de ([193.149.48.1]:47157 helo=mail.muc.de)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1WF5Jb-0008M2-F8
 for bug-gnu-emacs@HIDDEN; Sun, 16 Feb 2014 12:15:39 -0500
Received: (qmail 73202 invoked by uid 3782); 16 Feb 2014 17:15:37 -0000
Received: from acm.muc.de (pD95187DA.dip0.t-ipconnect.de [217.81.135.218]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 16 Feb 2014 18:15:36 +0100
Received: (qmail 5569 invoked by uid 1000); 16 Feb 2014 17:12:14 -0000
Date: Sun, 16 Feb 2014 17:12:14 +0000
To: bug-gnu-emacs@HIDDEN
Subject: Erroneous interaction between electric-indent-mode and
 electric-indent-local-mode
Message-ID: <20140216171214.GB3058@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)

Hi, Emacs.

1. Start emacs -Q.
2. Visit, successively, two random buffers foo and bar.
3. In buffer foo, do M-x electric-indent-local-mode.
4. In buffer bar, do M-x electric-indent-mode.

Both buffers now have e-i-mode disabled.

5. Still in buffer bar, do M-x electric-indent-mode.

This, being a global mode, should enable e-i-mode in all buffers.  But
in buffer foo, electric-indent-mode remains disabled.  This is a bug.

Suggestion for a fix: make electric-indent-local-mode a self-sufficient
minor mode, and define electric-indent-mode with
define-globalized-minor-mode.

-- 
Alan Mackenzie (Nuremberg, Germany).




Acknowledgement sent to Alan Mackenzie <acm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16770; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 5 Feb 2016 20:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.