GNU bug report logs - #18319
Buggy behavior of DEL in python-mode

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Sat, 23 Aug 2014 13:10:02 UTC

Severity: minor

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: 18319 <at> debbugs.gnu.org
Subject: bug#18319: Buggy behavior of DEL in python-mode
Date: Sat, 23 Aug 2014 15:09:41 +0200
[Message part 1 (text/plain, inline)]
Save the following as a .py file and open in an 'emacs -q':

if True:
    x ()
    if True:

Put the point on the second 'if', i.e. line 3, column 4.

* First press of DEL (Backspace) does nothing (bug 1);
* Second press dedents the line --- ok;
* Press C-/ to undo line dedention and so revert the buffer to original
text;
* Now third press of DEL _indents_ the line, even though it makes no sense
in Python at all (bug 2).

The buggy function is 'python-indent-dedent-line-backspace'.

Paul
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 202 days ago.

Previous Next


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