From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: Questioning the new behavior of `open-line'. Date: Wed, 11 Nov 2015 15:08:43 -0600 Message-ID: References: <87vb98csu1.fsf@red-bean.com> <87h9kscqig.fsf@red-bean.com> <83vb98jqwp.fsf@gnu.org> <87k2poba1s.fsf@red-bean.com> <83si4cjnyw.fsf@gnu.org> <83oaf0jmcg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1147390636656505244a3b9b X-Trace: ger.gmane.org 1447276172 23668 80.91.229.3 (11 Nov 2015 21:09:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2015 21:09:32 +0000 (UTC) To: Eli Zaretskii , Karl Fogel , bruce.connor.am@gmail.com, Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 22:09:31 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 1Zwce2-00021w-9E for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2015 22:09:30 +0100 Original-Received: from localhost ([::1]:42989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwce2-0005jT-JW for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2015 16:09:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwcdY-0005a6-QD for emacs-devel@gnu.org; Wed, 11 Nov 2015 16:09:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwcdP-0002kD-Oc for emacs-devel@gnu.org; Wed, 11 Nov 2015 16:09:00 -0500 Original-Received: from mail-yk0-x232.google.com ([2607:f8b0:4002:c07::232]:34417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwcdH-0002h6-LK; Wed, 11 Nov 2015 16:08:43 -0500 Original-Received: by ykfs79 with SMTP id s79so70996201ykf.1; Wed, 11 Nov 2015 13:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=DS1IwobD/zgOl5jk3JnxhM0EuNjH8MGWYDBcofax9HY=; b=rvQ4Q1TRi1mI1/HsdyutNGixxZWxz6g8ocQQGIVbjquq4awFB37+fDOmeEpseB9YJY aYgJDAHp651aN5PZn4U8ojfeRa7TWghxVxq++vREAw7T4B3UkYpv17N9e49JOkp8h7iL boJ70QbJ3QSjiIPpb4TfpF5A8mrnC9mriDLDFCGYxDgdfRuXiNSmDUobTH/5NihX8RtM IJSW9OBN1kVSq5dMoQ2mRItVm5Q/LsFBh/5RRkCtyocWTBvEIhGBjfASZgbE8pXrDptA CHIY/8plB03maC7i9wuRMgmcXsoLfoML+o0m0/1DkAoihZLcF2RWQPoliGfBMKmYSTMJ FA4w== X-Received: by 10.129.116.10 with SMTP id p10mr5849213ywc.300.1447276123151; Wed, 11 Nov 2015 13:08:43 -0800 (PST) Original-Received: by 10.103.12.2 with HTTP; Wed, 11 Nov 2015 13:08:43 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: tKinJyi8ob5W1bt8DUQOCb3xJKc X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::232 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:194143 Archived-At: --001a1147390636656505244a3b9b Content-Type: text/plain; charset=UTF-8 On Wed, Nov 11, 2015 at 2:58 PM, John Wiegley wrote: > >>>>> Eli Zaretskii writes: > > >> 2. When electric-indent-mode is on, C-o behaves in an unexpected > fashion. > > Then what is it that electric-indent-mode gives you that prevents you > > personally from turning it off? > > I want electric-indent-mode; I don't want C-o at column zero to be > affected by > it. I think that by default, it shouldn't be affected by it either. See my > proposed solution in another e-mail. > So electric-indent-mode would still affect open-line, but not when open-line is run with point at column zero. Hmm. I think that's a good solution. I think that's pretty much the entire use case here. (I'd also be happy with open-line just having *no* electric indent behaviors, but that's a more complex discussion and probably wouldn't affect many use cases anyway.) Emacs is famous for making the right exceptions to otherwise consistent behaviors (the behavior of C-t at the end of a line is often held up as a classic example of this). This would be another instance of that, I guess. I'll happily make the change, but will wait to see if there's some consensus. -K > > John > --001a1147390636656505244a3b9b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, Nov 11, 2015 at 2:58 PM, John Wiegley <jwiegley@= gmail.com> wrote:
>>>&= gt;> Eli Zaretskii <eliz@gnu.org&= gt; writes:

>> 2. When electric-indent-mode is on, C-o behaves in an unexpected f= ashion.
> Then what is it that electric-indent-mode gives you that prevents you<= br> > personally from turning it off?

I want electric-indent-mode; I don't want C-o at column zero to = be affected by
it. I think that by default, it shouldn't be affected by it either. See= my
proposed solution in another e-mail.

So= electric-indent-mode would still affect open-line, but not when open-line = is run with point at column zero.

Hmm.=C2=A0 I think that= 's a good solution.=C2=A0 I think that's pretty much the entire use= case here.=C2=A0 (I'd also be happy with open-line just having *no* el= ectric indent behaviors, but that's a more complex discussion and proba= bly wouldn't affect many use cases anyway.)

Emacs is = famous for making the right exceptions to otherwise consistent behaviors (t= he behavior of C-t at the end of a line is often held up as a classic examp= le of this).=C2=A0 This would be another instance of that, I guess.=C2=A0 <= br>
I'll happily make the change, but will wait to see if= there's some consensus.

-K

=C2=A0<= br>

John

--001a1147390636656505244a3b9b--