(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)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 16 May 2024 15:04:50 +0000 (11:04 -0400)
* 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)

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"))