New completion function `comint-complete-from-history' use previous input as completion candidates.