GNU bug report logs - #16156
electric indent gripes

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: rms@HIDDEN; merged with #16155; dated Sun, 15 Dec 2013 11:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Dec 2013 22:07:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 18 17:07:07 2013
Received: from localhost ([127.0.0.1]:57798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VtPGk-0001S9-OW
	for submit <at> debbugs.gnu.org; Wed, 18 Dec 2013 17:07:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40311)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <usenet@HIDDEN>) id 1VtPGj-0001S2-Fh
 for submit <at> debbugs.gnu.org; Wed, 18 Dec 2013 17:07:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <usenet@HIDDEN>) id 1VtPGc-0001NP-I8
 for submit <at> debbugs.gnu.org; Wed, 18 Dec 2013 17:07:05 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44771)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <usenet@HIDDEN>) id 1VtPGc-0001N7-E5
 for submit <at> debbugs.gnu.org; Wed, 18 Dec 2013 17:06:58 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41972)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <usenet@HIDDEN>) id 1VtPGW-0005Y8-IA
 for bug-gnu-emacs@HIDDEN; Wed, 18 Dec 2013 17:06:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <usenet@HIDDEN>) id 1VtPGQ-0001Gw-MY
 for bug-gnu-emacs@HIDDEN; Wed, 18 Dec 2013 17:06:52 -0500
Received: from xvm-90.mit.edu ([18.181.2.90]:47900 helo=mod-relay.xvm.mit.edu)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <usenet@HIDDEN>) id 1VtPGQ-0001Gi-Jb
 for bug-gnu-emacs@HIDDEN; Wed, 18 Dec 2013 17:06:46 -0500
Received: by mod-relay.xvm.mit.edu (Postfix)
 id 570EF1F518; Wed, 18 Dec 2013 17:06:45 -0500 (EST)
Delivered-To: gnu-emacs-bug@HIDDEN
Received: from mail.muc.de (colin.muc.de [193.149.48.1])
 by mod-relay.xvm.mit.edu (Postfix) with ESMTP id 157EF1EE86
 for <gnu-emacs-bug@HIDDEN>; Wed, 18 Dec 2013 17:06:44 -0500 (EST)
Received: (qmail 47216 invoked by uid 8); 18 Dec 2013 22:06:43 -0000
To: gnu-emacs-bug@HIDDEN
Path: not-for-mail
From: Alan Mackenzie <acm@HIDDEN>
Newsgroups: gnu.emacs.bug
Subject: Re: bug#16156: 24.3.50;
Date: Wed, 18 Dec 2013 22:06:43 +0000 (UTC)
Organization: muc.de e.V.
Lines: 33
Message-ID: <l8t69j$1e3e$1@HIDDEN>
References: <mailman.9293.1387108150.10748.bug-gnu-emacs@HIDDEN>
NNTP-Posting-Host: news.muc.de
X-Trace: colin.muc.de 1387404403 47214 193.149.48.2 (18 Dec 2013 22:06:43 GMT)
X-Complaints-To: news-admin@HIDDEN
NNTP-Posting-Date: Wed, 18 Dec 2013 22:06:43 +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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)

Richard Stallman <rms@HIDDEN> wrote:

> In text mode, if the buffer contains
> -----------------------------------------
> foo
>   bar
> -----------------------------------------

> and point is at the start of the second line, and I type RET,
> it gives

> -----------------------------------------
> foo

> bar
> -----------------------------------------

> This is clearly wrong.

RET is bound to `newline'.  `newline' now indents the new line created,
under certain arcane conditions which hold by default.

C-j is bound to `electric-indent-just-newline'.  This command doesn't
indent the new line created.

I also think this is not the right thing to do.

> -- 
> Dr Richard Stallman

-- 
Alan Mackenzie (Nuremberg, Germany).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16156; Package emacs. Full text available.
Changed bug title to 'electric indent gripes' from '24.3.50; ' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 16155 16156. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Dec 2013 11:48:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 15 06:48:07 2013
Received: from localhost ([127.0.0.1]:50842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VsAB4-00079l-US
	for submit <at> debbugs.gnu.org; Sun, 15 Dec 2013 06:48:07 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37128)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rms@HIDDEN>) id 1VsAB0-00079T-Tz
 for submit <at> debbugs.gnu.org; Sun, 15 Dec 2013 06:48:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1VsAAz-00025h-GU
 for submit <at> debbugs.gnu.org; Sun, 15 Dec 2013 06:48:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52203)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1VsAAz-00025c-EM
 for submit <at> debbugs.gnu.org; Sun, 15 Dec 2013 06:48:01 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38832)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1VsAAy-0003mr-28
 for bug-gnu-emacs@HIDDEN; Sun, 15 Dec 2013 06:48:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1VsAAw-00024y-Ob
 for bug-gnu-emacs@HIDDEN; Sun, 15 Dec 2013 06:47:59 -0500
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45719)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1VsAAw-00024t-M0
 for bug-gnu-emacs@HIDDEN; Sun, 15 Dec 2013 06:47:58 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rms@HIDDEN>)
 id 1VsAAv-0005mR-9g; Sun, 15 Dec 2013 06:47:57 -0500
Date: Sun, 15 Dec 2013 06:47:57 -0500
Message-Id: <E1VsAAv-0005mR-9g@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15
From: Richard Stallman <rms@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; 
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.4 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: rms@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.4 (-----)


In text mode, if the buffer contains
-----------------------------------------
foo
   bar
-----------------------------------------

and point is at the start of the second line, and I type RET,
it gives

-----------------------------------------
foo

bar
-----------------------------------------

This is clearly wrong.


In GNU Emacs 24.3.50.18 (mips64el-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2013-12-14 on chiefs-gnewsense
Bzr revision: 115526 tzz@HIDDEN
System Description:	gNewSense GNU/Linux 3.0 (parkes)

Configured using:
 `configure 'CFLAGS=-g -O0''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-@ C-u C-n 
ESC e c ESC , RET RET ESC \ N o , SPC I t h i n k SPC 
C-u C-b C-b C-b SPC C-h f n w DEL e w l i n e RET C-e 
y o u SPC h v e SPC DEL DEL DEL a v e SPC m i s C-a 
C-k I n d e e d , SPC i t SPC i s n ' t SPC a SPC c 
o p i e r . SPC SPC C-a ESC f ESC f ESC DEL t h a t 
C-e H o w e v e r , SPC w h a t ' s SPC r e l e v a 
n t SPC t o SPC t h i s SPC i s s u e RET i s SPC t 
h a t SPC c o m p u t e r s SPC c a n SPC c o p y SPC 
p r o g r a m s . SPC SPC D i f f e r e n t i a t i 
o n SPC i s n ' t SPC r e a DEL l e v a SPC t DEL DEL 
n t . RET C-c C-c C-x 1 C-a C-u C-v C-u C-v C-u C-v 
C-u C-v n d d d d d d d C-x C-f f o o f o . t x t RET 
f o o SPC b a r RET SPC SPC SPC l o s e RET ESC x b 
u g SPC ESC DEL r e p o r t SPC e m a c s SPC b u g 
RET

Recent messages:
Wrote /home/rms/outgoing/out-36
Sending...done
Quit
Mark set [2 times]
Type "q" in help window to restore its previous buffer.
Auto-saving...
Sending...
Wrote /home/rms/outgoing/out-37
Sending...done
(New file)

Load-path shadows:
/home/rms/emacs-bzr/trunk/lisp/leim/quail/lao hides /home/rms/emacs-bzr/trunk/lisp/language/lao
/home/rms/emacs-bzr/trunk/lisp/leim/quail/georgian hides /home/rms/emacs-bzr/trunk/lisp/language/georgian
/home/rms/emacs-bzr/trunk/lisp/leim/quail/thai hides /home/rms/emacs-bzr/trunk/lisp/language/thai
/home/rms/emacs-bzr/trunk/lisp/leim/quail/ethiopic hides /home/rms/emacs-bzr/trunk/lisp/language/ethiopic
/home/rms/emacs-bzr/trunk/lisp/leim/quail/japanese hides /home/rms/emacs-bzr/trunk/lisp/language/japanese
/home/rms/emacs-bzr/trunk/lisp/leim/quail/cyrillic hides /home/rms/emacs-bzr/trunk/lisp/language/cyrillic
/home/rms/emacs-bzr/trunk/lisp/leim/quail/indian hides /home/rms/emacs-bzr/trunk/lisp/language/indian
/home/rms/emacs-bzr/trunk/lisp/leim/quail/hebrew hides /home/rms/emacs-bzr/trunk/lisp/language/hebrew
/home/rms/emacs-bzr/trunk/lisp/leim/quail/greek hides /home/rms/emacs-bzr/trunk/lisp/language/greek
/home/rms/emacs-bzr/trunk/lisp/leim/quail/czech hides /home/rms/emacs-bzr/trunk/lisp/language/czech
/home/rms/emacs-bzr/trunk/lisp/leim/quail/slovak hides /home/rms/emacs-bzr/trunk/lisp/language/slovak
/home/rms/emacs-bzr/trunk/lisp/leim/quail/tibetan hides /home/rms/emacs-bzr/trunk/lisp/language/tibetan

Features:
(shadow emacsbug help-mode misearch multi-isearch epa-mail epa derived
epg epg-config shell pcomplete grep compile comint ansi-color ring
mailalias qp rmailmm message sendmail format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
mail-parse rfc2231 dired t-mouse package rmailedit rmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date paren
cus-start cus-load advice help-fns tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.





Acknowledgement sent to rms@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16156; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.