emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with python indent


From: Brian Caruso
Subject: Problem with python indent
Date: Fri, 21 Apr 2006 17:14:27 -0400
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

From: Brian Caruso
To: address@hidden
Subject: Problem with python indent
--text follows this line--

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I was editing some pyton and hit the tab button.  Then emacs
started processing and 'froze up'.  C-g brought it out.

It happended when I hit tab at the start of the line
that has [ ["App", "SELECT a.appi ...

#! /usr/bin/env python

# mysql2xml.py
#
# dumps the contents of the pac inventory db to xml files.
#
# NOTICE: this clears all *.xml files out of the table directories.
# see makeDirForTable()
#
# 2006-04-13

##
# Issues: hardware table has no good id so the Hardware directory has rownumbers as file names. yuck
# Network table has a good machine name to other id mapping.
#

import commands
import os
import MySQLdb
import codecs
import types
from Ft.Xml.Domlette import Print, PrettyPrint
from xml.sax import saxutils

def getColumnNames(cursor):
        desc = cursor.description
        columns = [ ]
        for col in desc:
            columns.append( col[0] )
        return columns

##### Parameters to set ##############

xmlDir = './xml/'
xmlTemplate = "<?xml version='1.0' encoding='UTF-8'?><%sIndex/>"

#only tables in this list will be extracted
fullQueries = ["Apps","Hardware"];

# tablename -> ["SELECT query for all rows in table","columnName of key"]
# the value of the key will be used to make a file name
indexQueries = {
    "Apps":["SELECT * FROM Apps","AppID"],
"Hardware":["SELECT * from Hardware h join Network n on h.machineid = n.machineid ","NetworkID"]
}

#  "Apps":"SELECT AppId, Name from Apps",\
#  "Hardware":"SELECT MachineID, OSName, UserName FROM Hardware" }

# tablename -> [ ["query templates for subqueries", ['columnkey1','columnkey2'...] ] , ... ]
subQueries =  {
"Apps": [ [ "Result", "SELECT MachineID FROM Results where AppId = '%s'", ["AppID" ] ] ],
     "Hardware":
[ ["App", "SELECT a.appid, a.name from Results r join Apps a on r.appid = a.appid where r.machineid = '%s'", ["MachineID"]] ] }


#stick this at the end of index root elements
indexPostfix="Index"


If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.0.50/etc/DEBUG for instructions.


In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-04-21 on caruso
X server distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure '--with-xft=yes''

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
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  display-time-mode: t
  tooltip-mode: t
  auto-compression-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
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
l C-s C-s <home> <up> <S-down> <S-down> <S-down> <S-down>
<S-down> <S-down> <delete> <backspace> <down> <down>
<down> <down> C-x C-s <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <help-echo> <up> <end> <backspace>
<down> <end> <backspace> <down> <end> <backspace> <down>
<down> <down> <down> <down> <down> <down> <backspace>
<down> <end> <backspace> <down> <end> <C-left> <C-left>
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left>
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left>
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left>
<C-left> <C-left> <C-left> <C-right> <C-right> <left>
<left> <left> <left> <left> <left> <left> <return>
<tab> <backspace> <backspace> <tab> M-x r e p o r t
SPC e <tab> <return>

Recent messages:
Auto-saving...done
Wrote /home/bdc34/src/mann/mdb2xml/mysql2xml.py
Mark saved where search started
Mark set [10 times]
Mark saved where search started
Mark set
Wrote /home/bdc34/src/mann/mdb2xml/mysql2xml.py
Auto-saving...done
Quit [2 times]
Loading emacsbug...done

--
Brian Caruso
Programmer/Analyst
Albert R. Mann Library
Cornell University
Ithaca, NY 14853
(607)255-7705




reply via email to

[Prev in Thread] Current Thread [Next in Thread]