From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: python-mode (python.el): python-backspace Date: 30 May 2004 17:17:09 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <86isefpivx.fsf@rumba.de.uu.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085951873 24175 80.91.224.253 (30 May 2004 21:17:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 May 2004 21:17:53 +0000 (UTC) Cc: Kai Grossjohann , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 30 23:17:48 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 1BUXgi-0000lw-00 for ; Sun, 30 May 2004 23:17:48 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUXgh-0004Rp-00 for ; Sun, 30 May 2004 23:17:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUXgr-0001qq-3a for emacs-devel@quimby.gnus.org; Sun, 30 May 2004 17:17:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUXgp-0001qh-3N for emacs-devel@gnu.org; Sun, 30 May 2004 17:17:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUXgn-0001qJ-22 for emacs-devel@gnu.org; Sun, 30 May 2004 17:17:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUXgm-0001q9-WD for emacs-devel@gnu.org; Sun, 30 May 2004 17:17:53 -0400 Original-Received: from [206.47.199.164] (helo=simmts6-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BUXg6-0003VV-3L; Sun, 30 May 2004 17:17:10 -0400 Original-Received: from empanada.local ([67.70.165.15]) by simmts6-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040530211709.JVCQ28020.simmts6-srv.bellnexxia.net@empanada.local>; Sun, 30 May 2004 17:17:09 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id 699DF1BDB33; Sun, 30 May 2004 17:17:09 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:24246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24246 > If point is currently at column N, search backward for a line with > indentation M < N. Then delete characters to the left until column M > is reached. > I suppose that could be useful in many modes. Not, I think, in modes > that compute the exact indentation, such as Lisp mode and C mode. But > there are many modes which don't have such careful > indentation computations. Yes, it would obviously need a hook so that modes like Lisp, Python, C, ... can provide a more precise definition. But I think as a first approximation for those mode authors who don't have the time/energy to fine tune every little detail, it's a pretty good default. Stefan