(isearch-mode): Maybe make minibuffer frame visible and/or raise it.
authorRichard M. Stallman <rms@gnu.org>
Sat, 7 Dec 1996 20:31:38 +0000 (20:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 7 Dec 1996 20:31:38 +0000 (20:31 +0000)
lisp/isearch.el

index c48c141..1da6f0d 100644 (file)
@@ -467,6 +467,14 @@ is treated as a regexp.  See \\[isearch-forward] for more info."
   (setq isearch-window-configuration
        (if isearch-slow-terminal-mode (current-window-configuration) nil))
 
+  ;; Maybe make minibuffer frame visible and/or raise it.
+  (let ((frame (window-frame (minibuffer-window))))
+    (if (not (memq (frame-live-p frame) '(nil t)))
+       (progn
+         (make-frame-visible frame)
+         (if minibuffer-auto-raise
+             (raise-frame frame)))))
+
   (setq        isearch-mode " Isearch")  ;; forward? regexp?
   (force-mode-line-update)