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

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

emacs hangs (presumably) while parsing faulty python code


From: Cameron Christensen
Subject: emacs hangs (presumably) while parsing faulty python code
Date: Tue, 3 Apr 2007 23:01:40 -0600

1. C-xC-f voodoo.py
2. Cut and paste 
(I originally quoted code from http://blog.pettomato.com/index.php?paged=5)
3. Try to move around text... quickly hangs.

Notes:

o) I pasted the text into voodoo.noext and there is no hang.
o) This is the exact text I pasted:
   1.
      from twisted.protocols import basic
   2.
      from twisted.internet import reactor, protocol
   3.
       
   4.
      class MyReceiver(basic.LineReceiver):
   5.
       
   6.
        delimiter = '\0'
   7.
       
   8.
        def connectionMade(self):
   9.
          print "Got new client!"
  10.
          self.factory.clients.append(self)
  11.
             
  12.
        def connectionLost(self, reason):
  13.
          print "Lost a client!"
  14.
          self.factory.clients.remove(self)
  15.
       
  16.
        def lineReceived(self,line):
  17.
       
  18.
          if line == "<policy-file-request/>":
  19.
            print "\t sending policy file"
  20.
            self.sendLine("<?xml
version=\"1.0\"?><cross-domain-policy><allow-access-from domain=\"*\"
to-ports=\"8007\" /></cross-domain-policy>")
  21.
          else:
  22.
            print line
  23.
                     
  24.
      class XMLSocket(protocol.Factory):
  25.
       
  26.
        clients=[]
  27.
       
  28.
        def __init__(self, protocol=None):
  29.
          self.protocol=protocol
  30.
       
  31.
      def main():
  32.
       
  33.
        reactor.listenTCP(8007, XMLSocket(MyReceiver))
  34.
        reactor.run()
  35.
       
  36.
      if __name__ == '__main__':
  37.
        main()

------------------------------------------
<the line is not included>


In GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600)
 of 2007-01-01 on DTOP
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.1) --cflags  -O2 -g0 -march=i386
-mtune=i686 -pipe -IC:/gnuwin32/include_emacs -IC:/gnuwin32/lib
-IC:/gnuwin32/src --ldflags  -s '

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: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  display-time-mode: t
  which-function-mode: t
  encoded-kbd-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
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
t SPC b u g <return> C-x h C-g C-g C-h a s u b m i 
t <return> C-h a b u g s <backspace> <return> C-x o 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p 
C-p C-p C-p <return> C-x C-f ~ / . e m a c s <return> 
C-n C-s C-h C-h C-h C-g C-x 1 C-v C-v C-v C-x k <return> 
C-x k <return> M-x r e p o r t - e m a <tab> <retu
rn>

Recent messages:
Mark set [2 times]
Quit [2 times]
No apropos matches for `submit'
Loading help-mode...done
Type C-x 1 to remove help window.  
Loading help-fns...done
Type C-x 4 C-o RET to restore the other window.  
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done





reply via email to

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