emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113087: * lisp/emacs-lisp/eieio.el (defclass): Make


From: Glenn Morris
Subject: [Emacs-diffs] trunk r113087: * lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
Date: Wed, 19 Jun 2013 20:27:53 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113087
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2013-06-19 16:27:49 -0400
message:
  * lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/emacs-lisp/eieio.el       eieio.el-20091113204419-o5vbwnq5f7feedwu-10973
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-06-19 20:10:57 +0000
+++ b/lisp/ChangeLog    2013-06-19 20:27:49 +0000
@@ -1,3 +1,7 @@
+2013-06-19  Glenn Morris  <address@hidden>
+
+       * emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
+
 2013-06-19  Michael Albinus  <address@hidden>
 
        * net/tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is

=== modified file 'lisp/emacs-lisp/eieio.el'
--- a/lisp/emacs-lisp/eieio.el  2013-06-02 16:39:32 +0000
+++ b/lisp/emacs-lisp/eieio.el  2013-06-19 20:27:49 +0000
@@ -115,7 +115,12 @@
 
 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]