From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#6057: 23: py-indent-region broken Date: Tue, 27 Apr 2010 21:50:52 -0400 Message-ID: <8554C113-BAB1-4A76-BA32-9AB2FC7FE9B7@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272419756 28479 80.91.229.12 (28 Apr 2010 01:55:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 01:55:56 +0000 (UTC) Cc: warren harris To: 6057@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 28 03:55:52 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 1O6wVD-0003T5-0F for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Apr 2010 03:55:52 +0200 Original-Received: from localhost ([127.0.0.1]:35875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6wVB-0004KA-UL for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 21:55:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6wV5-0004Gn-7o for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:55:43 -0400 Original-Received: from [140.186.70.92] (port=54794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6wV3-0004DX-3V for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:55:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6wV1-0000gZ-FK for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:55:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51341) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wV1-0000gV-Co for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:55:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O6wRW-00065w-67; Tue, 27 Apr 2010 21:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: warrensomebody@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2010 01:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6057 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs X-Debbugs-Original-Xcc: warren harris Original-Received: via spool by submit@debbugs.gnu.org id=B.127241948123413 (code B ref -1); Wed, 28 Apr 2010 01:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2010 01:51:21 +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 1O6wQq-00065Z-Bf for submit@debbugs.gnu.org; Tue, 27 Apr 2010 21:51:21 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wQm-00065T-TD for submit@debbugs.gnu.org; Tue, 27 Apr 2010 21:51:19 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:57929) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O6wQg-00064r-Pu for submit@debbugs.gnu.org; Tue, 27 Apr 2010 21:51:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6wQd-0001lB-D9 for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:51:07 -0400 Original-Received: from [140.186.70.92] (port=35836 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6wQY-0001ji-8I for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6wQT-0008P0-26 for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:51:00 -0400 Original-Received: from mail-qy0-f194.google.com ([209.85.221.194]:47345) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6wQS-0008Ov-Um for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2010 21:50:57 -0400 Original-Received: by qyk32 with SMTP id 32so10553366qyk.12 for ; Tue, 27 Apr 2010 18:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:references:to:message-id :mime-version:x-mailer; bh=Le+Zld6IzZiEbnruNm4g4DYbfVrtXFV02oxTtexPXyc=; b=jsbQ60hJd8SWg8rnd6MOu7gbEreydad1YouAC1WZCNIVAfnSZPOOvLNJ3z0nWfGwyv SA6IcpGSN92AjaQh0X2ikzmtpzrDuAFcorqwUBMSkmwRSrq1IzshCljG8pZj2wbw/+8E sLGJYtcsFdjl5ouECZclWyputRiF045OkaZRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:references :to:message-id:mime-version:x-mailer; b=E5vZnUcUSBcH0EA6/6tFQ90NUcI5S5sqtFXIXb1aIrNzuL6EIRP5f2eWoGe0T3s7wK zbp6ysKX7M3a5LNOpdByG8Hw1ZvbZUUhTLiNxxTjvZqVQVDs5uaPZP0hXO5//5qQfm4z +BdrVri37R3HTxmFecCmY5+79aMS5CN6P4FNs= Original-Received: by 10.229.234.68 with SMTP id kb4mr457488qcb.103.1272419456080; Tue, 27 Apr 2010 18:50:56 -0700 (PDT) Original-Received: from [192.168.1.42] (pool-72-95-200-56.pitbpa.east.verizon.net [72.95.200.56]) by mx.google.com with ESMTPS id f5sm2902190qcg.14.2010.04.27.18.50.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Apr 2010 18:50:55 -0700 (PDT) X-Mailer: Apple Mail (2.1078) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Apr 2010 21:52:02 -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:36576 Archived-At: 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 = indented block of code that was pasted there. C-c TAB should now 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 = preserved across short lines > 3. indent-region in python mode does nothing. (This happens in 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-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 =20 =20 =20 =20 ^H F =20 =20 =20 ^C =20 ^C =20 ^C =20 E L S E=20 : P R I N T SPC 6 =20 P R I N T SPC 8 I F SPC 1 =3D 1 : =20 P R I N T SPC 6 =20 ^C =20 =20 ^C =20 =20 =20 =20 =20 ^C > =20 I F SPC 0 =3D 0 : =20 =20 ^C ^C =20 =E2=8C=98Z =20 =20 ^C < ^C =20 ^C =20 SPC =E2=8C=98Z =E2=8C=98A =E2=8C=98C = =20 =20 I F SPC 0 =3D 0 : =20 ^C > =E2=8C=98A =E2=8C=98C = =20 ^C=20 =E2=8C=98Z =20 ^C ^C =20 =E2=8C=98Z =E2=8C=98Z =E2=8C=98Z =E2=8C=98Z = =20 ^C =20 Recent messages: Undo... Undo! Undo... Undo! Undo... Undo! Undo... Undo! Undo... Undo! Load-path shadows: /Users/dr/Library/Preferences/Aquamacs Emacs/Recent Files hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Recent = Files /Users/dr/Library/Preferences/Aquamacs Emacs/Preferences hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Preferences /Users/dr/Library/Preferences/Aquamacs Emacs/places hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/places /Users/dr/Library/Preferences/Aquamacs Emacs/minibuffer-history hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/minibuffer-history /Users/dr/Library/Preferences/Aquamacs Emacs/frame-positions hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/frame-positions /Users/dr/Library/Preferences/Aquamacs Emacs/customizations hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/customizations /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides /Library/Application Support/Aquamacs Emacs/SLIME/site-start /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides = /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/aquamacs/si= te-start Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse 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-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-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-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 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 tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow 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-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/Aquamacs) PATH: = /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/b= in:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/Current/b= in:/opt/local/lib/postgresql82/bin:/opt/local/bin:/opt/local/sbin:/usr/bin= :/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X= 11/bin:/Users/dr/Applications:/Users/dr/Applications/bin:/Users/dr/Project= s/openccg/bin:/usr/texbin/powerpc-apple-darwin-current:/usr/local/git/bin:= /Developer/Platforms/iPhoneFOSS.platform/Developer/bin:/usr/bin:/bin:/usr/= sbin:/sbin:/usr/texbin:/usr/local/texlive/2009/bin exec-path: (/opt/local/bin /opt/local/sbin /opt/local/bin = /opt/local/sbin /opt/local/bin /opt/local/sbin = /Library/Frameworks/Python.framework/Versions/Current/bin = /opt/local/lib/postgresql82/bin /opt/local/bin /opt/local/sbin /usr/bin = /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin /usr/texbin = /usr/X11/bin /Users/dr/Applications /Users/dr/Applications/bin = /Users/dr/Projects/openccg/bin /usr/texbin/powerpc-apple-darwin-current = /usr/local/git/bin = /Developer/Platforms/iPhoneFOSS.platform/Developer/bin /usr/bin /bin = /usr/sbin /sbin = /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/MacOS/bin = /usr/local/texlive/2009/bin)=