`comint-complete-from-history' uses new style completion interface as required by `completion-at-point-functions'.