2000-11-22 Miles Bader <miles@gnu.org>
+ * isearch.el (isearch-original-minibuffer-message-timeout): New var.
+ (isearch-mode): Set `minibuffer-message-timeout' to nil, after
+ stashing away its original value.
+ (isearch-edit-string): Temporarily restore `minibuffer-message-timeout'
+ in the recursive edit.
+ Bind `isearch-original-minibuffer-message-timeout' to protect it.
+ (isearch-done): Restore `minibuffer-message-timeout'.
+
* cus-start.el: Remove entry for `mode-line-inverse-video'.
2000-11-21 Stefan Monnier <monnier@cs.yale.edu>
; case in the search string is ignored.
(defvar isearch-case-fold-search nil)
+;; Used to save default value while isearch is active
+(defvar isearch-original-minibuffer-message-timeout nil)
+
(defvar isearch-adjusted nil)
(defvar isearch-slow-terminal-mode nil)
;;; If t, using a small window.
isearch-opened-overlays nil
isearch-input-method-function input-method-function
isearch-input-method-local-p (local-variable-p 'input-method-function)
- regexp-search-ring-yank-pointer nil)
+ regexp-search-ring-yank-pointer nil
+
+ ;; Save the original value of `minibuffer-message-timeout', and
+ ;; set it to nil so that isearch's messages don't get timed out.
+ isearch-original-minibuffer-message-timeout minibuffer-message-timeout
+ minibuffer-message-timeout nil)
;; We must bypass input method while reading key. When a user type
;; printable character, appropriate input method is turned on in
;; If NOPUSH is non-nil, we don't push the string on the search ring.
(setq overriding-terminal-local-map nil)
;; (setq pre-command-hook isearch-old-pre-command-hook) ; for lemacs
+ (setq minibuffer-message-timeout isearch-original-minibuffer-message-timeout)
(isearch-dehighlight t)
(isearch-lazy-highlight-cleanup)
(let ((found-start (window-start (selected-window)))
(isearch-recursive-edit isearch-recursive-edit)
;; Save current configuration so we can restore it here.
(isearch-window-configuration (current-window-configuration))
+
+ ;; Temporarily restore `minibuffer-message-timeout'.
+ (minibuffer-message-timeout
+ isearch-original-minibuffer-message-timeout)
+ (isearch-original-minibuffer-message-timeout
+ isearch-original-minibuffer-message-timeout)
)
;; Actually terminate isearching until editing is done.