Function: isearch--momentary-message

isearch--momentary-message is a byte-compiled function defined in isearch.el.gz.

Signature

(isearch--momentary-message STRING &optional SECONDS)

Documentation

Print STRING at the end of the isearch prompt for 1 second.

The optional argument SECONDS overrides the number of seconds.

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch--momentary-message (string &optional seconds)
  "Print STRING at the end of the isearch prompt for 1 second.
The optional argument SECONDS overrides the number of seconds."
  (let ((message-log-max nil))
    (message "%s%s%s"
             (isearch-message-prefix nil isearch-nonincremental)
             isearch-message
             (apply #'propertize (format " [%s]" string)
                    isearch-message-properties)))
  (sit-for (or seconds 1)))