Browse files

Fix compiling `coffee-mode' without loading it.

The variable `coffee-debug-mode' isn't defined at compile-time but used
when expanding the `setd' macro.
  • Loading branch information...
1 parent 6639c36 commit cd06e4e6ebb60ac29cb90aaa31df89ba05d9a288 @mkhl mkhl committed with Apr 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee-mode.el
@@ -127,7 +127,7 @@ print the compiled JavaScript."
(defmacro setd (var val)
"Like setq but optionally logs the variable's value using `coffee-debug'."
- (if coffee-debug-mode
+ (if (and (boundp 'coffee-debug-mode) coffee-debug-mode)
(coffee-debug "%s: %s" ',var ,val)
(setq ,var ,val))

0 comments on commit cd06e4e

Please sign in to comment.