aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Francoise2005-12-22 07:41:04 +0000
committerRomain Francoise2005-12-22 07:41:04 +0000
commit5e6882903d77547289bddb7cac2983f08f62c080 (patch)
tree2cd6a673b3b40970e2b24dae164051da75fd5d52
parent9c84131648cf906624d632f2e2b25999d9ba71c7 (diff)
downloademacs-5e6882903d77547289bddb7cac2983f08f62c080.tar.gz
emacs-5e6882903d77547289bddb7cac2983f08f62c080.zip
(lisp-complete-symbol): Don't print progress messages if in the
minibuffer.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/lisp.el49
2 files changed, 32 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 303099f0412..a7fc9d48f2d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-12-22 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * emacs-lisp/lisp.el (lisp-complete-symbol): Don't print progress
4 messages if in the minibuffer.
5
12005-12-21 Stefan Monnier <monnier@iro.umontreal.ca> 62005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/flyspell.el (flyspell-check-word-p): Don't quote - in a RE. 8 * textmodes/flyspell.el (flyspell-check-word-p): Don't quote - in a RE.
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index f8a5b0b019e..30505c95223 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -572,29 +572,34 @@ considered."
572 ((not (string= pattern completion)) 572 ((not (string= pattern completion))
573 (delete-region beg end) 573 (delete-region beg end)
574 (insert completion) 574 (insert completion)
575 ;; Don't leave around a completions buffer that's outofdate. 575 ;; Don't leave around a completions buffer that's out of date.
576 (let ((win (get-buffer-window "*Completions*" 0))) 576 (let ((win (get-buffer-window "*Completions*" 0)))
577 (if win (with-selected-window win (bury-buffer))))) 577 (if win (with-selected-window win (bury-buffer)))))
578 (t 578 (t
579 (message "Making completion list...") 579 (let ((minibuf-is-in-use
580 (let ((list (all-completions pattern obarray predicate))) 580 (eq (minibuffer-window) (selected-window))))
581 (setq list (sort list 'string<)) 581 (unless minibuf-is-in-use
582 (or (eq predicate 'fboundp) 582 (message "Making completion list..."))
583 (let (new) 583 (let ((list (all-completions pattern obarray predicate)))
584 (while list 584 (setq list (sort list 'string<))
585 (setq new (cons (if (fboundp (intern (car list))) 585 (or (eq predicate 'fboundp)
586 (list (car list) " <f>") 586 (let (new)
587 (car list)) 587 (while list
588 new)) 588 (setq new (cons (if (fboundp (intern (car list)))
589 (setq list (cdr list))) 589 (list (car list) " <f>")
590 (setq list (nreverse new)))) 590 (car list))
591 (if (> (length list) 1) 591 new))
592 (with-output-to-temp-buffer "*Completions*" 592 (setq list (cdr list)))
593 (display-completion-list list pattern)) 593 (setq list (nreverse new))))
594 ;; Don't leave around a completions buffer that's outofdate. 594 (if (> (length list) 1)
595 (let ((win (get-buffer-window "*Completions*" 0))) 595 (with-output-to-temp-buffer "*Completions*"
596 (if win (with-selected-window win (bury-buffer)))))) 596 (display-completion-list list pattern))
597 (message "Making completion list...%s" "done"))))))) 597 ;; Don't leave around a completions buffer that's
598 ;; out of date.
599 (let ((win (get-buffer-window "*Completions*" 0)))
600 (if win (with-selected-window win (bury-buffer))))))
601 (unless minibuf-is-in-use
602 (message "Making completion list...%s" "done")))))))))
598 603
599;; arch-tag: aa7fa8a4-2e6f-4e9b-9cd9-fef06340e67e 604;; arch-tag: aa7fa8a4-2e6f-4e9b-9cd9-fef06340e67e
600;;; lisp.el ends here 605;;; lisp.el ends here