From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#48695: python.el *-backspace functionality behavior Date: Fri, 28 May 2021 03:13:21 +0200 Message-ID: <87zgwfzmmm.fsf@gnus.org> References: <878s3z4usb.fsf@gnus.org> <4794da07-11d7-143c-9a9c-7d2cd449763a@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48695@debbugs.gnu.org To: Mikhail P Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 03:14:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmR4k-0003O0-C1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 03:14:10 +0200 Original-Received: from localhost ([::1]:46128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmR4j-0003jI-CS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 May 2021 21:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmR4c-0003j5-Se for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 21:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmR4c-0007us-L3 for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 21:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmR4c-0001Ge-GD for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 21:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2021 01:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 48695-submit@debbugs.gnu.org id=B48695.16221644114828 (code B ref 48695); Fri, 28 May 2021 01:14:02 +0000 Original-Received: (at 48695) by debbugs.gnu.org; 28 May 2021 01:13:31 +0000 Original-Received: from localhost ([127.0.0.1]:53225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmR46-0001Fo-Tb for submit@debbugs.gnu.org; Thu, 27 May 2021 21:13:31 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmR45-0001Fc-U9 for 48695@debbugs.gnu.org; Thu, 27 May 2021 21:13:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dZEW5d7JRYs56PlcqsOanQJtu8Tl7UVFUMY8o4K3v10=; b=cPNWpN0g/JjadhfjlVMBt3c1jc gMkaiTJNE2XFLGOYqco+mwRYYP3m0ozkiTBwLrbfV+68YUg1LGKoO2L0UlM2fDzW7BoaAlc6pmMQW BGmf4LbgdOJkkYnib+/P9dJ4B2rTMfPjmYPgvs6QIFXxsoSsIw3ZMtJukUkRnsxGgvcw=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmR3x-0002rO-RX; Fri, 28 May 2021 03:13:23 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVHJiSgO0lXFiHV roz///+mf3AMAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UFGxcoMklGNaAAAAFsSURBVDjLjZTRsQMh CEXFbUC0ATUNhKH/3t4F3F2Ttx9hkpnoES6gJKVllH6z8uO5PGF59rUadU77zjoYv3jW6gjrMXnw GOw2QRYgHMXuS6QJc8VnOoANC8Gi6i5YnsCMmwI08YUBU5x20oDqDiAQm0kbC58AMVjDqJlIPYHp 2vYbHmpJXcDSAkqujtTrBqYBMu3qXVgNGnb2jd4fBk7xHIEUnS7wuUFIsFI5at89FmhCmvtYoCzg ddM7jUj29rDahVJ+iZcXVxXZAqA7Gg2ZvWwaSLddYCsQgPgJWIGsIfENytBw+AZyg7KBlFDik0ei J4A2pmMD5QaS7M4fQuG4JtlBDvA+btB9DBYQB3cLL+DvKsA5OPkCAtBzAAr5EW8OGgHCHPgjxf31 dIUCGetJ5w7hO5RN8wJz/JvXI0A/x/l78PMDoHLtfxheQrnA5kFNhLe/DOLCvkaFTWOLvA5a1Xi6 4MaIPiTURE77A1cXXPxTHiI0AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA1LTI3VDIzOjQwOjUw KzAwOjAwqGYyvwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNS0yN1QyMzo0MDo1MCswMDowMNk7 igMAAAAASUVORK5CYII= X-Now-Playing: The Residents's _The King & Eye: RMX_: "A Fool such as I" In-Reply-To: <4794da07-11d7-143c-9a9c-7d2cd449763a@fastmail.com> (Mikhail P.'s message of "Fri, 28 May 2021 08:06:50 +0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207419 Archived-At: (Please keep the debbugs address in the Cc headers -- otherwise your mails won't reach the Emacs bug tracker.) Mikhail P 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 works as expected, but if it's a the "p", it deletes the leading spaces instead. Most peculiar.