]> git.eshelyaron.com Git - emacs.git/commitdiff
(icomplete-tidy, icomplete-exhibit): Check that
authorKim F. Storm <storm@cua.dk>
Tue, 28 Nov 2006 09:22:13 +0000 (09:22 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 28 Nov 2006 09:22:13 +0000 (09:22 +0000)
icomplete-mode is enabled.

lisp/icomplete.el

index 6687c13275b11792005539619154cb43c3a164ae..8c1ee3ad64ce77ea7f0ca1b92f6716b229146aa6 100644 (file)
@@ -216,7 +216,7 @@ Usually run by inclusion in `minibuffer-setup-hook'."
   "Remove completions display \(if any) prior to new user input.
 Should be run in on the minibuffer `pre-command-hook'.  See `icomplete-mode'
 and `minibuffer-setup-hook'."
-  (when icomplete-eoinput
+  (when (and icomplete-mode icomplete-eoinput)
 
     (unless (>= icomplete-eoinput (point-max))
       (let ((buffer-undo-list t)) ; prevent entry
@@ -230,7 +230,7 @@ and `minibuffer-setup-hook'."
   "Insert icomplete completions display.
 Should be run via minibuffer `post-command-hook'.  See `icomplete-mode'
 and `minibuffer-setup-hook'."
-  (when (icomplete-simple-completing-p)
+  (when (and icomplete-mode (icomplete-simple-completing-p))
     (save-excursion
       (goto-char (point-max))
       ;; Register the end of input, so we know where the extra stuff