GNU bug report logs -
#48695
python.el *-backspace functionality behavior
Previous Next
Full log
Message #13 received at 48695 <at> debbugs.gnu.org (full text, mbox):
(Please keep the debbugs address in the Cc headers -- otherwise your
mails won't reach the Emacs bug tracker.)
Mikhail P <mikpom <at> fastmail.com> writes:
> Greetings!
>
> The steps are :
>
> 1. start emacs with emacs -Q
>
> 2. visit a (empty) file with .py extension (so built-in Python major mode is activated)
>
> 3. type a block of code containing indented line, e.g.
>
> for i in range(10):
>
> print(i)
>
> 4. Move the cursor at the very end of the code example (after print(i)) and activate
> the mark
>
> 5. Move the cursor at the beginning of print(i), so it is on p.
>
> 6. hit backspace.
>
> 7. selected text (print(i)) is not deleted but dedented instead)
Thanks for the recipe -- I can reproduce this in both Emacs 28 and 27.1.
If point is anywhere else than at the "p", the <backspace> works as
expected, but if it's a the "p", it deletes the leading spaces instead.
Most peculiar.
This bug report was last modified 4 years and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.