From daniel.wolff at gmail.com Fri Oct 3 21:56:46 2008 From: daniel.wolff at gmail.com (Daniel Wolff) Date: Sat, 4 Oct 2008 03:56:46 +0800 Subject: [Python-mode] python.el can't find python to execute Message-ID: <48e6790e.034c6e0a.05db.fffffcc6@mx.google.com> Hello, I am trying to get python to work with GNU emacs 22.1 on windows. I am trying to get the default python.el that comes with emacs to work. In particular, I am having difficulty actually starting python with emacs. Eg. If I open a .py file and try to send it to the interpreter with C-c C-c, or try to run it directly, M-x run-python, or try to start it from the python menu ("Start Interpreter") - all three lead to the same message: "apply: Searching for program: no such file or directory, python." I have inspected the python.el file that ships with emacs and it looks fine. It seems to be simply sending the command "python" to the shell. But, I am obviously missing something as it cannot find it. Yes, python.exe is on my path. But, something a bit strange happens. If I fire up the shell within emacs, M-x shell, and try to start python with just "python", the shell echos the work "python" but then gives nothing. c:\Users\me>python python exit() after this I cannot get my shell back. Maybe these are unrelated problems. Any thoughts appreciated. Thank you, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsyzling at gmail.com Sat Oct 4 15:46:44 2008 From: dsyzling at gmail.com (dsyzling) Date: Sat, 04 Oct 2008 14:46:44 +0100 Subject: [Python-mode] python.el can't find python to execute In-Reply-To: <48e6790e.034c6e0a.05db.fffffcc6@mx.google.com> References: <48e6790e.034c6e0a.05db.fffffcc6@mx.google.com> Message-ID: Hi Daniel, Daniel Wolff wrote: > Hello, I am trying to get python to work with GNU emacs 22.1 on >windows. I am trying to get the default python.el that comes with emacs >to work. I'm using Emacs 22.2.1 on windows with both the Windows python and cygwin python. > In particular, I am having difficulty actually starting python with > emacs. Eg. If I open a .py file and try to send it to the interpreter >with C-c C-c, or try to run it directly, M-x run-python, or try to >start it from the python menu (?Start Interpreter?) ? all three lead to >the same message: ?apply: Searching for program: no such file or >directory, python.? Are you using the default Windows cmd.exe shell? If so try M-x shell and then: python -i That should work better for you. What does (getenv "PATH") - eval the expression in a scratch buffer or from the minibuffer it should list your paths. Is Python on your path? I had issues with default python.el with windows - specifically starting the cygwin python interpret though. You could try the updated/patched version of python.el mentioned here: http://www.emacswiki.org/cgi-bin/wiki/PythonMode Darren From daniel.wolff at gmail.com Sat Oct 4 19:08:02 2008 From: daniel.wolff at gmail.com (Daniel Wolff) Date: Sun, 5 Oct 2008 01:08:02 +0800 Subject: [Python-mode] python.el can't find python to execute Message-ID: <48e7a305.09876e0a.0f27.26e1@mx.google.com> Hello Darren, thank you for your reply. >Are you using the default Windows cmd.exe shell? Yes, and you are right, the "python -i" tip works beautifully. >Is Python on your path? Yes it is. The loveshack fix posted on emacswiki solved the problem. Gratefully, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From basti.wiesner at gmx.net Thu Oct 2 23:24:12 2008 From: basti.wiesner at gmx.net (Sebastian Wiesner) Date: Thu, 2 Oct 2008 23:24:12 +0200 Subject: [Python-mode] Fix for incorrectly highlighted triple quoted strings Message-ID: <200810022324.18731.basti.wiesner@gmx.net> Hi folks, python-mode incorrectly highlights triple quoted strings, which contain quotaion marks. The attached patch should provide a fix to this issue. I must admit, that I didn't write the code myself, so I won't be of much help in understanding this code. Hih Sebastian Wiesner -- Freedom is always the freedom of dissenters. (Rosa Luxemburg) -------------- next part -------------- A non-text attachment was scrubbed... Name: python-mode.patch Type: text/x-patch Size: 8183 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: