GNU bug report logs -
#16156
electric indent gripes
Previous Next
Reported by: rms <at> gnu.org
Date: Sun, 15 Dec 2013 11:49:02 UTC
Severity: minor
Merged with 16155
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16156 in the body.
You can then email your comments to 16156 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16156
; Package
emacs
.
(Sun, 15 Dec 2013 11:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
rms <at> gnu.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 15 Dec 2013 11:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> lifelogs.com-20131214180409-n2o5017gxsjvz8as
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.
Merged 16155 16156.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 15 Dec 2013 19:42:03 GMT)
Full text and
rfc822 format available.
Changed bug title to 'electric indent gripes' from '24.3.50; '
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 15 Dec 2013 19:53:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16156
; Package
emacs
.
(Wed, 18 Dec 2013 22:08:02 GMT)
Full text and
rfc822 format available.
Message #12 received at submit <at> debbugs.gnu.org (full text, mbox):
Richard Stallman <rms <at> gnu.org> 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 <at> gnu.org
:
bug#16156
; Package
emacs
.
(Thu, 05 May 2022 12:52:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 16156 <at> debbugs.gnu.org (full text, mbox):
Richard Stallman <rms <at> gnu.org> writes:
> In text mode, if the buffer contains
> -----------------------------------------
> foo
>
> bar
>
> -----------------------------------------
>
> and point is at the end of the line, and I type RET,
> it indents the following line.
>
> I don't ever like having newline indent. It should be a minor mode,
> and the documentation of `newline' should explain how to easily turn
> this off.
It is a minor mode, and the doc string does explain this (at least now
it does).
---
It is bound to RET.
(newline &optional ARG INTERACTIVE)
Insert a newline, and move to left margin of the new line.
With prefix argument ARG, insert that many newlines.
If ‘electric-indent-mode’ is enabled, this indents the final new line
that it adds, and reindents the preceding line. To just insert
a newline, use M-x electric-indent-just-newline.
---
So I don't think there's anything we want to change here, and I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
16156 <at> debbugs.gnu.org and rms <at> gnu.org
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 05 May 2022 12:52:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 03 Jun 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.