From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#16155: 24.3.50; Date: Sun, 15 Dec 2013 20:01:29 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387138516 27312 80.91.229.3 (15 Dec 2013 20:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2013 20:15:16 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 21:15:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VsI5w-0003LW-IR for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 21:15:20 +0100 Original-Received: from localhost ([::1]:52358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsI5w-0006kv-4z for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 15:15:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsHtA-0000Bo-Ii for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:02:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsHt5-0007ru-9V for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:02:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsHt5-0007rq-6H for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VsHt4-0006kw-Hu for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:02:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2013 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16155 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.138713771225951 (code B ref -1); Sun, 15 Dec 2013 20:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2013 20:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:52062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VsHst-0006kV-DO for submit@debbugs.gnu.org; Sun, 15 Dec 2013 15:01:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53919) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VsHsq-0006kL-MB for submit@debbugs.gnu.org; Sun, 15 Dec 2013 15:01:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsHsl-0007nv-6V for submit@debbugs.gnu.org; Sun, 15 Dec 2013 15:01:48 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsHsl-0007nr-3o for submit@debbugs.gnu.org; Sun, 15 Dec 2013 15:01:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsHsg-00009f-3K for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:01:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsHsa-0007mJ-Pr for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:01:38 -0500 Original-Received: from xvm-90.mit.edu ([18.181.2.90]:46306 helo=mod-relay.xvm.mit.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsHsa-0007lJ-MV for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 15:01:32 -0500 Original-Received: by mod-relay.xvm.mit.edu (Postfix) id 923181F386; Sun, 15 Dec 2013 15:01:31 -0500 (EST) Original-Received: from mail.muc.de (colin.muc.de [193.149.48.1]) by mod-relay.xvm.mit.edu (Postfix) with ESMTP id 3390C1F1BC for ; Sun, 15 Dec 2013 15:01:30 -0500 (EST) Original-Received: (qmail 72965 invoked by uid 8); 15 Dec 2013 20:01:29 -0000 Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 48 Original-NNTP-Posting-Host: news.muc.de Original-X-Trace: colin.muc.de 1387137689 72963 193.149.48.2 (15 Dec 2013 20:01:29 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Sun, 15 Dec 2013 20:01:29 +0000 (UTC) User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-RELEASE (amd64)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 15 Dec 2013 15:15:17 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82025 Archived-At: Stefan Monnier wrote: > Richard Stallman wrote: >> I don't ever like having newline indent. I agree. `newline' should never indent the new line. `newline-and-indent' should always indent the new line. >> It should be a minor mode, > It is a minor mode. Called electric-indent-mode, and no enabled by default. > See NEWS. electric-indent-mode _is_ enabled by default in the current trunk. I've just updated, built, and tried it. >> and the documentation of `newline' should explain how to easily turn >> this off. > The docstring does mention the indentation behavior, with a link to > electric-indent-mode. What the docstring says is this: A non-nil INTERACTIVE argument means to run the `post-self-insert-hook', which by default will also indent the line (see `electric-indent-mode'). Presumably the invocation of `newline' by pressing the RET key leaves INTERACTIVE set to nil. Nevertheless, the unwanted indentation happened. This is bad documentation, since it describes the internal workings rather than the coherent functionality. As a user of `newline', I shouldn't have to know about `post-self-insert-hook', never mind having to try to figure out which way to set INTERACTIVE. I can't make out what that bit of the doc string means without a considerable investment of intellectual effort. Again, the question: why should `newline' indent when we've got the specific command `newline-and-indent'? I think a good way to resolve the current confusion would be to restrict electric-indent-mode to indenting ONLY the line in which the character is typed, and leaving the indentation of any new line to `newline-and-indent'. > Stefan -- Alan Mackenzie (Nuremberg, Germany).