unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* apropos-library: Check for null library in load-history
@ 2009-02-11 22:16 Daniel Jensen
  2009-02-11 22:47 ` Daniel Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jensen @ 2009-02-11 22:16 UTC (permalink / raw)
  To: emacs-devel

apropos-library does not handle a null library name in load-history
correctly. This patch fixes the problem.

--- emacs/lisp/apropos.el       2009-01-05 04:18:41.000000000 +0100
+++ emacs-mod/lisp/apropos.el   2009-02-11 22:58:19.000000000 +0100
@@ -573,11 +573,12 @@
           (nconc (delq nil
                        (mapcar
                         (lambda (l)
-                          (setq l (file-name-nondirectory l))
-                          (while
-                              (not (equal (setq l (file-name-sans-extension l))
-                                          l)))
-                          l)
+                          (when (stringp 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))))
      (list (completing-read "Describe library: " libs nil t))))





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-20  6:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 22:16 apropos-library: Check for null library in load-history Daniel Jensen
2009-02-11 22:47 ` Daniel Jensen
2009-02-15 22:01   ` Daniel Jensen
2009-02-20  6:04     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).