Skip to content

Commit

Permalink
helpful--ensure': use derived-mode-p'
Browse files Browse the repository at this point in the history
`nil' is also a symbol.
  • Loading branch information
nbfalcon committed Mar 11, 2021
1 parent 19324e3 commit d8a5e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpful.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit d8a5e98

Please sign in to comment.