Permalink
Browse files

Don't define inflection-uncountables etc. only at compile time

The various inflection-* vars are required by the regular functions
'singularize-string and 'pluralize-string, so they need to be defined
at runtime too, in response to simply requiring the library.

Also, 'cl should be required at runtime, not just at compile time, to
minimize compilation warnings.
  • Loading branch information...
1 parent 599fb5d commit 8f4e6411c337851e4d9ee82b7513e09cbc22f73a @purcell purcell committed Jun 29, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 inflections.el
View
@@ -27,12 +27,11 @@
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
;;; Code:
-(eval-when-compile
- (require 'cl)
- (defvar inflection-singulars nil)
- (defvar inflection-plurals nil)
- (defvar inflection-irregulars nil)
- (defvar inflection-uncountables nil))
+(require 'cl)
+(defvar inflection-singulars nil)
+(defvar inflection-plurals nil)
+(defvar inflection-irregulars nil)
+(defvar inflection-uncountables nil)
(defmacro define-inflectors (&rest specs)
(loop for (type . rest) in specs do

0 comments on commit 8f4e641

Please sign in to comment.