From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: Re: python-mode (python.el): python-backspace Date: Tue, 18 May 2004 17:57:47 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084918185 23741 80.91.224.253 (18 May 2004 22:09:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 22:09:45 +0000 (UTC) Cc: Karl Chen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 19 00:09:38 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 1BQCmI-0006il-00 for ; Wed, 19 May 2004 00:09:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQCmH-0006SM-00 for ; Wed, 19 May 2004 00:09:37 +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 1BQATg-00066p-Dy for emacs-devel@quimby.gnus.org; Tue, 18 May 2004 15:42:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQASw-00064X-9k for emacs-devel@gnu.org; Tue, 18 May 2004 15:41:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQASM-0005vA-4x for emacs-devel@gnu.org; Tue, 18 May 2004 15:41:26 -0400 Original-Received: from [148.79.80.39] (helo=albion.dl.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQ7uf-0001Op-VY; Tue, 18 May 2004 12:57:58 -0400 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 1BQ7uV-00077F-00; Tue, 18 May 2004 17:57:47 +0100 Original-To: rms@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) 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:23663 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23663 Richard Stallman writes: > It is not a good thing for a major mode to redefine DEL or Backspace > so drastically, I don't think it's very drastic, else I'd probably agree. It's a refinement of what many modes do anyway in redefining DEL, and I think most people editing Python would think it just DTRT (more-or-less). Apparently it's broken, but the intention is that it deletes a level of indentation backwards iff it's at the end of indentation. That (probably) keeps the source syntactically correct, as opposed to what the the default binding would do for indent steps >1. Note that the indentation is actually part of the syntax in Python and it has to match the start of a block to be syntactically correct. [It's similar to, but not the same as Landin's `offside' rule, if that means anything.] > because that breaks a general convention that is supposed > to be universal in Emacs. It is ok to have an option to do this, > but it should not be the default. > > The default should be to delete one character backwards, > one way or another. Programming modes typically use `backward-delete-char-untabify', not `delete-backward-char', though some bind it to something different.