]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/package.el (package-buffer-info): Use lm-maintainers
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 9 Aug 2021 16:05:22 +0000 (12:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 9 Aug 2021 16:05:22 +0000 (12:05 -0400)
Avoid the now obsolete `lm-maintainer`.

lisp/emacs-lisp/package.el

index 82ea9e736584c190be2a3d2b452abb0b666bc78f..dac412c98b6975accbe5cbd68026bd869056c03e 100644 (file)
@@ -1120,7 +1120,7 @@ is wrapped around any parts requiring it."
 (declare-function lm-header-multiline "lisp-mnt" (header))
 (declare-function lm-homepage "lisp-mnt" (&optional file))
 (declare-function lm-keywords-list "lisp-mnt" (&optional file))
-(declare-function lm-maintainer "lisp-mnt" (&optional file))
+(declare-function lm-maintainers "lisp-mnt" (&optional file))
 (declare-function lm-authors "lisp-mnt" (&optional file))
 
 (defun package-buffer-info ()
@@ -1166,7 +1166,10 @@ boundaries."
        :kind 'single
        :url homepage
        :keywords keywords
-       :maintainer (lm-maintainer)
+       :maintainer
+       ;; For backward compatibility, use a single string if there's only
+       ;; one maintainer (the most common case).
+       (let ((maints (lm-maintainers))) (if (cdr maints) maints (cat maints)))
        :authors (lm-authors)))))
 
 (defun package--read-pkg-desc (kind)