]> git.eshelyaron.com Git - emacs.git/commitdiff
(apropos): Add support for customization groups.
authorRichard M. Stallman <rms@gnu.org>
Fri, 25 Apr 1997 18:10:43 +0000 (18:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 25 Apr 1997 18:10:43 +0000 (18:10 +0000)
(apropos-print): Ditto.

lisp/apropos.el

index aadf72d910afd869d610f8314f34c993f778ce46..6729e4a4c6a9a8081e9a98f09bd10d284a0d4312 100644 (file)
@@ -215,6 +215,12 @@ Returns list of symbols and documentation found."
                                     symbol 'face-documentation t))
                          (substring doc 0
                                     (string-match "\n" doc))
+                       "(not documented)"))
+                   (when (get symbol 'custom-group)
+                     (if (setq doc (documentation-property
+                                    symbol 'group-documentation t))
+                         (substring doc 0
+                                    (string-match "\n" doc))
                        "(not documented)"))))
         (setq p (cdr p)))))
    nil))
@@ -535,6 +541,7 @@ found."
                                 "User Option" do-keys)
            (apropos-print-doc 'describe-variable 2
                               "Variable" do-keys))
+         (apropos-print-doc 'customize-other-window 6 "Group" do-keys)
          (apropos-print-doc 'customize-face-other-window 5 "Face" do-keys)
          (apropos-print-doc 'widget-browse-other-window 4 "Widget" do-keys)
          (apropos-print-doc 'apropos-describe-plist 3