Function: eshell-test-imatch
eshell-test-imatch is a byte-compiled function defined in
em-hist.el.gz.
Signature
(eshell-test-imatch)
Documentation
If isearch match good, put point at the beginning and return non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-test-imatch ()
"If isearch match good, put point at the beginning and return non-nil."
(if (get-text-property (point) 'history)
(progn (beginning-of-line) t)
(let ((before (point)))
(beginning-of-line)
(if (and (not (bolp))
(<= (point) before))
t
(if isearch-forward
(progn
(end-of-line)
(forward-char))
(beginning-of-line)
(backward-char))))))