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: Mon, 13 Mar 2006 17:42:25 -0500 Message-ID: References: <06D1482E-BC8E-4A14-B687-348392FC25EE@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 1142289883 16643 80.91.229.2 (13 Mar 2006 22:44:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Mar 2006 22:44:43 +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 Mon Mar 13 23:44:39 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 1FIvkb-0007BN-9w for ged-emacs-devel@m.gmane.org; Mon, 13 Mar 2006 23:42:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIvka-00051F-PZ for ged-emacs-devel@m.gmane.org; Mon, 13 Mar 2006 17:42:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FIvkB-00050B-PS for emacs-devel@gnu.org; Mon, 13 Mar 2006 17:42:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FIvkB-0004zn-4f for emacs-devel@gnu.org; Mon, 13 Mar 2006 17:42:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIvkB-0004zf-0y for emacs-devel@gnu.org; Mon, 13 Mar 2006 17:42:27 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FIvoF-0001l5-03 for emacs-devel@gnu.org; Mon, 13 Mar 2006 17:46:39 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FIvk9-0006vq-OY; Mon, 13 Mar 2006 17:42:25 -0500 Original-To: David Reitter In-reply-to: <06D1482E-BC8E-4A14-B687-348392FC25EE@gmail.com> (message from David Reitter on Mon, 13 Mar 2006 11:34:07 +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:51578 Archived-At: Repeated use of C-c > and C-c < do that job just fine. However, because it is typically used repeatedly on the same region, deactivating the mark is very inconvenient. That does seem like a persuasive argument. Consider the following use case: A code block is to be moved out of its context in order to stick it into a separate function. I yank it at its destination, write a "def newfunc():" at the top. But now I have to reindent it. Repeated use of C-c > and C-c < do that job just fine. However, because it is typically used repeatedly on the same region, deactivating the mark is very inconvenient. Suppose you define C-u TAB to cycle thru the same positions that TAB would cycle thru. Would that be a convenient solution?