>>650
自分でこんなの考えてみました。こんなんでいいんだろうか..。とりあえず動きました。
(defun shell-input-waiting-p (buffer-name)
(interactive)
(with-current-buffer buffer-name
(save-excursion
(comint-goto-process-mark)
(not (bolp)))))