Skip to content

Commit d8a5e98

Browse files
committed
helpful--ensure': use derived-mode-p'
`nil' is also a symbol.
1 parent 19324e3 commit d8a5e98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

helpful.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,8 @@ unescaping too."
11201120
'help-echo "Follow this link")
11211121

11221122
(defun helpful--ensure ()
1123-
"Ensure that the `helpful--sym' is available."
1124-
(unless helpful--sym
1123+
"Ensure that we are in a *helpful* buffer."
1124+
(unless (derived-mode-p 'helpful-mode)
11251125
(user-error "Not in a *helpful* buffer")))
11261126

11271127
(defun helpful-view-in-manual ()

0 commit comments

Comments
 (0)