From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Questioning the new behavior of `open-line'. Date: Wed, 11 Nov 2015 22:24:26 +0000 Message-ID: <87r3jw2mzp.fsf@gmail.com> References: <87vb98csu1.fsf@red-bean.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447277163 8250 80.91.229.3 (11 Nov 2015 21:26:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2015 21:26:03 +0000 (UTC) Cc: Emacs Development To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 22:26:01 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 1Zwctt-0002NF-HZ for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2015 22:25:53 +0100 Original-Received: from localhost ([::1]:43078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwctt-0006Km-Lh for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2015 16:25:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwctS-0006K1-8Z for emacs-devel@gnu.org; Wed, 11 Nov 2015 16:25:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwctE-0007eK-R3 for emacs-devel@gnu.org; Wed, 11 Nov 2015 16:25:26 -0500 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:38892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwctE-0007eG-LD for emacs-devel@gnu.org; Wed, 11 Nov 2015 16:25:12 -0500 Original-Received: by wmec201 with SMTP id c201so64862220wme.1 for ; Wed, 11 Nov 2015 13:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=EaMqBK4gKyIBo83Dtb4TTJPjyyLW5Us6FuDtiOE9eV4=; b=deLU1+huUOSnTvJaVAfPZJPOKopBz2/m6Jhh6c3QHbPuE6kBw4fxu3qLwgJWQBQTAb jXybRFFxuIjyAF4Dhvm5WPN97itnQY/kyG54eXFp9c28wJ+xu/pbrefoVyHgVNdrNO7X vqQYaJURSZHYCwoUlUlPX34zzgnRgKtfLcD+ua6n7CeRYNDp+PHoJz/Fn4uiqYkDWcGM EEeWY+mN3AB+BFKQhAXPzkjZpuHsHoBO3UXRt1kB9RhmqlE/aKJfExz7145AOMXBx2lZ AXDbs2Xa6+u8dAl0Iy9OFji4+PI+Cy5HjpZVQZ3qH5Wtl2pHxxUTIcxzly7ijsSQ+o+8 q1vw== X-Received: by 10.194.84.42 with SMTP id v10mr12718084wjy.116.1447277111881; Wed, 11 Nov 2015 13:25:11 -0800 (PST) Original-Received: from Gandalf-Linux.gmail.com (host-92-12-87-116.as43234.net. [92.12.87.116]) by smtp.gmail.com with ESMTPSA id q3sm10934154wjr.34.2015.11.11.13.25.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2015 13:25:10 -0800 (PST) In-Reply-To: <87vb98csu1.fsf@red-bean.com> (Karl Fogel's message of "Wed, 11 Nov 2015 12:08:06 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::235 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:194150 Archived-At: I'm a little suprised at how quickly such a simple topic developed 4 whole branches (by counting on my mail client). :-) Karl Fogel writes: > Recently, `open-line' has started behaving in a new way due to Arthur > Malabarba's recent commits [1]. Here is how `open-line' behaves > before and after the changes. > [...] > So now one can no longer just put point in column 0 and type C-o to > open a line right before a block of indented text while preserving the > block's indentation. Thanks for bringing this up, Karl. It was an accident. My goal was to fix C-o in the middle of a line. I didn't realise I was breaking its behaviour at the start of a line. For instance, take your example, and hit C-o with point at the first =E2=80=98h=E2=80=99. With the previous behaviour, you would get this (assum= ing =E2=80=98electric-indent-mode=E2=80=99 is on): A lovely haiku An example for this bug For Emacs Devel With the current =E2=80=9Cfix=E2=80=9D, you get this (which I think is the = right way). A lovely haiku An example for this bug For Emacs Devel I=E2=80=99ll fix your =E2=80=9CC-o at start of line=E2=80=9D problem right = away, but, if noone opposes, I=E2=80=99d like to maintain the current behaviour when typing C-o= in the middle of a line. Is that alright? > (If it stays, then I'll add an item to NEWS about it.) I would be very grateful for that. :-)