From d8a5e985fc2633f57864b67ce02a4b6d7784f614 Mon Sep 17 00:00:00 2001 From: Nikita Bloshchanevich Date: Thu, 11 Mar 2021 22:34:26 +0100 Subject: [PATCH] `helpful--ensure': use `derived-mode-p' `nil' is also a symbol. --- helpful.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpful.el b/helpful.el index 619ae0c..1eee9ca 100644 --- a/helpful.el +++ b/helpful.el @@ -1120,8 +1120,8 @@ unescaping too." 'help-echo "Follow this link") (defun helpful--ensure () - "Ensure that the `helpful--sym' is available." - (unless helpful--sym + "Ensure that we are in a *helpful* buffer." + (unless (derived-mode-p 'helpful-mode) (user-error "Not in a *helpful* buffer"))) (defun helpful-view-in-manual ()