Re: Running Python interpreter in Emacs

2005-07-02 Thread Rex Eastbourne
Yes, I knew that copying it to my root was a kludge. But between that and not having it work, I chose the former. (As you might be able to tell from my posts, I tried multiple things and was frustrated.) I tried putting quotes around "c:\program files\python24". It still didn't work. I chose to in

Re: Running Python interpreter in Emacs

2005-07-01 Thread John Machin
Rex Eastbourne wrote: > Yes! Thank you so much! (For some reason, by the way, I had to copy > python.exe to my c:/ directory, No, you did _not_ need to copy it there. You did _not_ need to copy it anywhere. Didn't copying an executable to your root directory [on any operating system] strike you

Re: Running Python interpreter in Emacs

2005-07-01 Thread Rex Eastbourne
Yes! Thank you so much! (For some reason, by the way, I had to copy python.exe to my c:/ directory, since the computer could never find the path in program files/python24. But when I did that, and used setq-py-python-command, it worked. I now have python.exe in two locations.) -- http://mail.pyth

Re: Running Python interpreter in Emacs

2005-07-01 Thread Piet van Oostrum
> "Rex Eastbourne" <[EMAIL PROTECTED]> (RE) wrote: >RE> I went to My Computer | Properties | Advanced | Environment Variables >RE> and added c:\program files\python24 to both the PYTHONPATH and Path >RE> variables. Still no luck. I don't know whether the path I'm talking >RE> about is the same

RE: Running Python interpreter in Emacs

2005-06-27 Thread Sells, Fred
binding nil) ;; ;; (require 'hilit19) ;; )) ;; ;; Hilit stuff ;; ;;(cond (window-system ;; (setq hilit-mode-enable-list '(not text-mode) ;; hilit-background-mode 'light ;; hilit-inhibit-hooks nil ;; hilit-inhibit-rebinding ni

Re: Running Python interpreter in Emacs

2005-06-26 Thread Philippe C. Martin
Hi, I was refering to the Windows $PATH which you can modify in the same dialog. To make sure it's done properly, open a console (cmd.exe) and type python Regards, Philippe Rex Eastbourne wrote: > I went to My Computer | Properties | Advanced | Environment Variables > and added c:\program fil

Re: Running Python interpreter in Emacs

2005-06-26 Thread Rex Eastbourne
I went to My Computer | Properties | Advanced | Environment Variables and added c:\program files\python24 to both the PYTHONPATH and Path variables. Still no luck. I don't know whether the path I'm talking about is the same as the $PATH you referred to, or whether I'm supposed to put python.exe exp

Re: Running Python interpreter in Emacs

2005-06-24 Thread Philippe C. Martin
I do not think there is any need to tell emacs where Python is; besides having python.exe in your Windows $PATH. Regards, Philippe Rex Eastbourne wrote: > I have the following in my .emacs: > > (add-to-list 'load-path "C:\Program Files\Python24") > > Is that enough? I didn't see anything s

Re: Running Python interpreter in Emacs

2005-06-24 Thread Rex Eastbourne
I have the following in my .emacs: (add-to-list 'load-path "C:\Program Files\Python24") Is that enough? I didn't see anything similar to that in your .emacs file, so I'm wondering if I'm supposed to add the path to my PATH elsewhere. Thanks, Rex -- http://mail.python.org/mailman/listinfo/pyth

Re: Running Python interpreter in Emacs

2005-06-24 Thread Philippe C. Martin
Hi, Since I'm a Linux user, I went through the following procedure: I installed emacs 20.7.1 and Python 2.4 I installed python-mode 1.0A into site-lisp I added c:\python24 to my path I put this .emacs on c:\ (see further down - I'm sure you don't need half of it) And everyhing is working fine:

Re: Running Python interpreter in Emacs

2005-06-23 Thread Rex Eastbourne
Hi Skip and Philippe. I added the path for Python to PATH, but I still get the same message (when I try executing the current buffer, I get the message: "The system cannot find the path specified." Philippe, I have the above lines of code in my .emacs file. As for my environment, I'm running Emac

Re: Running Python interpreter in Emacs

2005-06-23 Thread Philippe C. Martin
Hi, this is what I have: (autoload 'python-mode "python-mode" "Python mode." t) (setq auto-mode-alist (append '(("\\.\\(py\\)$" . python-mode)) auto-mode-alist)) Plus, you can always spawn a shell then call your script (if the point is to have access to the out

Re: Running Python interpreter in Emacs

2005-06-23 Thread Skip Montanaro
Rex> I'm interested in running a Python interpreter in Emacs. I have Rex> Python extensions for Emacs, and my python menu lists "C-c !" as Rex> the command to run the interpreter. Yet when I run it I get the Rex> message "Spawning Child Process: invalid argument." What do I need