From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 23 09:09:55 2014 Received: (at submit) by debbugs.gnu.org; 23 Aug 2014 13:09:55 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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== MIME-Version: 1.0 X-Received: by 10.60.65.8 with SMTP id t8mr10842609oes.47.1408799382013; Sat, 23 Aug 2014 06:09:42 -0700 (PDT) Received: by 10.182.2.167 with HTTP; Sat, 23 Aug 2014 06:09:41 -0700 (PDT) Date: Sat, 23 Aug 2014 15:09:41 +0200 Message-ID: Subject: Buggy behavior of DEL in python-mode From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c1d5feb98dc305014baaba 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 26 22:24:57 2015 Received: (at 18319-done) by debbugs.gnu.org; 27 Jan 2015 03:24:57 +0000 Received: from localhost ([127.0.0.1]:57467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFwlt-0007xj-DD for submit@debbugs.gnu.org; Mon, 26 Jan 2015 22:24:57 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:39537 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFwlr-0007xb-E1 for 18319-done@debbugs.gnu.org; Mon, 26 Jan 2015 22:24:55 -0500 Received: from [190.246.172.180] (port=45656 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YFwlq-0006zi-MK for 18319-done@debbugs.gnu.org; Mon, 26 Jan 2015 22:24:55 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 18319-done@debbugs.gnu.org Subject: Buggy behavior of DEL in python-mode Date: Tue, 27 Jan 2015 00:24:52 -0300 Message-ID: <87iofssy63.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18319-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Fixed at 5485e3e in the emacs-24 branch. Cheers, Fabi=C3=A1n From unknown Thu Sep 11 20:48:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 24 Feb 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator