unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Mikhail P <mikpom@fastmail.com>
Cc: 48695@debbugs.gnu.org
Subject: bug#48695: python.el *-backspace functionality behavior
Date: Fri, 28 May 2021 03:13:21 +0200	[thread overview]
Message-ID: <87zgwfzmmm.fsf@gnus.org> (raw)
In-Reply-To: <4794da07-11d7-143c-9a9c-7d2cd449763a@fastmail.com> (Mikhail P.'s message of "Fri, 28 May 2021 08:06:50 +0700")

(Please keep the debbugs address in the Cc headers -- otherwise your
mails won't reach the Emacs bug tracker.)

Mikhail P <mikpom@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.





      parent reply	other threads:[~2021-05-28  1:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27  7:11 bug#48695: python.el *-backspace functionality behavior Mikhail P
2021-05-27 23:32 ` Lars Ingebrigtsen
     [not found]   ` <4794da07-11d7-143c-9a9c-7d2cd449763a@fastmail.com>
2021-05-28  1:13     ` Lars Ingebrigtsen [this message]

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=87zgwfzmmm.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=48695@debbugs.gnu.org \
    --cc=mikpom@fastmail.com \
    /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).