[R21.4R21.5] `defclass' and `defmethod' autoloads

Michael Sperber sperber at deinprogramm.de
Wed Oct 31 09:21:38 EDT 2007


This is fallout from upgrading to the latest version of JDE, which
requires the latest versions of the eieio, semantic and speedbar
packages (and some more---it ain't pretty).  I know this isn't a
particularly pretty way of supporting those packages---but it's prettier
than whatever else I could think of.  I'll commit Friday-ish if nobody
objects.

2007-10-31  Mike Sperber  <mike at xemacs.org>

	* autoload.el (make-autoload): Add `defclass' and `defmethod' as
	defmacro-like operators.  This is need to enable compilation of
	packages that depend on eieio.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
-------------- next part --------------
Index: lisp/autoload.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/autoload.el,v
retrieving revision 1.23
diff -u -r1.23 autoload.el
--- lisp/autoload.el	29 May 2006 21:25:49 -0000	1.23
+++ lisp/autoload.el	31 Oct 2007 09:50:41 -0000
@@ -249,7 +249,8 @@
      ((memq car '(defun define-skeleton defmacro define-derived-mode
 		   define-generic-mode easy-mmode-define-minor-mode
 		   easy-mmode-define-global-mode
-		   define-minor-mode defun* defmacro*))
+		   define-minor-mode defun* defmacro*
+		   defclass defmethod)) ; from the EIEIO package
       (let* ((macrop (memq car '(defmacro defmacro*)))
 	     (name (nth 1 form))
 	     (body (nthcdr (get car 'doc-string-elt) form))
@@ -799,6 +800,8 @@
 (put 'easy-mmode-define-minor-mode 'doc-string-elt 2)
 (put 'define-minor-mode 'doc-string-elt 2)
 (put 'define-generic-mode 'doc-string-elt 7)
+(put 'defclass 'doc-string-elt 4)
+(put 'defmethod 'doc-string-elt 3)
 ;; defin-global-mode has no explicit docstring.
 (put 'easy-mmode-define-global-mode 'doc-string-elt 1000)
 


More information about the XEmacs-Patches mailing list