From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Default behaviour of RET. Date: Sun, 20 Oct 2013 15:00:51 +0000 Message-ID: <20131020150051.GD3484@acm.acm> References: <525EDC50.8010401@gmx.at> <20131016192642.GD3125@acm.acm> <87mwm8g61e.fsf@uwakimon.sk.tsukuba.ac.jp> <20131018170320.GC2569@acm.acm> <20131018204551.GC3012@acm.acm> <20131019105836.GA2991@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1382281479 2911 80.91.229.3 (20 Oct 2013 15:04:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2013 15:04:39 +0000 (UTC) Cc: martin rudalics , "Stephen J. Turnbull" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 20 17:04:42 2013 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 1VXuYb-0004S1-Uf for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2013 17:04:42 +0200 Original-Received: from localhost ([::1]:36443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXuYb-0006Ux-GP for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2013 11:04:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXuWw-0003qe-3p for emacs-devel@gnu.org; Sun, 20 Oct 2013 11:03:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXuWo-0000pC-QT for emacs-devel@gnu.org; Sun, 20 Oct 2013 11:02:58 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:61973 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXuWo-0000p4-H1 for emacs-devel@gnu.org; Sun, 20 Oct 2013 11:02:50 -0400 Original-Received: (qmail 21962 invoked by uid 3782); 20 Oct 2013 15:02:49 -0000 Original-Received: from acm.muc.de (pD951BC97.dip0.t-ipconnect.de [217.81.188.151]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 20 Oct 2013 17:02:48 +0200 Original-Received: (qmail 5603 invoked by uid 1000); 20 Oct 2013 15:00:51 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:164393 Archived-At: Hello, Stefan. On Sat, Oct 19, 2013 at 06:20:24PM -0400, Stefan Monnier wrote: > >> but also possibly quite low. > > Just how low does it have to be before we can ignore it? > That was not the question. > Anyway, it does look like there are indeed many incorrect uses of > newline (most of those (or (bolp) (newline)) will break sooner or later > because of unexpected filling and/or abbrev/skeleton expansion). We don't know that the filling, etc., is unexpected. The crucial point is that all these secondary actions of `newline' happen on the _previous_ line, leaving the main point of newline: "Insert a newline, and move to left margin of the new line ...." unaffected. > So I installed a patch which makes `newline' only run > post-self-insert-hook when called interactively, so as to try and > preserve compatibility with those dubious uses. Thanks. > Stefan -- Alan Mackenzie (Nuremberg, Germany).