Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use Common Lisp's `some` despite its inferior API.

  • Loading branch information...
commit 14ab5a072a86f08a56b30b5c3f0ecd4c92aac06c 1 parent f4d2c54
@defunkt authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 coffee-mode.el
View
7 coffee-mode.el
@@ -49,6 +49,7 @@
(require 'easymenu)
(require 'font-lock)
+(require 'cl)
;;
;; Customizable Variables
@@ -312,9 +313,9 @@ line? Returns `t' or `nil'. See the README for more details."
(end-of-line)
;; Optimized for speed - checks only the last character.
- (when (select coffee-indenters-eol
- (lambda (char)
- (= (char-before) char)))
+ (when (some (lambda (char)
+ (= (char-before) char))
+ coffee-indenters-eol)
(setq indenter-at-eol t)))
;; If we found an indenter, return `t'.
Please sign in to comment.
Something went wrong with that request. Please try again.