Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76806

Re: Global indent

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.032
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'that?': 0.05; '22,': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'lines': 0.31; 'that.': 0.31; 'probably': 0.32; 'text': 0.33; 'fri,': 0.33; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'similar': 0.36; 'depends': 0.38; 'pm,': 0.38; 'either': 0.39; 'commands.': 0.84; 'everything.': 0.84; 'subject:Global': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=d6I/kplcj/GmnYjl5cel1H3K2dwAhuMPWLACf84CYzw=; b=wnQov2TKFjfj7a+jUp5C9Rh9KuRjY5oYjGUkF8si8V8dym6OFIkTMAKi9qluxBMca3 bsqUtGGQ09IZYpOPG1zUbJSauxQNx73UCFF/BVVuVDGJMnkkSKyMWS8D9RRPwLBzrEyI kAgi3aRvfDoSsmJbvtundiubzBISi9/3svEbaoIpqPOFUhTbeFNidHHy+1FOLEMImtfH MucESkOH1Fug7sxCJMsO5FAUSTEpehLH1RQhZYmugBWuo+/iVlrXmcVtnw7wVoURgvTU rez5DWpmXu3Y2EH3k381m6p99OoHvKDqrBwuXguqJyxGbtcMZO17jcc9O2jhzzzHrK3Y zzsg==
MIME-Version 1.0
X-Received by 10.50.78.167 with SMTP id c7mr426432igx.6.1408732469014; Fri, 22 Aug 2014 11:34:29 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com>
References <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com>
Date Fri, 22 Aug 2014 13:34:28 -0500
X-Google-Sender-Auth 6N2E5_dUcQicEuTS3hb2d5db6z0
Subject Re: Global indent
From Skip Montanaro <skip@pobox.com>
To Seymore4Head <Seymore4Head@hotmail.invalid>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13299.1408732472.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408732472 news.xs4all.nl 2860 [2001:888:2000:d::a6]:56904
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76806

Show key headers only | View raw


On Fri, Aug 22, 2014 at 1:19 PM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> Say I have a while statement with several lines of code and I want to
> add a while outside that.  That means indenting everything.  Is there
> a global way to do that?

Depends on your text editor/IDE. In Emacs using either python-mode.el
or python.el, I use C-c > to shift the selected region right, C-c < to
shift it left. Other editors probably have similar commands.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-22 14:19 -0400
  Re: Global indent Skip Montanaro <skip@pobox.com> - 2014-08-22 13:34 -0500
  Re: Global indent "Neil D. Cerutti" <neilc@norwich.edu> - 2014-08-22 14:44 -0400
  Re: Global indent Dan Stromberg <drsalists@gmail.com> - 2014-08-22 12:21 -0700
  Re: Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-22 15:46 -0400
    Re: Global indent Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-08-22 12:54 -0700
      Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-22 23:11 +0300
        Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:08 +1000
          Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-23 12:32 +0300
          Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 11:41 +0200
            Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-23 15:19 +0100
              Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 18:17 +0200
                Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-23 21:57 +0100
                Re: Global indent Rustom Mody <rustompmody@gmail.com> - 2014-08-23 14:55 -0700
                Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-24 20:24 +0100
            Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-24 00:56 +1000
              Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 18:09 +0200
              Re: Global indent Anders Wegge Keller <wegge@wegge.dk> - 2014-08-23 22:43 +0200
                Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-24 01:50 +0300
            Re: Global indent Tim Chase <python.list@tim.thechases.com> - 2014-08-23 15:18 -0500
          Re: Global indent Rustom Mody <rustompmody@gmail.com> - 2014-08-23 07:49 -0700
          Re: Global indent [levity] Peter Pearson <pkpearson@nowhere.invalid> - 2014-08-23 17:17 +0000
      Re: Global indent "Neil D. Cerutti" <neilc@norwich.edu> - 2014-08-22 16:16 -0400
      Re: Global indent Dan Stromberg <drsalists@gmail.com> - 2014-08-22 14:14 -0700
        Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:31 +1000
          Re: Global indent Tim Chase <python.list@tim.thechases.com> - 2014-08-23 15:09 -0500
      Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 18:19 +1000
        Re: Global indent alister <alister.nospam.ware@ntlworld.com> - 2014-08-23 10:17 +0000
          Re: Global indent Gene Heskett <gheskett@wdtv.com> - 2014-08-23 10:32 -0400
    Re: Global indent Chris Angelico <rosuav@gmail.com> - 2014-08-23 06:20 +1000
    Re: Global indent Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-22 21:59 +0100
    Re: Global indent mm0fmf <none@mailinator.com> - 2014-08-23 12:50 +0100
  Re: Global indent Simon Ward <simon@bleah.co.uk> - 2014-08-22 20:22 +0100
  Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 18:12 +1000
  Re: Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-23 11:10 -0400

csiph-web