(lm-with-file file
(lm-header "adapted-by")))
+(defun lm-package (&optional file)
+ "Return the package that FILE belongs to."
+ (lm-with-file file (lm-header "package")))
+
(defun lm-commentary (&optional file)
"Return the commentary in file FILE, or current buffer if FILE is nil.
Return the value as a string. In the file, the commentary
(declare-function lm-summary "lisp-mnt" (&optional file))
(declare-function lm-keywords "lisp-mnt" (&optional file))
(declare-function lm-commentary "lisp-mnt" (&optional file))
+(declare-function lm-package "lisp-mnt" (&optional file))
;;;###autoload
(defun describe-library (library)
(if-let (keywords (lm-keywords file))
(concat "\n\nKeywords: ["
(replace-regexp-in-string ",? " "] [" keywords)
- "]")
+ "]"
+ (when-let (package (lm-package file))
+ (concat "\nPart of package "
+ (substitute-quotes (format "`%s'" package)))))
"")
"\n\n"
(substitute-quotes (or (lm-commentary file)