diff options
| author | Chong Yidong | 2008-08-14 23:44:14 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-08-14 23:44:14 +0000 |
| commit | d478606111f9779a8745c3982e65acfb2cc50315 (patch) | |
| tree | e5459f629bbcc3a45e15369cf6f13c9c05e5c5a8 | |
| parent | 42e2427ae3384ec03306498ec2a68a889b452ad0 (diff) | |
| download | emacs-d478606111f9779a8745c3982e65acfb2cc50315.tar.gz emacs-d478606111f9779a8745c3982e65acfb2cc50315.zip | |
(lisp-complete-symbol): Supply match-size to display-completion-list.
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index da1b53cc06e..80bffb33638 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -687,18 +687,19 @@ considered." | |||
| 687 | (message "Making completion list...")) | 687 | (message "Making completion list...")) |
| 688 | (let ((list (all-completions pattern obarray predicate))) | 688 | (let ((list (all-completions pattern obarray predicate))) |
| 689 | (setq list (sort list 'string<)) | 689 | (setq list (sort list 'string<)) |
| 690 | (or (eq predicate 'fboundp) | 690 | (unless (eq predicate 'fboundp) |
| 691 | (let (new) | 691 | (let (new) |
| 692 | (while list | 692 | (dolist (compl list) |
| 693 | (setq new (cons (if (fboundp (intern (car list))) | 693 | (push (if (fboundp (intern compl)) |
| 694 | (list (car list) " <f>") | 694 | (list compl " <f>") |
| 695 | (car list)) | 695 | compl) |
| 696 | new)) | 696 | new)) |
| 697 | (setq list (cdr list))) | 697 | (setq list (nreverse new)))) |
| 698 | (setq list (nreverse new)))) | ||
| 699 | (if (> (length list) 1) | 698 | (if (> (length list) 1) |
| 700 | (with-output-to-temp-buffer "*Completions*" | 699 | (with-output-to-temp-buffer "*Completions*" |
| 701 | (display-completion-list list pattern)) | 700 | (display-completion-list |
| 701 | list pattern | ||
| 702 | (- beg (field-beginning)))) | ||
| 702 | ;; Don't leave around a completions buffer that's | 703 | ;; Don't leave around a completions buffer that's |
| 703 | ;; out of date. | 704 | ;; out of date. |
| 704 | (let ((win (get-buffer-window "*Completions*" 0))) | 705 | (let ((win (get-buffer-window "*Completions*" 0))) |