Skip to content

Commit

Permalink
Fix call to called-interactively-p
Browse files Browse the repository at this point in the history
It is a function, not a macro, and so its argument usually has to be
quoted.  In this case it does.
  • Loading branch information
tarsius committed May 2, 2016
1 parent e389fc2 commit dda1151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js3-mode.el
Expand Up @@ -11771,7 +11771,7 @@ Some users don't like having warnings/errors reported while they type."
(interactive)
(setq js3-mode-show-parse-errors (not js3-mode-show-parse-errors)
js3-mode-show-strict-warnings (not js3-mode-show-strict-warnings))
(if (called-interactively-p interactive)
(if (called-interactively-p 'interactive)
(message "warnings and errors %s"
(if js3-mode-show-parse-errors
"enabled"
Expand Down
2 changes: 1 addition & 1 deletion lib/js3-foot.el
Expand Up @@ -1070,7 +1070,7 @@ Some users don't like having warnings/errors reported while they type."
(interactive)
(setq js3-mode-show-parse-errors (not js3-mode-show-parse-errors)
js3-mode-show-strict-warnings (not js3-mode-show-strict-warnings))
(if (called-interactively-p interactive)
(if (called-interactively-p 'interactive)
(message "warnings and errors %s"
(if js3-mode-show-parse-errors
"enabled"
Expand Down

0 comments on commit dda1151

Please sign in to comment.