X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Ffinder.el;h=b0fa4deb223568fb2af99dc39284e4314d776c80;hb=9dab7627f5aa4b82bc092df9dacb1c401ced0e5e;hp=8c9594aa62ce70fb3d22c97b9adf813ae78eec79;hpb=77dcef404dc78635f6ffa8f71a803d2bc7cc8921;p=chise%2Fxemacs-chise.git- diff --git a/lisp/finder.el b/lisp/finder.el index 8c9594a..b0fa4de 100644 --- a/lisp/finder.el +++ b/lisp/finder.el @@ -285,8 +285,12 @@ arguments compiles from `load-path'." found))) (defun finder-commentary (file) - (interactive) - (let* ((str (lm-commentary (finder-find-library file)))) + "Display FILE's commentary section. +FILE should be in a form suitable for passing to `locate-library'." + (interactive "sLibrary name: ") + (let* ((str (lm-commentary (or (finder-find-library file) + (finder-find-library (concat file ".el")) + (error "Can't find library %s" file))))) (if (null str) (error "Can't find any Commentary section")) (pop-to-buffer "*Finder*")