GNU bug report logs -
#17670
24.3.90.1; no indent from C-j in Python shell
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17670 in the body.
You can then email your comments to 17670 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#17670
; Package
emacs
.
(Mon, 02 Jun 2014 16:03:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Röhler <andreas.roehler <at> easy-emacs.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 02 Jun 2014 16:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
M-x run-python
Insert at prompt: "if True:"
C-j should indent but goes to BOL
Running fails as expected:
Python 2.7.3 (default, Mar 14 2014, 11:57:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> if True:
print(45)
... File "<stdin>", line 2
print(45)
^
IndentationError: expected an indented block
>>>
;;;;;;;;;;;;;;;;
In GNU Emacs 24.3.90.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-04-24
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description: Debian GNU/Linux 7.5 (wheezy)
Important settings:
value of $LANG: de_DE.utf8
locale-coding-system: utf-8-unix
Major mode: Inferior Python
Minor modes in effect:
compilation-shell-minor-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
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <options> <menu-set-font>
C-d C-g C-y C-d C-g C-x C-f <M-backspace> <M-backspace>
<M-backspace> <M-backspace> <M-backspace> e y p . p
y <return> M-x r u n - p y t h o n <return> C-x 1 C-g
C-h k <tab> C-x o <down> <down> <down> <left> <down>
<down> <left> <left> <left> <left> <left> <return>
C-x 1 <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <up> <left> <left> <left>
<help-echo> <help-echo> <help-echo> M-+ C-x b * P <tab>
<return> C-h f p y t h o n - c o m <tab> <M-backspace>
i n <tab> d <tab> c a <tab> i n <tab> <return> C-x
o <down> <down> <right> <return> <down> C-x 1 M-x e
d e b u g - d e f <tab> <return> C-x b <return> C-x
b * P <tab> <return> p r i t <backspace> n t ( 3 4
) C-j C-h k C-j C-h v i n d e n t - l i n e - f u <tab>
<return> C-h f i n d e n t - r e <tab> l <tab> <return>
i d <backspace> d <backspace> i <backspace> f SPC R
e u <backspace> <backspace> <backspace> T r u e : C-j
<up> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> C-e C-j p r o <backspace> i n t SPC <backspace>
( 4 5 ) <return> C-x 1 <up> <up> <up> <up> <up> <up>
C-SPC C-e M-w <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> M-x r e p o r t - e m <tab>
<return>
Recent messages:
M-+ is undefined
Making completion list... [2 times]
Type C-x 1 to delete the help window.
Edebug: python-indent-calculate-indentation
Compiler-macro error for python-syntax-context: (void-function python-syntax--context-compiler-macro) [2 times]
python-indent-calculate-indentation
Type C-x 1 to delete the help window, C-M-v to scroll help.
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils pcase edebug cl-loaddefs cl-lib find-func help-fns
help-mode compile python easymenu comint ring ansi-color time-date
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
inotify dynamic-setting x-toolkit x multi-tty emacs)
Memory information:
((conses 8 126368 6172)
(symbols 24 36990 0)
(miscs 20 60 244)
(strings 16 50063 4936)
(string-bytes 1 725002)
(vectors 8 11772)
(vector-slots 4 411801 5684)
(floats 8 69 355)
(intervals 28 570 9)
(buffers 512 17)
(heap 1024 32795 466))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17670
; Package
emacs
.
(Mon, 02 Jun 2014 17:13:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
also in
In GNU Emacs 24.3.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-05-12
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17670
; Package
emacs
.
(Mon, 02 Jun 2014 18:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 17670 <at> debbugs.gnu.org (full text, mbox):
> emacs -Q
> M-x run-python
> Insert at prompt: "if True:"
> C-j should indent but goes to BOL
C-j doesn't indent in "emacs -Q". RET does instead.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17670
; Package
emacs
.
(Mon, 02 Jun 2014 20:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 17670 <at> debbugs.gnu.org (full text, mbox):
On 02.06.2014 20:15, Stefan Monnier wrote:
>> emacs -Q
>> M-x run-python
>> Insert at prompt: "if True:"
>> C-j should indent but goes to BOL
>
> C-j doesn't indent in "emacs -Q". RET does instead.
>
>
> Stefan
>
So the defaults are switched?
Don't think it's a good idea.
RET is that basic...
If beginners don't get a simple newline, that might turn bad.
Andreas
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Mon, 02 Jun 2014 23:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Andreas Röhler <andreas.roehler <at> easy-emacs.de>
:
bug acknowledged by developer.
(Mon, 02 Jun 2014 23:57:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 17670-done <at> debbugs.gnu.org (full text, mbox):
> If beginners don't get a simple newline, that might turn bad.
It might. Time will tell.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17670
; Package
emacs
.
(Tue, 03 Jun 2014 04:33:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 17670 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier wrote:
>> emacs -Q
>> M-x run-python
>> Insert at prompt: "if True:"
>> C-j should indent but goes to BOL
>
> C-j doesn't indent in "emacs -Q". RET does instead.
But RET does not seem to indent in the situation described here?
Ie, in inferior python buffers.
(Neither C-j nor RET ever has, AFAICS.)
It seems to work with RET if you set python-shell-interpreter to ipython,
but I think that's ipython doing it, not Emacs.
Maybe Emacs should be able to make it work with plain python?
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 01 Jul 2014 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 76 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.