From 45ce222e71d27716193584309090072dd6258179 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 29 May 2013 20:19:37 -0700 Subject: * lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use. --- lisp/emacs-lisp/eieio.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 37b1ec5fa94..541ac32842f 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el @@ -851,6 +851,10 @@ See `defclass' for more information." cname )) +(defsubst eieio-eval-default-p (val) + "Whether the default value VAL should be evaluated for use." + (and (consp val) (symbolp (car val)) (fboundp (car val)))) + (defun eieio-perform-slot-validation-for-default (slot spec value skipnil) "For SLOT, signal if SPEC does not match VALUE. If SKIPNIL is non-nil, then if VALUE is nil return t instead." @@ -1554,10 +1558,6 @@ Fills in OBJ's SLOT with its default value." (eieio-default-eval-maybe val)) obj cl 'oref-default)))) -(defsubst eieio-eval-default-p (val) - "Whether the default value VAL should be evaluated for use." - (and (consp val) (symbolp (car val)) (fboundp (car val)))) - (defun eieio-default-eval-maybe (val) "Check VAL, and return what `oref-default' would provide." (cond -- cgit v1.2.3