emacs python-mode bug #1021885
Torsten Marek
torsten.marek at student.uni-tuebingen.de
Sat Oct 2 13:19:29 EDT 2004
kaba schrieb:
> Marcio Rosa da Silva wrote:
>
>> Hi!
>>
>> I am having some problem with python-emacs mode. I found a bug related
>> to it at sf.net:
>>
>> bug #1021885 shell gets set to 'cpython':
>>
>> http://sourceforge.net/tracker/?group_id=86916&atid=581349&func=detail&aid=1021885
>>
>>
>> The problem is that when I try to run the script using C-c C-c, I get
>> the following message:
>>
>> "Wrong type argument: sequencep, cpython"
>>
>> My question is if there is anyone that found a workaround to this
>> problem?
>>
>> Thanks!
>>
>> Marcio
>
>
> Hi Marcio,
> the bug is in 'py-execute-region'
> the patch below should fix it.
>
> ***************
> *** 1679,1686 ****
> (insert-buffer-substring cur start end)
> ;; Set the shell either to the #! line command, or to the
> ;; py-which-shell buffer local variable.
> ! (setq shell (or (py-choose-shell-by-shebang)
> ! (py-choose-shell-by-import)
> py-which-shell))))
> (cond
> ;; always run the code in its own asynchronous subprocess
> --- 1679,1686 ----
> (insert-buffer-substring cur start end)
> ;; Set the shell either to the #! line command, or to the
> ;; py-which-shell buffer local variable.
> ! (setq shell (or (car (rassoc (quote (py-choose-shell-by-shebang))
> py-shell-alist))
> ! (car (rassoc (quote (py-choose-shell-by-import))
> py-shell-alist))
> py-which-shell))))
> (cond
> ;; always run the code in its own asynchronous subprocess
>
Thank you very much!
greetings
Torsten
More information about the Python-list
mailing list