Skip to content

Commit

Permalink
Recognize keywords as symbols and not as variables
Browse files Browse the repository at this point in the history
Thanks, @minad, for pointing this out and suggesting the fix.
  • Loading branch information
oantolin committed Jul 24, 2021
1 parent be03ce9 commit bf98556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ minibuffer before executing the action."
"Refine symbol TARGET to command or variable if possible."
(cons (or (when-let ((symbol (intern-soft target)))
(cond
((keywordp symbol) 'symbol) ; keywords are bound to themselves!
((commandp symbol) 'command)
((boundp symbol) 'variable)
;; Prefer variables over functions for backward compatibility.
Expand Down

0 comments on commit bf98556

Please sign in to comment.