[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a8721a3: Make help-view-source more robust
From: |
Lars Ingebrigtsen |
Subject: |
master a8721a3: Make help-view-source more robust |
Date: |
Tue, 15 Jun 2021 14:58:08 -0400 (EDT) |
branch: master
commit a8721a333d5cf9080406bd4d9f723bda7a4a8402
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 7450d73..48cf435 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a8721a3: Make help-view-source more robust,
Lars Ingebrigtsen <=