registry.el (registry-db): Temporary fix old Emacsen compilation
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 11 Mar 2015 23:01:33 +0000 (23:01 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 11 Mar 2015 23:01:33 +0000 (23:01 +0000)
lisp/ChangeLog
lisp/registry.el

index 62baeb5..3a3a2a9 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-11  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * registry.el (registry-db): Temporary fix old Emacsen compilation.
+
 2015-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-registry.el (gnus-registry-handle-action)
index f26101f..ef076a5 100644 (file)
 (defvar registry-db-version 0.2
   "The current version of the registry format.")
 
+(eval (backquote
 (defclass registry-db (eieio-persistent)
   ((version :initarg :version
             :initform nil
             ;; value rather than an expression, so in order to get the value
             ;; of `most-positive-fixnum', we need to use an
             ;; expression that's not just a symbol.
-             :initform (symbol-value 'most-positive-fixnum)
+             :initform ,(symbol-value 'most-positive-fixnum)
              :type integer
              :custom integer
              :documentation "The maximum number of registry entries.")
    (data :initarg :data
          :type hash-table
          :documentation "The data hashtable.")))
+))
 
 (defmethod initialize-instance :BEFORE ((this registry-db) slots)
   "Check whether a registry object needs to be upgraded."