]> git.eshelyaron.com Git - emacs.git/commitdiff
apropos-library: Skip obvious duplicates; don't error on generics
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Jan 2016 23:26:55 +0000 (02:26 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Jan 2016 23:26:55 +0000 (02:26 +0300)
* lisp/apropos.el (apropos-library): Skip "was an autoload"
entries, to avoid obvious duplicates.  For each cl-defmethod
entry, take just its function symbol (bug#21422).

lisp/apropos.el

index 36a729a34ab200cddcee1f68c295b0c966a338dd..f1656859639797eeb7748c63482ac81749b005b9 100644 (file)
@@ -676,6 +676,10 @@ the output includes key-bindings of commands."
        ;; (autoload (push (cdr x) autoloads))
        (`require (push (cdr x) requires))
        (`provide (push (cdr x) provides))
+        (`t nil) ; Skip "was an autoload" entries.
+        ;; FIXME: Print information about each indivial method: both
+        ;; its docstring and specializers (bug#21422).
+        (`cl-defmethod (push (cadr x) provides))
        (_ (push (or (cdr-safe x) x) symbols))))
     (let ((apropos-pattern "")) ;Dummy binding for apropos-symbols-internal.
       (apropos-symbols-internal