I like to bind comint-previous-matching-input-from-input to M-p, however the current behavior is to find the first match and move the point to the end of the line. The point should not be moved so that I can press M-p again to find the next match. This is how this command works in zsh and bash. Patch included. -- Le