From 390647da87a0b9a5983e7b23c302326742262662 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 30 May 2019 13:59:39 -0400 Subject: [PATCH] Fix case where package has no backend In doom/help-packages --- core/autoload/help.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index f3bd37f97..e648196b3 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -431,11 +431,12 @@ If prefix arg is present, refresh the cache." (re-search-forward "\n\n" nil t)) (package--print-help-section "Source") - (insert (pcase (ignore-errors (doom-package-backend package)) - (`elpa (concat "[M]ELPA " (doom--package-url package))) - (`quelpa (format "QUELPA %s" (prin1-to-string (doom-package-prop package :recipe)))) - (`emacs "Built-in") - (_ (symbol-file package))) + (insert (or (pcase (ignore-errors (doom-package-backend package)) + (`elpa (concat "[M]ELPA " (doom--package-url package))) + (`quelpa (format "QUELPA %s" (prin1-to-string (doom-package-prop package :recipe)))) + (`emacs "Built-in") + (_ (symbol-file package))) + "unknown") "\n") (when (assq package doom-packages)