]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-complete-symbol): Don't print progress messages if in the
authorRomain Francoise <romain@orebokech.com>
Thu, 22 Dec 2005 07:41:04 +0000 (07:41 +0000)
committerRomain Francoise <romain@orebokech.com>
Thu, 22 Dec 2005 07:41:04 +0000 (07:41 +0000)
minibuffer.

lisp/ChangeLog
lisp/emacs-lisp/lisp.el

index 303099f04129d2288cf37348508337172df7fdb5..a7fc9d48f2dca084fffecd552e14907e1e713c98 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-22  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * emacs-lisp/lisp.el (lisp-complete-symbol): Don't print progress
+       messages if in the minibuffer.
+
 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * textmodes/flyspell.el (flyspell-check-word-p): Don't quote - in a RE.
index f8a5b0b019e5a796f5d70b23dc4000b165f30d81..30505c95223a6761f64eb4870cdf499c3be018bd 100644 (file)
@@ -572,29 +572,34 @@ considered."
              ((not (string= pattern completion))
               (delete-region beg end)
               (insert completion)
-               ;; Don't leave around a completions buffer that's outofdate.
-               (let ((win (get-buffer-window "*Completions*" 0)))
-                 (if win (with-selected-window win (bury-buffer)))))
+              ;; Don't leave around a completions buffer that's out of date.
+              (let ((win (get-buffer-window "*Completions*" 0)))
+                (if win (with-selected-window win (bury-buffer)))))
              (t
-              (message "Making completion list...")
-              (let ((list (all-completions pattern obarray predicate)))
-                (setq list (sort list 'string<))
-                (or (eq predicate 'fboundp)
-                    (let (new)
-                      (while list
-                        (setq new (cons (if (fboundp (intern (car list)))
-                                            (list (car list) " <f>")
-                                          (car list))
-                                        new))
-                        (setq list (cdr list)))
-                      (setq list (nreverse new))))
-                (if (> (length list) 1)
-                    (with-output-to-temp-buffer "*Completions*"
-                      (display-completion-list list pattern))
-                   ;; Don't leave around a completions buffer that's outofdate.
-                   (let ((win (get-buffer-window "*Completions*" 0)))
-                     (if win (with-selected-window win (bury-buffer))))))
-              (message "Making completion list...%s" "done")))))))
+              (let ((minibuf-is-in-use
+                     (eq (minibuffer-window) (selected-window))))
+                (unless minibuf-is-in-use
+                  (message "Making completion list..."))
+                (let ((list (all-completions pattern obarray predicate)))
+                  (setq list (sort list 'string<))
+                  (or (eq predicate 'fboundp)
+                      (let (new)
+                        (while list
+                          (setq new (cons (if (fboundp (intern (car list)))
+                                              (list (car list) " <f>")
+                                            (car list))
+                                          new))
+                          (setq list (cdr list)))
+                        (setq list (nreverse new))))
+                  (if (> (length list) 1)
+                      (with-output-to-temp-buffer "*Completions*"
+                        (display-completion-list list pattern))
+                    ;; Don't leave around a completions buffer that's
+                    ;; out of date.
+                    (let ((win (get-buffer-window "*Completions*" 0)))
+                      (if win (with-selected-window win (bury-buffer))))))
+                (unless minibuf-is-in-use
+                  (message "Making completion list...%s" "done")))))))))
 
 ;; arch-tag: aa7fa8a4-2e6f-4e9b-9cd9-fef06340e67e
 ;;; lisp.el ends here