summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-06-19 16:27:49 -0400
committerGlenn Morris <rgm@gnu.org>2013-06-19 16:27:49 -0400
commit3db52056f15cab9be1302b05b052664791a3f171 (patch)
tree401b7e161420c7cd73b13273fc302ddcbc23e1c8 /lisp/emacs-lisp
parent4f4050696105381b5893f594d719569817a861a3 (diff)
downloademacs-3db52056f15cab9be1302b05b052664791a3f171.tar.gz
emacs-3db52056f15cab9be1302b05b052664791a3f171.tar.bz2
emacs-3db52056f15cab9be1302b05b052664791a3f171.zip
* lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
Diffstat (limited to 'lisp/emacs-lisp')
-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.