From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: python-mode (python.el): python-backspace Date: Sun, 16 May 2004 15:00:11 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: Reply-To: Karl Chen NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084742497 6564 80.91.224.253 (16 May 2004 21:21:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 May 2004 21:21:37 +0000 (UTC) Cc: Emacs Developement List Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 16 23:21:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPT4a-0004i7-00 for ; Sun, 16 May 2004 23:21:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPT4a-0005wE-00 for ; Sun, 16 May 2004 23:21:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPT2x-0001fU-Qk for emacs-devel@quimby.gnus.org; Sun, 16 May 2004 17:19:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BPT2r-0001er-KQ for emacs-devel@gnu.org; Sun, 16 May 2004 17:19:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BPT2L-0001XW-O5 for emacs-devel@gnu.org; Sun, 16 May 2004 17:19:40 -0400 Original-Received: from [24.7.69.21] (helo=quack.quarl.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPT2L-0001Wv-Dz for emacs-devel@gnu.org; Sun, 16 May 2004 17:19:09 -0400 Original-Received: from v-woof.quarl.org (eecs-wlan-59.AirBears.Berkeley.EDU [169.229.142.194]) by quack.quarl.org (Postfix) with ESMTP id A0EC51ABDFF for ; Sun, 16 May 2004 14:19:07 -0700 (PDT) Original-Received: by v-woof.quarl.org (Postfix, from userid 1000) id BBD5B8070; Sun, 16 May 2004 15:00:15 -0700 (PDT) Original-Received: by v-woof.quarl.org (tmda-sendmail, from uid 1000); Sun, 16 May 2004 15:00:13 -0700 (PDT) Original-To: Dave Love X-Quack-Archive: 1 X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) X-Primary-Address: quarl@quarl.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23550 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23550 I liked the /DEL key better the way it worked in the python-mode.el's python-mode. Python-mode.el's backspace: Close the current block, or unindent one level if already at that indentation Logical inverse of python.el's TAB. Python.el's python-backspace: Close the current block Counter-intuitive in many cases, such as if point is already left of where python-backspace moves indents to (backspace moves the cursor rightward?!) I suggest python-backspace's behavior be changed so that: if point is <= where the current behavior would have indented to, then unindent by 1 python-indent level -- Karl 2004-05-16 14:51