Comment 5 for bug 961468

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 961468] Re: Bug in function py-separator-char

Am 21.03.2012 21:46, schrieb Richard Stanton:
>>
>> Strange.
>>
>> What does M-x describe-function py-separator-char RET tell?
>
> py-separator-char is an interactive Lisp function in `python-mode.el'.
>
> (py-separator-char)
>
> Return the file-path separator char from current machine.
> Returns char found.
>
>
>> May jump to the code then and send its definition?
>
>
> (defun py-separator-char ()
> "Return the file-path separator char from current machine.
> Returns char found. "
> (interactive)
> (let ((erg (replace-regexp-in-string "\n" "" (shell-command-to-string
> (concat py-shell-name " -c \"import os; print(os.sep)\"")))))
> (when (interactive-p) (message "Separator-char: %s" erg))
> erg))
>

Okay so far. However, it's a macro now, not a function.
Please pull and re-compile.