I have a function consisting of 2 commands.
(defun my-function ()
(interactive)
(call-interactively 'run-python) ; <-- Something is not run after this line.
(call-interactively 'python-shell-send-buffer))
When executing the 2 commands manually, they work fine. However, when executing the function above, I get
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__PYTHON_EL_eval_file' is not defined
>>>
I suspect some hooks are not run after the run-python
line and they are delayed until the whole function is completed. Is there a way to make this work?