diff options
| author | Glenn Morris | 2009-02-20 06:03:45 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-20 06:03:45 +0000 |
| commit | 475293229574efccb8798f357aca135a441017f9 (patch) | |
| tree | 41aaa8931bd1ff4aacaf672f88245ce56717c34d | |
| parent | bd26454c2457fb4ad3f85d33025ab4e4e6dd324b (diff) | |
| download | emacs-475293229574efccb8798f357aca135a441017f9.tar.gz emacs-475293229574efccb8798f357aca135a441017f9.zip | |
(apropos-library): Remove the element with null filename, if present,
from the completion list.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/apropos.el | 23 |
2 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d594cae6e7..9a2e46c9191 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-20 Glenn Morris <rgm@gnu.org> | 1 | 2009-02-20 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * apropos.el (apropos-library): Remove the element with null filename, | ||
| 4 | if present, from the completion list. | ||
| 5 | |||
| 3 | * mail/rmail.el (rmail-speedbar-buttons): Only add regular files. | 6 | * mail/rmail.el (rmail-speedbar-buttons): Only add regular files. |
| 4 | (rmail-speedbar-find-file): Use rmail rather than find-file. | 7 | (rmail-speedbar-find-file): Use rmail rather than find-file. |
| 5 | 8 | ||
diff --git a/lisp/apropos.el b/lisp/apropos.el index 7a427b0c6f1..91e763185b6 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -569,17 +569,18 @@ Returns list of symbols and documentation found." | |||
| 569 | FILE should be one of the libraries currently loaded and should | 569 | FILE should be one of the libraries currently loaded and should |
| 570 | thus be found in `load-history'." | 570 | thus be found in `load-history'." |
| 571 | (interactive | 571 | (interactive |
| 572 | (let ((libs | 572 | (let* ((libs (delq nil (mapcar 'car load-history))) |
| 573 | (nconc (delq nil | 573 | (libs |
| 574 | (mapcar | 574 | (nconc (delq nil |
| 575 | (lambda (l) | 575 | (mapcar |
| 576 | (setq l (file-name-nondirectory l)) | 576 | (lambda (l) |
| 577 | (while | 577 | (setq l (file-name-nondirectory l)) |
| 578 | (not (equal (setq l (file-name-sans-extension l)) | 578 | (while |
| 579 | l))) | 579 | (not (equal (setq l (file-name-sans-extension l)) |
| 580 | l) | 580 | l))) |
| 581 | (mapcar 'car load-history))) | 581 | l) |
| 582 | (mapcar 'car load-history)))) | 582 | libs)) |
| 583 | libs))) | ||
| 583 | (list (completing-read "Describe library: " libs nil t)))) | 584 | (list (completing-read "Describe library: " libs nil t)))) |
| 584 | (let ((symbols nil) | 585 | (let ((symbols nil) |
| 585 | ;; (autoloads nil) | 586 | ;; (autoloads nil) |