"C-s M-p" brings the tip of the search ring.
authorJuri Linkov <juri@jurta.org>
Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)
committerJuri Linkov <juri@jurta.org>
Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)
commit11dcdbb283eb9efddf73939d3c3d12404731833f
tree1a3b0f7e6ebed11057f00ed563247810f546e52a
parentf67cdd7f258347b3fe21fa3c8bfc335decad02d6
"C-s M-p" brings the tip of the search ring.

* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

Fixes: debbugs:9185
lisp/ChangeLog
lisp/isearch.el