From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Warren Harris Newsgroups: gmane.emacs.bugs Subject: bug#6057: 23: py-indent-region broken Date: Tue, 27 Apr 2010 19:11:49 -0700 Message-ID: <203F1D0B-5CD4-4351-8C67-29A5043F74F8@gmail.com> References: <8554C113-BAB1-4A76-BA32-9AB2FC7FE9B7@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272421562 909 80.91.229.12 (28 Apr 2010 02:26:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 02:26:02 +0000 (UTC) Cc: 6057@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 28 04:26:00 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wyM-00032p-EA for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Apr 2010 04:25:59 +0200 Original-Received: from localhost ([127.0.0.1]:33567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6wyL-0007RR-Oe for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 22:25:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6wyG-0007RA-OY for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 22:25:52 -0400 Original-Received: from [140.186.70.92] (port=35319 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6wyE-0007R1-Hf for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 22:25:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6wyB-0003dJ-89 for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 22:25:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42486) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wy8-0003d7-Gx for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 22:25:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O6wkr-0006F9-Qc; Tue, 27 Apr 2010 22:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Warren Harris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2010 02:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6057 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6057-submit@debbugs.gnu.org id=B6057.127242072023993 (code B ref 6057); Wed, 28 Apr 2010 02:12:01 +0000 Original-Received: (at 6057) by debbugs.gnu.org; 28 Apr 2010 02:12:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wkp-0006Ew-2b for submit@debbugs.gnu.org; Tue, 27 Apr 2010 22:11:59 -0400 Original-Received: from mail-qy0-f171.google.com ([209.85.221.171]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wkm-0006Ep-Ha for 6057@debbugs.gnu.org; Tue, 27 Apr 2010 22:11:57 -0400 Original-Received: by qyk1 with SMTP id 1so18341769qyk.15 for <6057@debbugs.gnu.org>; Tue, 27 Apr 2010 19:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=FPaC5skh8Xf8hC2lGGAcPl7XEZk50jSUtDAGQXln0bc=; b=ii25qbNMiTBAdxsiAAo1wNk/nKA6RiY/njr+fnaKC3WFnbV4fN47MIHIF25wiHJASc rxpi0IqhJ3d2tBkoSzF+LrRaRjRHIdnGjRaepN9Kkr2oj/U38y19Fgtwmelev8uQj8cT fZVZPk/I6yHab//SIKfISyx7qDK4IpzZiAIE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=QzQzmSdMHvOYU31EfPzK6LABeLgRBDWngqtTW92QQx69sOSPI6B0Xdb1X6SUrJ2AZd pJFYM3KnJmZmLfBppObq7kJdfB/fFXgpdTKOnOV8kue8jdm1YOpHqUBBN8vjHT1ClxEr dhOsGjCu11tdXGrGE3O02QlvRyHziTc8N2NYk= Original-Received: by 10.224.93.2 with SMTP id t2mr2032813qam.42.1272420712609; Tue, 27 Apr 2010 19:11:52 -0700 (PDT) Original-Received: from [192.168.0.33] (c-24-5-88-93.hsd1.ca.comcast.net [24.5.88.93]) by mx.google.com with ESMTPS id 5sm9393631qwh.5.2010.04.27.19.11.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Apr 2010 19:11:51 -0700 (PDT) In-Reply-To: <8554C113-BAB1-4A76-BA32-9AB2FC7FE9B7@gmail.com> X-Mailer: Apple Mail (2.936) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Apr 2010 22:12:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36577 Archived-At: David, Thanks for filing this against gnu emacs. A couple of other things to =20= note (if they're not apparent already): 1. python-mode now seems to be indenting automatically, without =20 hitting tab -- You'll notice this whenever breaking a line in the =20 middle by hitting return. This is a change from the previous behavior. =20= (This one doesn't matter to me one way or the other... but I'm not =20 sure the change was intentional.) 2. indentation is *extremely* slow -- I routinely have one-line nested =20= python dictionaries (often many KB in length) that I'd like format, =20 and I do this via keyboard macro that searches for the commas and =20 inserts returns after them. Doing this in the latest version of =20 aquamacs will max out my cpu for many minutes on end. The previous =20 version could do this very quickly. Warren On Apr 27, 2010, at 6:50 PM, David Reitter wrote: > X-Debbugs-Cc: Warren Harris > > py-indent-region seems dysfunctional when we're at column 0. > > Enter this: > > if 1=3D1: > print 5 > print 8 > if 1=3D1: > print 6 > else: > print 6 > print 5 > > Then mark lines 2-5 (incl), which could be seen as a consistently =20 > indented block of code that was pasted there. C-c TAB should now =20 > shift it to the right, but it does nothing. > > Contrast this with a situation where the block is already indented: > > if 0=3D0: > if 1=3D1: > print 5 > print 8 > if 1=3D1: > print 6 > else: > print 6 > print 5 > > Select lines 3-6 (incl) and hit C-c TAB. Works. > > This is python.el from lisp/progmodes. > > Begin forwarded message: > >> From: Warren Harris >> Date: April 27, 2010 6:41:23 PM EDT >> To: Bug reports for Aquamacs Emacs >> Cc: David Reitter >> Subject: Re: [Aquamacs-bugs] 23.1.93; cursor column position not =20 >> preserved across short lines > > > >> 3. indent-region in python mode does nothing. (This happens in =20 >> 2.0b5 too.) However, line-by-line indention (with tab) works. > > > > In GNU Emacs 23.1.96.48 (x86_64-apple-darwin10.3.0, NS apple-=20 > appkit-1038.29) > of 2010-04-26 on scarlett.local - Aquamacs Distribution 2.0preview6 > Windowing system distributor `Apple', version 10.3.1038 > configured using `configure '--with-ns'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Python > > Minor modes in effect: > shell-dirtrack-mode: t > diff-auto-refine-mode: t > which-function-mode: t > savehist-mode: t > smart-frame-positioning-mode: t > aquamacs-autoface-mode: t > recentf-mode: t > osx-key-mode: t > tabbar-mwheel-mode: t > tabbar-mode: t > show-paren-mode: t > delete-selection-mode: t > pc-selection-mode: t > cua-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > - I N D E N T - R E G ^C > > > > ^H F > > > ^C > ^C > ^C > E L S E > : P R I N T SPC 6 > P R I N T SPC 8 I F SPC 1 =3D 1 : > P R I N T SPC 6 > ^C > > ^C > > > > > ^C > > I F SPC 0 =3D 0 : > > ^C ^C > =E2=8C=98Z > > ^C < ^C > ^C > SPC =E2=8C=98Z =E2=8C=98A =E2=8C=98C = > > I F SPC 0 =3D 0 : > ^C > =E2=8C=98A =E2=8C=98C = > ^C > =E2=8C=98Z > ^C ^C > =E2=8C=98Z =E2=8C=98Z =E2=8C=98Z =E2=8C=98Z = > ^C > > > > Recent messages: > Undo... > Undo! > Undo... > Undo! > Undo... > Undo! > Undo... > Undo! > Undo... > Undo! > > Load-path shadows: > /Users/dr/Library/Preferences/Aquamacs Emacs/Recent Files hides /=20 > Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Recent =20 > Files > /Users/dr/Library/Preferences/Aquamacs Emacs/Preferences hides /=20 > Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/=20 > Preferences > /Users/dr/Library/Preferences/Aquamacs Emacs/places hides /Users/dr/=20= > Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/places > /Users/dr/Library/Preferences/Aquamacs Emacs/minibuffer-history =20 > hides /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/=20 > minibuffer-history > /Users/dr/Library/Preferences/Aquamacs Emacs/frame-positions hides /=20= > Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/frame-=20 > positions > /Users/dr/Library/Preferences/Aquamacs Emacs/customizations hides /=20 > Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/=20 > customizations > /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start =20= > hides /Library/Application Support/Aquamacs Emacs/SLIME/site-start > /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start =20= > hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/=20= > aquamacs/site-start > > Features: > (shadow sort mail-extr message ecomplete rfc822 mml mml-sec > password-cache mm-decode mm-bodies mm-encode mailcap mail-parse =20 > rfc2231 > rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc > mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash > mail-utils emacsbug jka-compr find-func python-mode info-look info > ansi-color compile animate eldoc slime-banner slime-asdf slime-fancy > slime-fontifying-fu slime-package-fu slime-references slime-xref-=20 > browser > slime-scratch slime-presentations slime-highlight-edits slime-fuzzy > slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc > slime-parse slime-repl slime derived apropos edmacro kmacro hideshow > hyperspec ess-help skeleton newcomment ess-toolbar ess-mous mouseme > browse-url ess-menu ess-swv ess-noweb noweb-font-lock-mode essl-bugs > essd-omg essl-omg essd-els essd-sas essl-sas essa-sas executable shell > essd-arc essd-vst essd-xls essl-lsp essd-sta essl-sta make-regexp > essd-sp6 essd-sp5 essd-sp3 essd-r essd-r-args essl-s ess-inf ess-utils > comint ess-mode noweb-mode ess ess-cust ess-emcs ess-site cc-mode > cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs > log-edit ring pcvs-util add-log diff-mode vc vc-dispatcher pp > multi-isearch vc-git which-func imenu slime-autoloads load-emacs-=20 > plugins > aquamacs-mode-defaults auctex-config server tex-site smart-dnd > aquamacs-aux savehist mouse-sel one-buffer-one-frame > smart-frame-positioning drews_init color-theme-autoloads saveplace > visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing > sendmail recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-=20 > mode > frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid > aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar > tabbar-window cl cl-19 tabbar easy-mmode cus-start cus-load > load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility =20 > filladapt > aquamacs-redo check-for-updates aquamacs-menu osx_defaults > aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools > aquamacs-macros parse-time timezone time-date paren delsel pc-select > cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp > byte-compile debug help-fns help-mode view image-file disp-table =20 > tooltip > ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar =20= > dnd > fontset image fringe lisp-mode register page menu-bar rfn-eshadow =20 > timer > select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu > font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan > thai tai-viet lao korean japanese hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese case-table epa-hook > jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces > cus-face files text-properties overlay md5 base64 format env code-=20 > pages > mule custom widget hashtable-print-readable backquote > make-network-process ns multi-tty emacs) > > Command line: (/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/MacOS/=20= > Aquamacs) > > PATH: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/=20= > opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/=20 > Versions/Current/bin:/opt/local/lib/postgresql82/bin:/opt/local/bin:/=20= > opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/=20 > local/git/bin:/usr/texbin:/usr/X11/bin:/Users/dr/Applications:/Users/=20= > dr/Applications/bin:/Users/dr/Projects/openccg/bin:/usr/texbin/=20 > powerpc-apple-darwin-current:/usr/local/git/bin:/Developer/Platforms/=20= > iPhoneFOSS.platform/Developer/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/=20= > texbin:/usr/local/texlive/2009/bin > > exec-path: (/opt/local/bin /opt/local/sbin /opt/local/bin /opt/local/=20= > sbin /opt/local/bin /opt/local/sbin /Library/Frameworks/=20 > Python.framework/Versions/Current/bin /opt/local/lib/postgresql82/=20 > bin /opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /=20 > usr/local/bin /usr/local/git/bin /usr/texbin /usr/X11/bin /Users/dr/=20= > Applications /Users/dr/Applications/bin /Users/dr/Projects/openccg/=20 > bin /usr/texbin/powerpc-apple-darwin-current /usr/local/git/bin /=20 > Developer/Platforms/iPhoneFOSS.platform/Developer/bin /usr/bin /bin /=20= > usr/sbin /sbin /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/MacOS/=20= > bin /usr/local/texlive/2009/bin) > >