From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.python-mode,gmane.emacs.help Subject: Re: Emacs block indentation Date: Wed, 30 Sep 2009 20:25:53 +0200 Message-ID: <4AC3A2B1.9030806@easy-emacs.de> References: <25676078.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254335241 4004 80.91.229.12 (30 Sep 2009 18:27:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 18:27:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, python-mode@python.org To: Jaideep Das Original-X-From: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Wed Sep 30 20:27:14 2009 Return-path: Envelope-to: gcpp-python-mode@m.gmane.org Original-Received: from mail.python.org ([82.94.164.166]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mt3tP-0005UQ-J8 for gcpp-python-mode@m.gmane.org; Wed, 30 Sep 2009 20:27:11 +0200 Original-Received: from albatross.python.org (localhost.localdomain [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 62D52E975 for ; Wed, 30 Sep 2009 20:27:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1254335231; bh=5fQI3PnN89jG7pkmNuUSCKA5hK4C864vh/t+x0qbujY=; h=Message-ID:Date:From:MIME-Version:To:References:In-Reply-To:Cc: Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Content-Type:Content-Transfer-Encoding:Sender; b=mGhLpn6nWA1XwkrWcU50znQ60N/yQ4o+uvVzyUEenyv3SIRJEZ6VR/mt4Jh3RGD1Q 1208kkxm47cm0JOhbmuzyRNBnJz+H6gbAy/ajQ1PW0s+SGI2MfXRBf+gKa7gQtU211 SH5fMrUOrrb+SBVGlkhBMqNrP0Sl5Bww0gjpjW7w= Original-Received: from albatross.python.org (localhost.localdomain [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 540A4E7FC for ; Wed, 30 Sep 2009 20:27:08 +0200 (CEST) X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'solve': 0.03; 'python': 0.03; 'block.': 0.07; 'commit': 0.07; 'repeated': 0.07; 'wrote:': 0.08; '2.2': 0.09; 'hth': 0.09; 'header:In-Reply-To:1': 0.14; 'emacs': 0.16; 'indent': 0.16; 'left,': 0.16; 'received:192.168.178': 0.16; 'region': 0.16; 'revision': 0.16; 'shifting': 0.16; 'subject:block': 0.16; 'url:launchpad': 0.16; 'url:code': 0.22; 'cc:addr:python.org': 0.24; 'header:User- Agent:1': 0.28; 'code': 0.29; 'block': 0.29; 'from:charset:iso-8859-1': 0.30; 'cc:2**1': 0.34; 'received:192.168': 0.38; 'multiple': 0.38; 'received:192': 0.38; 'subject:: ': 0.39; 'might': 0.39; 'once': 0.61; 'header:Received:3': 0.61; 'mean': 0.61; 'your': 0.64; '2.3': 0.68; 'sequence': 0.68; 'problem.': 0.76; 'active': 0.80; 'regions': 0.84 Original-Received: from localhost.localdomain (HELO mail.python.org) (127.0.0.1) by albatross.python.org with SMTP; 30 Sep 2009 20:27:08 +0200 Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.python.org (Postfix) with ESMTP for ; Wed, 30 Sep 2009 20:27:08 +0200 (CEST) Original-Received: from [192.168.178.27] (p54BEB82F.dip0.t-ipconnect.de [84.190.184.47]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MCfv0-1N1H5E1nIA-009Tpc; Wed, 30 Sep 2009 20:26:59 +0200 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) In-Reply-To: <25676078.post@talk.nabble.com> X-Provags-ID: V01U2FsdGVkX19hWnFmwEnVVkCEAqfGcBPx5SlIOUIafUMwqoF rIzJ000yIxvoa19AmbeEioSHLc8H7pZsRp0kIl4KfiacSeSijS hAFrQeOnuZaw3qzCazxcbaw4t+SIz7G X-BeenThere: python-mode@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: For issues concerning python-mode for X/Emacs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Errors-To: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Xref: news.gmane.org gmane.emacs.python-mode:329 gmane.emacs.help:68568 Archived-At: Jaideep Das wrote: > I am using emacs 2.2 at work and 2.3 at home for python coding. I want to > know how can I indent or outdent a block of code multiple times. What I mean > is when I select a code part using C-space and then use C-x / C-c-> / > C-c-< to indent or outdent, this only works once and then deselect the > block. What if i want to indent multiple times on the same code block do I > have to repeated this key sequence from selecting the block to indent. > Commit message of latest revision of python-mode.el (note: not python.el) says: "When shifting regions right and left, keep the region active in Emacs." This might solve your problem. Get it at https://code.launchpad.net/~python-mode-devs/python-mode/python-mode or with bzr branch lp:python-mode HTH Andreas -- https://code.launchpad.net/s-x-emacs-werkstatt/