How can I override interactive input with defadvice
in elisp?
For example, I am trying to stop ansi-term
from prompting for input with the following:
(defadvice ansi-term (around kill-interactive activate)
(let ((explicit-shell-file-name "/bin/bash"))
(ad-set-arg 0 explicit-shell-file-name)
(deactivate-input-method)
ad-do-it))
But, it still prompts even though explicit-shell-file-name
is set correctly.