unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Pogonyshev <pogonyshev@gmail.com>
To: 18319@debbugs.gnu.org
Subject: bug#18319: Buggy behavior of DEL in python-mode
Date: Sat, 23 Aug 2014 15:09:41 +0200	[thread overview]
Message-ID: <CAG7BpaquO_p3iXC=6ELcoqW7yryjx_rW62k+ocLRDtq+=eekug@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 699 bytes --]

             reply	other threads:[~2014-08-23 13:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-23 13:09 Paul Pogonyshev [this message]
2015-01-27  3:24 ` bug#18319: Buggy behavior of DEL in python-mode Fabián Ezequiel Gallina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG7BpaquO_p3iXC=6ELcoqW7yryjx_rW62k+ocLRDtq+=eekug@mail.gmail.com' \
    --to=pogonyshev@gmail.com \
    --cc=18319@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).