summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/eieio.el
diff options
context:
space:
mode:
authorStephen Berman <stephen.berman@gmx.net>2013-06-21 20:37:42 +0200
committerStephen Berman <stephen.berman@gmx.net>2013-06-21 20:37:42 +0200
commit716b665eb3a134a5d1ccefd5d4c735e7e7ef62d5 (patch)
treeede9da164267b968f3c05e0340ba12e06b8d3516 /lisp/emacs-lisp/eieio.el
parentebc83885b750d46eb290192ae25f6b9a92bdd15f (diff)
parentcad5d1cb5af7210154814b60825576d14740158f (diff)
downloademacs-716b665eb3a134a5d1ccefd5d4c735e7e7ef62d5.tar.gz
emacs-716b665eb3a134a5d1ccefd5d4c735e7e7ef62d5.tar.bz2
emacs-716b665eb3a134a5d1ccefd5d4c735e7e7ef62d5.zip
Merge from trunk.
Diffstat (limited to 'lisp/emacs-lisp/eieio.el')
-rw-r--r--lisp/emacs-lisp/eieio.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el
index 3cdf1f078bd..fc5da3198f9 100644
--- a/lisp/emacs-lisp/eieio.el
+++ b/lisp/emacs-lisp/eieio.el
@@ -115,7 +115,12 @@ Options in CLOS not supported in EIEIO:
Due to the way class options are set up, you can add any tags you wish,
and reference them using the function `class-option'."
- `(eieio-defclass ',name ',superclass ',slots ',options-and-doc))
+ ;; This is eval-and-compile only to silence spurious compiler warnings
+ ;; about functions and variables not known to be defined.
+ ;; When eieio-defclass code is merged here and this becomes
+ ;; transparent to the compiler, the eval-and-compile can be removed.
+ `(eval-and-compile
+ (eieio-defclass ',name ',superclass ',slots ',options-and-doc)))
;;; CLOS style implementation of object creators.