From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#18319: Buggy behavior of DEL in python-mode Date: Sat, 23 Aug 2014 15:09:41 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1d5feb98dc305014baaba X-Trace: ger.gmane.org 1408799419 11953 80.91.229.3 (23 Aug 2014 13:10:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2014 13:10:19 +0000 (UTC) To: 18319@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 23 15:10:12 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XLB59-00027q-67 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2014 15:10:11 +0200 Original-Received: from localhost ([::1]:41072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB58-0001Y7-Oe for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2014 09:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB54-0001Vy-D7 for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLB51-00063I-PE for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:10:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB51-00062w-Lr for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XLB51-0005QU-66 for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Aug 2014 13:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18319 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140879939520837 (code B ref -1); Sat, 23 Aug 2014 13:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Aug 2014 13:09:55 +0000 Original-Received: from localhost ([127.0.0.1]:49995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLB4s-0005Q0-OP for submit@debbugs.gnu.org; Sat, 23 Aug 2014 09:09:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49119) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLB4p-0005Pm-4L for submit@debbugs.gnu.org; Sat, 23 Aug 2014 09:09:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLB4j-0005vS-4G for submit@debbugs.gnu.org; Sat, 23 Aug 2014 09:09:45 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB4j-0005vN-1I for submit@debbugs.gnu.org; Sat, 23 Aug 2014 09:09:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB4i-0001Tu-3h for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:09:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLB4h-0005v6-8Q for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:09:44 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:46934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLB4h-0005uz-3a for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 09:09:43 -0400 Original-Received: by mail-oi0-f51.google.com with SMTP id v63so1496987oia.38 for ; Sat, 23 Aug 2014 06:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ii6J0hmRPpHh5VibTuaV7bzirdV5yEad0JLiCwNmNe4=; b=qgAEzN5FS56hVy/DbXX8UWpigyrZ36AqmWtYTIwXKcJkHl0wWEd2NXhdi1UiYx+NW1 H0DpgFj3kpLf/3y8rBCTSf60b/Qymbd1CEzd2jvkMSolx0543N/AOZDIbzT5plgIsvmC NUjeom9OkP0FzpxF0fC6HMV1Lmb4UetNFOzgAjnHvoIZUYTfbKyFV799d0iUFGUvc8oC kMYY2/c0yg1OEdyZAvNvSZQYvGAB9LFTeYnKfUVuxqmhLkvwOAFr3VlgNyTZ1X5VzJmo REbEnwPZW7xI50sxBqam3a1+96/J6/ZmmDJasyDar7GPhpYG/ZxkadPLZwhPd5rrUIas 5B0A== X-Received: by 10.60.65.8 with SMTP id t8mr10842609oes.47.1408799382013; Sat, 23 Aug 2014 06:09:42 -0700 (PDT) Original-Received: by 10.182.2.167 with HTTP; Sat, 23 Aug 2014 06:09:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92621 Archived-At: --001a11c1d5feb98dc305014baaba Content-Type: text/plain; charset=UTF-8 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 --001a11c1d5feb98dc305014baaba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Save the following as a .py file and open in an 'emacs= -q':

if True:
=C2=A0=C2=A0=C2=A0 x ()
=C2=A0=C2=A0= =C2=A0 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 u= ndo line dedention and so revert the buffer to original text;
* Now third press of DEL _indents_ the line, even though it makes no s= ense in Python at all (bug 2).

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

Paul
--001a11c1d5feb98dc305014baaba--