]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-package-1): Handle (nil . "string") in `:maintainer`
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 16 May 2024 15:01:11 +0000 (11:01 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:51:12 +0000 (20:51 +0200)
* lisp/emacs-lisp/package.el (describe-package-1): Refine the
check to distinguish the old single-maintainer format from the
new multi-maintainer format.  (bug#69712)

(cherry picked from commit acfb2c6163b60507801fb8666129925e793394c9)

lisp/emacs-lisp/package.el

index 8c915766e1cf911e28fba745ce60aa09de46ddff..fda855d2143b89517447fbab36cf10cfa7ea18e8 100644 (file)
@@ -2947,7 +2947,7 @@ Helper function for `describe-package'."
         (insert " "))
       (insert "\n"))
     (when maintainers
-      (when (stringp (car maintainers))
+      (unless (and (listp (car maintainers)) (listp (cdr maintainers)))
         (setq maintainers (list maintainers)))
       (package--print-help-section
           (if (cdr maintainers) "Maintainers" "Maintainer"))