From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 12:16:10 2014 Received: (at submit) by debbugs.gnu.org; 16 Feb 2014 17:16:10 +0000 Received: from localhost ([127.0.0.1]:54965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF5K6-0001x7-9n for submit@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 ) id 1WF5K4-0001wv-Vu for submit@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 ) id 1WF5Jq-0008P0-FI for submit@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 ) id 1WF5Jq-0008Ou-CJ for submit@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 ) id 1WF5Jj-0000Xm-1A for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2014 12:15:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WF5Jb-0008MY-O9 for bug-gnu-emacs@gnu.org; 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 ) id 1WF5Jb-0008M2-F8 for bug-gnu-emacs@gnu.org; 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@gnu.org Subject: Erroneous interaction between electric-indent-mode and electric-indent-local-mode Message-ID: <20140216171214.GB3058@acm.acm> 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 X-Primary-Address: acm@muc.de 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@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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). From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 11:41:13 2014 Received: (at 16770) by debbugs.gnu.org; 18 Feb 2014 16:41:13 +0000 Received: from localhost ([127.0.0.1]:58639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFnjM-0004sk-Ov for submit@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 ) id 1WFnjI-0004sV-Gc for 16770@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 To: Alan Mackenzie Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and electric-indent-local-mode Message-ID: References: <20140216171214.GB3058@acm.acm> Date: Tue, 18 Feb 2014 11:40:43 -0500 In-Reply-To: <20140216171214.GB3058@acm.acm> (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@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16770 Cc: 16770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 13:27:24 2014 Received: (at 16770) by debbugs.gnu.org; 18 Feb 2014 18:27:24 +0000 Received: from localhost ([127.0.0.1]:58845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpO8-000895-5i for submit@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 ) id 1WFpO5-00088w-Dl for 16770@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 To: Alan Mackenzie Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and electric-indent-local-mode Message-ID: References: <20140216171214.GB3058@acm.acm> Date: Tue, 18 Feb 2014 13:26:56 -0500 In-Reply-To: <20140216171214.GB3058@acm.acm> (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@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16770 Cc: 16770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 20 14:09:27 2014 Received: (at 16770) by debbugs.gnu.org; 20 Mar 2014 18:09:27 +0000 Received: from localhost ([127.0.0.1]:42627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQhPC-0007xW-LG for submit@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 ) id 1WQhPA-0007xO-IV for 16770@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 To: Alan Mackenzie Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and electric-indent-local-mode Message-ID: References: <20140216171214.GB3058@acm.acm> Date: Thu, 20 Mar 2014 14:09:23 -0400 In-Reply-To: (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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 05 15:10:22 2016 Received: (at 16770) by debbugs.gnu.org; 5 Feb 2016 20:10:22 +0000 Received: from localhost ([127.0.0.1]:34766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRmhx-0001Xb-SQ for submit@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 ) id 1aRmhw-0001XM-Oo for 16770@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 ) id 1aRmhr-0002WL-5X for 16770@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 ) 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 ) id 1aRmhp-0000Rc-OJ; Fri, 05 Feb 2016 15:10:14 -0500 From: Glenn Morris To: 16770@debbugs.gnu.org Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and electric-indent-local-mode References: <20140216171214.GB3058@acm.acm> X-Spook: Incident North Korea ANZUS 2600 Magazine NASA Norvo Virus X-Ran: Y!li1Ir[(o8\>@" (Stefan's message of "Thu, 20 Mar 2014 14:09:23 -0400") Message-ID: 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 , Stefan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 00:00:26 2019 Received: (at 16770-done) by debbugs.gnu.org; 30 Sep 2019 04:00:26 +0000 Received: from localhost ([127.0.0.1]:56461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEmrJ-0005mq-Ri for submit@debbugs.gnu.org; Mon, 30 Sep 2019 00:00:26 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:33980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEmrI-0005fl-8L for 16770-done@debbugs.gnu.org; Mon, 30 Sep 2019 00:00:24 -0400 Received: by mail-pg1-f170.google.com with SMTP id y35so6632954pgl.1 for <16770-done@debbugs.gnu.org>; Sun, 29 Sep 2019 21:00:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Aa+BtPz2R7HW1tHC92dvihcWHdKtu+p9D0PSx+NqoEM=; b=L6j3f+zu+BrQoWov5Thaqys39KEcr57XiG8+tuLoBKCw8T/waFSnZemydKqlapCO3x PrhgQuDftCSvjlnjSuKq6GX4Ap+J1uY5OAptN/xCS4HyI7JFHCiRV5fJ4bC7NsdhyPSO 4xZPt+xk3xnL5cjsCv6EP7Ra3Y1yM0lkJK71FwxH4/6wE79c4zg4M5FtFeaUst/jAJN5 PnrBmV41fQaCkBBh9qBq2rubuZ9MK7u4/ShwIYQro9BsMbUo8D8KID7q4DcIu2/2E8L6 Dj+Qd1kOEre28y/tg9erDYlJjM5XeUqD4gs2UWSNFGB1Lu75hm1xcTFQ848un/7J/wFM COFA== X-Gm-Message-State: APjAAAW7MDKSZwfb+gb0Vin4UD33gjzJx8zO7/68eswLtxBobor9FWJJ h3ikO+fLEFXLoHhlYlIwKtocjq8kd8wstBwdTAI3UT4rk84= X-Google-Smtp-Source: APXvYqw40GsNA5+QEwoHK1Ozi7j0KHzEJpp/AqEwdaglZOVlK/mSA8GPcDHmQyFaWCtQyM2+v3v7YijLB+gDZHutopU= X-Received: by 2002:a17:90a:cc08:: with SMTP id b8mr24386425pju.119.1569816018442; Sun, 29 Sep 2019 21:00:18 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 30 Sep 2019 06:00:07 +0200 Message-ID: Subject: Re: bug#16770: Erroneous interaction between electric-indent-mode and electric-indent-local-mode To: Glenn Morris Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16770-done Cc: Alan Mackenzie , 16770-done@debbugs.gnu.org, Stefan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Glenn Morris writes: > It seems to me that the issues here that were going to get fixed, did, > so I suggest closing it. OK, closing this now. Best regards, Stefan Kangas From unknown Sat Aug 16 17:01:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Oct 2019 11:24:16 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator