Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: mmm-mode, python-mode and doctest-mode?

Reply
Thread Tools

Re: mmm-mode, python-mode and doctest-mode?

 
 
Neal Becker
Guest
Posts: n/a
 
      08-09-2007
Edward Loper wrote:

>> Anyone testing on xemacs? I tried it, and C-c C-c sent xemacs into an
>> infinite loop (apparantly).

>
> It works fine for me in XEmacs 21.4 (patch 17) (i386-debian-linux,
> Mule). If you could answer a few questions, it might help me track down
> the problem:
>
> - What version of xemacs are you running?
> - What version of doctest-mode are you running (0.4 or 0.5)?
> - Are you using doctest-mode by itself, or in combination with another
> mode (via mmm-mode)?
> - Does pressing control-g (possibly repeatedly) cause it to become
> unstuck?
> - Does it always freeze when you hit C-c C-c? Or does it depend on the
> contents of the buffer? Does it freeze if you run it in an empty
> buffer?
>
> You could try changing the value of doctest-python-command, to see if
> that helps -- "M-x customize-variable doctest-python-command". Set it
> to the full path to a Python interpreter.
>
> Thanks,
> -Edward


Value: "21.5 (beta2 \"fuki\" XEmacs Lucid"

I tested with 'hello.py', which is attached.

Load hello.py. M-x mmm-mode. Then move cursor to the highlighted test
region (the triple quoted doctest). C-h k C-c C-c says 'doctest-execute'.
good. Now C-c C-c sends xemacs into an infinite loop.

hello.py---------------
import math

'''
>>> print 2 + 2

4
'''

def _test():
import doctest
doctest.testmod()

if __name__ == "__main__":
_test()


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57