Permalink
Browse files

Fix missing function `some' issue when loading compiled elisp.

Function `some' requires 'cl and it is loaded while compilation only.
  • Loading branch information...
1 parent 6d1d92d commit 65797fafd745160b62b64ac2dbbec8c0516efc4e @jaeyeom jaeyeom committed with rrthomas Apr 16, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 coffee-mode.el
View
@@ -517,10 +517,12 @@ previous line."
(end-of-line)
;; Optimized for speed - checks only the last character.
- (when (some (lambda (char)
- (= (char-before) char))
- coffee-indenters-eol)
- (setq indenter-at-eol t)))
+ (let ((indenters coffee-indenters-eol))
+ (while indenters
+ (if (/= (char-before) (car indenters))
+ (setq indenters (cdr indenters))
+ (setq indenter-at-eol t)
+ (setq indenters nil)))))
;; If we found an indenter, return `t'.
(or indenter-at-bol indenter-at-eol))))

0 comments on commit 65797fa

Please sign in to comment.