• Juri Linkov's avatar
    Correctly restore original Isearch point. (Bug#4994) · 40637410
    Juri Linkov authored
    * isearch.el (isearch-mode): Move `isearch-push-state' after
    `(run-hooks 'isearch-mode-hook)'.
    (isearch-cancel): When `isearch-push-state-function' is defined,
    let-bind `isearch-cmds' to the first state (the last element of
    `isearch-cmds') and call `isearch-top-state' (it calls pop-state
    function and restores the original point).  Otherwise, move point
    to `isearch-opoint'.
    40637410
isearch.el 105 KB