Function: eshell-prepare-for-search

eshell-prepare-for-search is a byte-compiled function defined in em-hist.el.gz.

Signature

(eshell-prepare-for-search)

Documentation

Make sure the old history file is at the beginning of the buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-prepare-for-search ()
  "Make sure the old history file is at the beginning of the buffer."
  (unless (get-text-property (point-min) 'history)
    (save-excursion
      (goto-char (point-min))
      (let ((end (copy-marker (point) t)))
	(insert-file-contents eshell-history-file-name)
	(set-text-properties (point-min) end
			     '(history t invisible t))))))