# HG changeset patch # User Glenn Morris # Date 1235109825 0 # Node ID c365db646335c9693a611e2b69b39dae32f3c06c # Parent ac77f094f3e943af1ab2c7f62f0186cc1a7484ae (apropos-library): Remove the element with null filename, if present, from the completion list. diff -r ac77f094f3e9 -r c365db646335 lisp/ChangeLog --- a/lisp/ChangeLog Fri Feb 20 05:07:49 2009 +0000 +++ b/lisp/ChangeLog Fri Feb 20 06:03:45 2009 +0000 @@ -1,5 +1,8 @@ 2009-02-20 Glenn Morris + * apropos.el (apropos-library): Remove the element with null filename, + if present, from the completion list. + * mail/rmail.el (rmail-speedbar-buttons): Only add regular files. (rmail-speedbar-find-file): Use rmail rather than find-file. diff -r ac77f094f3e9 -r c365db646335 lisp/apropos.el --- a/lisp/apropos.el Fri Feb 20 05:07:49 2009 +0000 +++ b/lisp/apropos.el Fri Feb 20 06:03:45 2009 +0000 @@ -569,17 +569,18 @@ FILE should be one of the libraries currently loaded and should thus be found in `load-history'." (interactive - (let ((libs - (nconc (delq nil - (mapcar - (lambda (l) - (setq l (file-name-nondirectory l)) - (while - (not (equal (setq l (file-name-sans-extension l)) - l))) - l) - (mapcar 'car load-history))) - (mapcar 'car load-history)))) + (let* ((libs (delq nil (mapcar 'car load-history))) + (libs + (nconc (delq nil + (mapcar + (lambda (l) + (setq l (file-name-nondirectory l)) + (while + (not (equal (setq l (file-name-sans-extension l)) + l))) + l) + libs)) + libs))) (list (completing-read "Describe library: " libs nil t)))) (let ((symbols nil) ;; (autoloads nil)