I've just verified my conjecture at the end of the last message. I patched python-mode.el (r927) as follows:
--- python-mode.el.r927 2012-04-08 21:04:09 -0700 +++ python-mode.el 2012-04-08 21:37:04 -0700 @@ -7240,7 +7240,9 @@ (sepchar (or sepchar (py-separator-char))) ;; (name-raw (or shell (py-choose-shell))) (name (py-buffer-name-prepare shell sepchar)) - (temp (make-temp-name shell)) + (temp (replace-regexp-in-string ":" "!" + (replace-regexp-in-string + "/" "!" (make-temp-name shell)))) (file (concat (expand-file-name temp py-temp-directory) ".py")) (filebuf (get-buffer-create file)) ;; (process-connection-type 'pty)
Now when I run experiment 2, I get the following message:
Wrote c:/temp/c!!python27!Scripts!ipython.bat12188rll.py
Not maybe the most elegant solution, but at least it works.
I've just verified my conjecture at the end of the last message. I patched python-mode.el (r927) as follows:
--- python-mode.el.r927 2012-04-08 21:04:09 -0700 char))) name-prepare shell sepchar)) regexp- in-string ":" "!" regexp- in-string connection- type 'pty)
+++ python-mode.el 2012-04-08 21:37:04 -0700
@@ -7240,7 +7240,9 @@
(sepchar (or sepchar (py-separator-
;; (name-raw (or shell (py-choose-shell)))
(name (py-buffer-
- (temp (make-temp-name shell))
+ (temp (replace-
+ (replace-
+ "/" "!" (make-temp-name shell))))
(file (concat (expand-file-name temp py-temp-directory) ".py"))
(filebuf (get-buffer-create file))
;; (process-
Now when I run experiment 2, I get the following message:
Wrote c:/temp/ c!!python27! Scripts! ipython. bat12188rll. py
Not maybe the most elegant solution, but at least it works.