From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.devel Subject: Re: Questioning the new behavior of `open-line'. Date: Thu, 12 Nov 2015 12:08:05 +0100 Message-ID: <87wptnlbl6.fsf@gmx.us> References: <87vb98csu1.fsf@red-bean.com> <87h9kscqig.fsf@red-bean.com> <83vb98jqwp.fsf@gnu.org> <87k2poba1s.fsf@red-bean.com> <83si4cjnyw.fsf@gnu.org> <87twosp5ke.fsf@fencepost.gnu.org> <87fv0cm64g.fsf@gmx.us> <87si4bsktk.fsf@red-bean.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1447326531 12107 80.91.229.3 (12 Nov 2015 11:08:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 11:08:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 12:08:43 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 1Zwpk8-0001YF-Vl for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 12:08:41 +0100 Original-Received: from localhost ([::1]:45935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwpk8-0004DV-9n for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 06:08:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwpjt-0004DF-Sz for emacs-devel@gnu.org; Thu, 12 Nov 2015 06:08:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwpjo-0007BY-Ob for emacs-devel@gnu.org; Thu, 12 Nov 2015 06:08:25 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:48984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwpjo-0007Al-Gv for emacs-devel@gnu.org; Thu, 12 Nov 2015 06:08:20 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zwpjl-0001Aa-Ga for emacs-devel@gnu.org; Thu, 12 Nov 2015 12:08:17 +0100 Original-Received: from 62.80.108.12 ([62.80.108.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Nov 2015 12:08:17 +0100 Original-Received: from rasmus by 62.80.108.12 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Nov 2015 12:08:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 62.80.108.12 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAFiSURBVEjHnZbBkYAwCEUZ+qEZOqEVuqGK3xCHPUQNie4OWW6OeUrg 8xOi48glMJ4BIDMzY3v/DcBERA1dwIWZmVmiB8S1nlmiBSg/oR0AMgGJBuBcAMcZwN74Q5ymtOwB nSrZBKzXOJ3rewBsZGXoainDzTx+ER+WiPmcAODbeyI+jF/m4YmREsIdf+1hBWAqzKLRBfRRVg+w 0vgOUKViHWCROxqAngJ2CtSUtAOADzd9XNaETpvqdTpNzqSxiS8QM+AUSzhFBCJwrfrvPMBNx0ju IzrsP0wtMOfh8nfFbQKjKLcJXGUSvwEvdQblLLyOskqxHSJ6zg9m1i8j0+KcSUSo6oq3VcaupbqA 7W3Gr3nYgd3u9RR4zQPqJ3xLCV/z4HXB+1CsGXgSFfmy+Nex6+UHo3E3IT4aF9vBfjdKcUsDriJi Ma8OKiLz6hAmIuoo84CIcRvZLyegTCRwvc7zy88POjTfO2tyoxoAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:Ncsi1H9kfIeAKrN23SPjLGD7DW8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:194212 Archived-At: Hi Artur, Artur Malabarba writes: >> >I share this sentiment. I love most of the electricity and it should be >> >on by default IMHO. >> > >> >But the change to C-o is for the worse. It should be "dumb" also at >> >columns greater than zero. > > Hi Rasmus and David. > Could you give an example (similar to what I did) illustrating why you > prefer the dumb behaviour on columns grater than 0? > i.e., when is it more convenient to break an indented line in half and have > the second half be unindented? > > I'm willing to revert this change, but I'd really like to give a reasoning > on the commit message. For C-o I expect a newline to be inserted. Nothing else. If I want indentation I already have RET. If I want to return to point I have C-x C-x. An example of when I use C-o is when I have to manually indent stuff, e.g. if Emacs is not smart enough to do a good job /all of the time/. A case is d3.js code, where periods are typically aligned. You may say that this is an example of separate bug (and indeed there exists a bug report on JS mode alignment), but to the extend that misbehaviors (even "subjective misbehaviors") exists, it’s very useful to have dumb behavior available. Here’s an example of d3.js. I may want to insert a new attribute before the width, without affecting the current indentation. I’d then use C-o. var svg = div.append("svg") .attr("width", box_plot.w) .attr("height", box_plot.h); Rasmus -- Need more coffee. . .