From: Paul Eggert Date: Thu, 18 Dec 2014 21:00:15 +0000 (-0800) Subject: * registry.el (registry-db): Set default slot later. X-Git-Tag: emacs-25.0.90~2635^2~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=777c8235f118fa9aec2465b61cca0bdc220fd419;p=emacs.git * registry.el (registry-db): Set default slot later. This is because its value is not a literal integer. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 34dd9191512..6f0ea0f57de 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2014-12-18 Paul Eggert + + * registry.el (registry-db): Set default slot later. + This is because its value is not a literal integer. + 2014-12-18 Stefan Monnier * mm-util.el (mm-with-unibyte-current-buffer): Mark obsolete and diff --git a/lisp/gnus/registry.el b/lisp/gnus/registry.el index d086d642772..cc1840762cb 100644 --- a/lisp/gnus/registry.el +++ b/lisp/gnus/registry.el @@ -98,7 +98,7 @@ :type (or null float) :documentation "The registry version.") (max-size :initarg :max-size - :initform most-positive-fixnum + ;; :initform most-positive-fixnum ;; see below :type integer :custom integer :documentation "The maximum number of registry entries.") @@ -123,6 +123,8 @@ (data :initarg :data :type hash-table :documentation "The data hashtable."))) +;; Do this separately, since defclass doesn't allow expressions in :initform. +(oset-default registry-db max-size most-positive-fixnum) (defmethod initialize-instance :BEFORE ((this registry-db) slots) "Check whether a registry object needs to be upgraded."