]> git.eshelyaron.com Git - emacs.git/commitdiff
Make help-view-source more robust
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 15 Jun 2021 18:58:01 +0000 (20:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 15 Jun 2021 18:58:01 +0000 (20:58 +0200)
* 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

index 7450d73332224be20d95dbfcbe970c3a97a16089..48cf435f97cb5cf34b6511168e1be82e3b7544ca 100644 (file)
@@ -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)))