From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 12 02:57:46 2015 Received: (at submit) by debbugs.gnu.org; 12 Nov 2015 07:57:47 +0000 Received: from localhost ([127.0.0.1]:33949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwmlO-0007I9-7u for submit@debbugs.gnu.org; Thu, 12 Nov 2015 02:57:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44217) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwmlM-0007I1-9m for submit@debbugs.gnu.org; Thu, 12 Nov 2015 02:57:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwmlK-000050-NF for submit@debbugs.gnu.org; Thu, 12 Nov 2015 02:57:43 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwmlK-00004v-JY for submit@debbugs.gnu.org; Thu, 12 Nov 2015 02:57:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwmlJ-0004Bt-6r for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 02:57:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwmlG-0008Vm-0e for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 02:57:41 -0500 Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:33882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwmlF-0008Vh-Ro for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 02:57:37 -0500 Received: by igvg19 with SMTP id g19so9581674igv.1 for ; Wed, 11 Nov 2015 23:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:reply-to:date:message-id:mime-version :content-type:content-transfer-encoding; bh=+QHcWRdmhfUTaJH3b6z8OiSKufv2FS4AAk5Zyh7zT/M=; b=eCBaNOthrk1dFh8joPpgxstHqxRjAyRZR2XGzEf59i64NpwfPAAnX1DJ1Vj3Re2pEE HlRHMSO5qVRR5hwK8YNr4q5MVj8/flptA/hPWi6EsSSAx4AfmH92o9gUfq6eeQmh/Yj/ 33X9dIWr12VYfn0zBHQ/TInEQpWTm3uHxDSaBNuhgxpq9GHCvibP9w90XD6wnQAsYX4P JDKbV0YuDg7B6sStfvEBeKH8DmNQ4erLSnll1pOLgxwcxxhTqqzoRtBpwWx/coUz28PI 4CiuSBGTfCcParqAL/PYkcYEVutp6pcVtPc0hSIFh/qeNetOpv7/txbqzcn9v2nAf4O+ ut+Q== X-Received: by 10.50.143.1 with SMTP id sa1mr14190876igb.8.1447315057420; Wed, 11 Nov 2015 23:57:37 -0800 (PST) Received: from kdesk (24-148-35-36.c3-0.grn-ubr1.chi-grn.il.cable.rcn.com. [24.148.35.36]) by smtp.gmail.com with ESMTPSA id 184sm4649518ioe.21.2015.11.11.23.57.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2015 23:57:35 -0800 (PST) From: Karl Fogel To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Unexpected indentation from `open-line' due to new `electric-indent-mode' default. Date: Thu, 12 Nov 2015 01:57:34 -0600 Message-ID: <871tbvtztd.fsf@red-bean.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Karl Fogel 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.0 (----) Note that this bug report summarizes a discussion on the Emacs Devel mailin= g list -- please check there for updates: "Questioning the new behavior of `open-line'." https://lists.gnu.org/archive/html/emacs-devel/2015-11/threads.html#01100 The problem: Since Artur Malabarba's commits of 2015-10-24 in simple.el, `open-line' has= a new indentation behavior, because those commits made `open-line' sensiti= ve to `electric-indent-mode', which in turn is now on by default. For example, suppose you have the following text in a buffer, in just about= any mode (i.e., not necessarily a programming language mode), and indented= by two spaces as below: A lovely haiku An example for this bug For Emacs Devel Now place point where the imaginary "X" is below and do C-o (`open-line'): X A lovely haiku An example for this bug For Emacs Devel Formerly, that would literally insert a newline, but not remove the the two spaces of indendation that come *after* the new newline (the two spaces right before "A lovely haiku"). So this would be the result: [...this is the new line; imagine it's blank...] A lovely haiku An example for this bug For Emacs Devel But after the recent commits, those two spaces get removed: [...this is the new line; imagine it's blank...] A lovely haiku An example for this bug For Emacs Devel Thus one can no longer just put point in column 0 and type C-o to open a li= ne=20 right before a block of indented text while preserving the block's indentat= ion. Solutions: One solution would be to revert `open-line' to being entirely insensitive t= o `electric-indent-mode'. But Artur points out (in https://lists.gnu.org/a= rchive/html/emacs-devel/2015-11/msg01100.html) that when point is in the mi= ddle of a line, one might want electric-indent behavior from `open-line'. = For instance, in the above example, put point at the first =E2=80=98h=E2=80= =99 and do C-o. If `open-line' just ignores electric-indent, then this wou= ld be the result: A lovely haiku An example for this bug For Emacs Devel Whereas with Artur's changes, the result would be this (which at least some= people, including Artur, would desire): A lovely haiku An example for this bug For Emacs Devel John Wiegley has proposed that `open-line' just be aware of when point is i= n column 0 and not do the electric-indent behavior then. This preserves th= e common use case of C-a C-o, but also preserves Artur's "fix" (for those w= ho agree it is a fix) for when C-o is invoked in the middle of a line. Discussion is ongoing as of this writing. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 20 07:44:25 2015 Received: (at 21884) by debbugs.gnu.org; 20 Nov 2015 12:44:25 +0000 Received: from localhost ([127.0.0.1]:45611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzl3B-00070N-9P for submit@debbugs.gnu.org; Fri, 20 Nov 2015 07:44:25 -0500 Received: from mail-yk0-f175.google.com ([209.85.160.175]:35211) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzl2r-0006ze-4q for 21884@debbugs.gnu.org; Fri, 20 Nov 2015 07:44:23 -0500 Received: by ykba77 with SMTP id a77so158750721ykb.2 for <21884@debbugs.gnu.org>; Fri, 20 Nov 2015 04:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=z66lQ3PeQSYvyEE32tr5ae4njYceC3UWiqakafqsTGs=; b=Kffi7jiYYVoxYrEcPplkH0j96zeMvHA2sPlGBV++1ug/5afxW+7txYjLxi48zEtBNT 2Fs1we839wsn5f/GxO+G7a+J5u3+3Ydpm+sEJ0yAtSZIcQAfGQj3P8eMKa+ecYki11el NY70JX/Zuvha94amQ5QOtIv/h6vCcwkQppjrRQ58neVEFS62VucSJ4amiMu7Obm3f0n+ RblABaRW9jFPwW5BrLLqaVbcTgRfvd7SdER5jH41YjINyvH4d5g5a7+USIeaAfoC2AIf 8Nwb0KyHmMbznim9kAfPPZgLzFg72FXAB3vQBta3q1BbBPYnV53EbHLt9Xpbg2Q17tSm qxxg== MIME-Version: 1.0 X-Received: by 10.129.59.14 with SMTP id i14mr14289327ywa.23.1448023444239; Fri, 20 Nov 2015 04:44:04 -0800 (PST) Received: by 10.103.4.70 with HTTP; Fri, 20 Nov 2015 04:44:04 -0800 (PST) Date: Fri, 20 Nov 2015 06:44:04 -0600 X-Google-Sender-Auth: uKkbaIw-NWFMeNFsheV2TFmVGCY Message-ID: Subject: Behavior reverted on emacs-25 branch. From: Karl Fogel To: 21884@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21884 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.7 (/) As per Artur's recent message, the indentation-sensitive behavior is reverted on the 'emacs-25' branch while we continue to discuss. See http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=c593538968a6d6c3d03da9ef6f489da6210e70e1 for details. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 21 23:53:21 2015 Received: (at 21884) by debbugs.gnu.org; 22 Nov 2015 04:53:21 +0000 Received: from localhost ([127.0.0.1]:47544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0MeP-0000UK-FW for submit@debbugs.gnu.org; Sat, 21 Nov 2015 23:53:21 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:32796) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0Me6-0000TP-4K for 21884@debbugs.gnu.org; Sat, 21 Nov 2015 23:53:20 -0500 Received: by iouu10 with SMTP id u10so162285422iou.0 for <21884@debbugs.gnu.org>; Sat, 21 Nov 2015 20:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:reply-to:date:message-id:mime-version :content-type; bh=z1k6e5n7/EZ30Ol/na2mR6sGAQ99UUF8+MfHAy4YOWk=; b=nyyu+/SpydWcbrl2nzUWFBgmpiFNSJexrGfPKIcqi1R7IPhb+6yCLBBUWydMOrpU0A +XS4KlAHxNwKWWWvZm2ff/0hteIMugSHlzs7HPAsOSLi5A5jClBKjQDKORjmLZguItP6 yTo8sBKKVPsJD/A6gEFlbATTF4PSJ+UjKbmgLB1J7ujKMTpBw5OaNQEVhrMFxzo9VMSQ XoBEv8u38FseEuIPllTMZbS3A2s+uqcNtFYnvXk54LgAyzQ4NAub5dWCPiob2zUcZdy7 dYjVYaQEEhycTXHQkqSPknAKOHSrhOklil5raPEazr4XcssISrFVAdZghOsX+EidIOJL hz4w== X-Received: by 10.107.1.67 with SMTP id 64mr18693405iob.68.1448167981428; Sat, 21 Nov 2015 20:53:01 -0800 (PST) Received: from kdesk (24-148-35-36.c3-0.grn-ubr1.chi-grn.il.cable.rcn.com. [24.148.35.36]) by smtp.gmail.com with ESMTPSA id f78sm2974711iod.4.2015.11.21.20.53.00 for <21884@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 20:53:00 -0800 (PST) From: Karl Fogel To: 21884@debbugs.gnu.org Subject: Cleanup commit on emacs-25 branch finishes reversion. Date: Sat, 21 Nov 2015 22:53:00 -0600 Message-ID: <87twoe3aab.fsf@red-bean.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21884 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Karl Fogel 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.7 (/) A followup change was needed to complete the reversion: commit 8726de6663608b74e81ff88e530b4ddc6165700f Author: Karl Fogel Date: Sat Nov 21 22:50:05 2015 -0600 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 22 01:29:42 2015 Received: (at 21884-done) by debbugs.gnu.org; 22 Nov 2015 06:29:42 +0000 Received: from localhost ([127.0.0.1]:47579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0O9d-00038K-J0 for submit@debbugs.gnu.org; Sun, 22 Nov 2015 01:29:42 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:36228) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0O91-00037T-Vt for 21884-done@debbugs.gnu.org; Sun, 22 Nov 2015 01:29:32 -0500 Received: by iofh3 with SMTP id h3so161013728iof.3 for <21884-done@debbugs.gnu.org>; Sat, 21 Nov 2015 22:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:reply-to:date:message-id:mime-version :content-type; bh=+wv2oywbSflZ4UdBzgLAIM/rIY93Z5Bp2EV0+CxyTMQ=; b=Hk58ShRcwINr2zVGZ1yjzbGsY5eDt/U6k5XpMTrdjkCQt/5QfWKmJ9QVaky7Tft6L/ idDvCQ9NWXaZzAD2iL1goh06dAMr4Xb4R1vd3ADQq/mVNjP1gaU/lPAAXvxcFC879oTx 2KUPnbz9/1PW5Ow1G8/0GeUIOTbGe3dzbEBc7eySc82e/j2smoBQ1NSEwVudgoi4j7Bn dwl+bSAANt/hJEas+oBMmhtfFhh6NB3Rw5EkJp7Th7d9OyPipi98cIASe7M/2B89LTh9 gr1unKHER3UR0/3T2DoQZ+W97OsteJgSeVClifkI+A00GzoJDbrYQUF2cgcHLhIVEvaw +bnQ== X-Received: by 10.107.16.18 with SMTP id y18mr21281992ioi.113.1448173743149; Sat, 21 Nov 2015 22:29:03 -0800 (PST) Received: from kdesk (24-148-35-36.c3-0.grn-ubr1.chi-grn.il.cable.rcn.com. [24.148.35.36]) by smtp.gmail.com with ESMTPSA id l21sm3062197ioe.21.2015.11.21.22.29.02 for <21884-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 22:29:02 -0800 (PST) From: Karl Fogel To: 21884-done@debbugs.gnu.org Subject: Closing this bug, since we'd discuss before reviving new behavior. Date: Sun, 22 Nov 2015 00:29:01 -0600 Message-ID: <87fuzy35ua.fsf@red-bean.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21884-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Karl Fogel 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.7 (/) Closing this bug as the electric-indent behavior is reverted in the 'emacs-25' branch now and the reversion will eventually be automatically ported to 'master'. If the electric indentation behavior is revived, it would be through a discussion anyway. We can re-open this ticket then if we want, but there might be no need: the continued mailing list discussion would probably be enough. From unknown Mon Jun 23 02:26:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 20 Dec 2015 12:24:04 +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