diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index ddedbdb..d6bb724 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1609,7 +1609,8 @@ the output." (setq output-buffer (concat output-buffer string)) ""))))) (python-shell-send-string string process msg) - (accept-process-output process) + (with-local-quit + (accept-process-output process)) (replace-regexp-in-string (if (> (length python-shell-prompt-output-regexp) 0) (format "\n*%s$\\|^%s\\|\n$"