From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: python-mode: keep mark when shifting [patch] Date: Sun, 12 Mar 2006 07:47:06 -0500 Message-ID: References: <8E0F3F60-B0BA-4F00-AA96-9A776781F331@gmail.com> <20060310204059.GA6292@rocksteady.printf.se> <1C6A93B4-3088-40A5-8553-A72B4BD6582B@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1142167658 21620 80.91.229.2 (12 Mar 2006 12:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2006 12:47:38 +0000 (UTC) Cc: henrik.enberg@telia.com, fx@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 12 13:47:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FIPys-0006pj-4r for ged-emacs-devel@m.gmane.org; Sun, 12 Mar 2006 13:47:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIPyr-0008Au-Hm for ged-emacs-devel@m.gmane.org; Sun, 12 Mar 2006 07:47:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FIPyW-00089q-I7 for emacs-devel@gnu.org; Sun, 12 Mar 2006 07:47:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FIPyW-00089T-3y for emacs-devel@gnu.org; Sun, 12 Mar 2006 07:47:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIPyV-00089M-VM for emacs-devel@gnu.org; Sun, 12 Mar 2006 07:47:08 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FIQ2G-0000LW-2a for emacs-devel@gnu.org; Sun, 12 Mar 2006 07:51:00 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FIPyU-0003yT-O1; Sun, 12 Mar 2006 07:47:06 -0500 Original-To: David Reitter In-reply-to: <1C6A93B4-3088-40A5-8553-A72B4BD6582B@gmail.com> (message from David Reitter on Sat, 11 Mar 2006 17:12:10 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51518 Archived-At: The ideal situation in my view would be a default indent command which is modified by the major mode if necessary. In theory we could add another such general command that modes would modify, as they do TAB. However, is that necessary? In C or Lisp I would use C-u TAB to shift a subexpression to the proper position. (There's no need to specify left or right, because the command figures that out.) Could that work in Python mode? I recall Python is weird in regard to indentation. Maybe it simply needs different kinds of commands from those needed by other languages.