GNU bug report logs - #65870
30.0.50; Error in python-mode when try to delete a character in badly-indented code

Previous Next

Package: emacs;

Reported by: Daniel Lopez <daniel.lopez999 <at> gmail.com>

Date: Mon, 11 Sep 2023 16:38:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#65870: 30.0.50; Error in python-mode when try to delete a
 character in badly-indented code
Date: Tue, 4 Jun 2024 07:12:52 +0200
Am 03.06.24 um 13:25 schrieb Eli Zaretskii:
>> Date: Sun, 02 Jun 2024 21:08:30 +0000
>> From: Jakub Ječmínek <kuba <at> kubajecminek.cz>
>> Cc: kobarity <kobarity <at> gmail.com>, Daniel Lopez <daniel.lopez999 <at> gmail.com>, 65870 <at> debbugs.gnu.org
>>
>> kobarity <kobarity <at> gmail.com> writes:
>>
>> Eli, can you please install this?  I can still reproduce the original error.
> I'm waiting for other people to chime in if they want.  Please be
> patient.
>
>
>
May reproduce a bug:

From col 4 at an empty second line, BACKSPACE  doesn't move. Instead 
sends the error:

indent-line-to: Wrong type argument: wholenump, -4 [2 times]

---

C-h k BACKSPACE:

DEL (translated from <backspace>) runs the command
python-indent-dedent-line-backspace (found in python-mode-map), which
is an interactive byte-code-function in ‘python.el’.

It is bound to DEL.

(python-indent-dedent-line-backspace ARG)

De-indent current line.
Argument ARG is passed to ‘backward-delete-char-untabify’ when
point is not in between the indentation.

---

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, 
cairo version 1.16.0) of 2024-06-03





This bug report was last modified 349 days ago.

Previous Next


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