From a8721a333d5cf9080406bd4d9f723bda7a4a8402 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 15 Jun 2021 20:58:01 +0200 Subject: [PATCH] Make help-view-source more robust * lisp/help-mode.el (help-view-source): Check the right thing to see if we can jump to the source file. --- lisp/help-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 7450d733322..48cf435f97c 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -733,7 +733,7 @@ See `help-make-xrefs'." (defun help-view-source () "View the source of the current help item." (interactive nil help-mode) - (unless help-mode--current-data + (unless (plist-get help-mode--current-data :file) (error "Source file for the current help item is not defined")) (help-function-def--button-function (plist-get help-mode--current-data :symbol) (plist-get help-mode--current-data :file))) -- 2.39.5