GNU bug report logs -
#23616
25.0.94; TAB in inferior-python-mode
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Wed, 25 May 2016 11:55:01 UTC
Severity: normal
Found in version 25.0.94
Done: Stephen Berman <stephen.berman <at> gmx.net>
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 23616 in the body.
You can then email your comments to 23616 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#23616
; Package
emacs
.
(Wed, 25 May 2016 11:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 25 May 2016 11:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Doing the following (in either emacs-25 or master):
0. emacs -Q
1. M-x run-python
2. at the Python prompt type `for i in range(10):' then `RET', `TAB',
`print i,', `RET'
results in this Python error:
IndentationError: expected an indented block
although the TAB in step 2 above visibly indents the line `print i,'.
If instead of `TAB' I type `SPC SPC SPC SPC' then after the final RET
the output is as expected:
0 1 2 3 4 5 6 7 8 9
It's not clear to me whether the above error indicates a bug in
python.el; is there some setting I haven't found that makes TAB work in
inferior-python-mode? (In case it matter, this is with python 2.7.8., I
haven't tried with python3.) I note that the definition of python-mode
has this line:
(set (make-local-variable 'indent-tabs-mode) nil)
which the definition of inferior-python-mode lacks; adding that line to
latter does make TAB work as I expect. But I'm not sure whether this
setting is missing on purpose (but if so, why?).
In GNU Emacs 25.0.94.1 (x86_64-suse-linux-gnu, GTK+ Version 3.14.15)
of 2016-05-18 built on rosalinde
Repository revision: 3b5e38cde194c4faa3865aa437b4a2749946c24d
Windowing system distributor 'The X.Org Foundation', version 11.0.11601000
System Description: openSUSE 13.2 (Harlequin) (x86_64)
Configured using:
'configure --with-xwidgets 'CFLAGS=-Og -g3''
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY
GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XWIDGETS
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Added indication that bug 23616 blocks19759
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 27 May 2016 00:49:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23616
; Package
emacs
.
(Fri, 27 May 2016 15:49:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 23616 <at> debbugs.gnu.org (full text, mbox):
Of course it's a bug.
It works fine in 24.5 with tabs or spaces.
The error I get seems like it is related to the python completion code.
The least we should do is work around the issue by setting
indent-tabs-mode to nil in inferior python buffers too.
But IMO it should work with either.
(Eg for me in ipython, TAB inserts a literal tab, not spaces.)
Removed indication that bug 23616 blocks
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 07 Jun 2016 22:27:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
You have taken responsibility.
(Wed, 08 Jun 2016 07:52:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
bug acknowledged by developer.
(Wed, 08 Jun 2016 07:52:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 23616-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 7 Jun 2016 22:26:40 +0000 (UTC) rgm <at> gnu.org (Glenn Morris) wrote:
> branch: emacs-25
> commit ba3f206239349b725a970c7015f7f4ee8631ef6d
> Author: Glenn Morris <rgm <at> gnu.org>
> Commit: Glenn Morris <rgm <at> gnu.org>
>
> * lisp/progmodes/python.el (inferior-python-mode):
> Avoid tabs. (Bug#23616)
> ---
> lisp/progmodes/python.el | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
> index 2d22bb2..41d3e1c 100644
> --- a/lisp/progmodes/python.el
> +++ b/lisp/progmodes/python.el
> @@ -2678,6 +2678,7 @@ variable.
> \(Type \\[describe-mode] in the process buffer for a list of commands.)"
> (when python-shell--parent-buffer
> (python-util-clone-local-variables python-shell--parent-buffer))
> + (set (make-local-variable 'indent-tabs-mode) nil)
> ;; Users can interactively override default values for
> ;; `python-shell-interpreter' and `python-shell-interpreter-args'
> ;; when calling `run-python'. This ensures values let-bound in
Thanks, that satisfies me, so I'm closing this bug.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23616
; Package
emacs
.
(Wed, 08 Jun 2016 15:40:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 23616 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman wrote:
> Thanks, that satisfies me, so I'm closing this bug.
As I said, IMO it should work with either tabs or spaces, as it used to
in previous releases. This change is only a workaround.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23616
; Package
emacs
.
(Wed, 08 Jun 2016 15:48:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 23616 <at> debbugs.gnu.org (full text, mbox):
On Wed, 08 Jun 2016 11:39:42 -0400 Glenn Morris <rgm <at> gnu.org> wrote:
> Stephen Berman wrote:
>
>> Thanks, that satisfies me, so I'm closing this bug.
>
> As I said, IMO it should work with either tabs or spaces, as it used to
> in previous releases. This change is only a workaround.
Oh, ok, then feel free to reopen the bug.
Steve Berman
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 07 Jul 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.