diff options
| author | Phillip Lord | 2015-12-17 20:01:16 +0000 |
|---|---|---|
| committer | Phillip Lord | 2015-12-17 20:42:15 +0000 |
| commit | ee85661174703b2778d45be11fb8618345b0c58d (patch) | |
| tree | 43240874782ae581fbb4cf0e59c0b537c72ed349 | |
| parent | 459cf7cb92445e9336d649f128ec1af274e3f5a1 (diff) | |
| download | emacs-ee85661174703b2778d45be11fb8618345b0c58d.tar.gz emacs-ee85661174703b2778d45be11fb8618345b0c58d.zip | |
eieio generate autoloads to non-versioned file.
* lisp/Makefile.in: eieio-loaddefs add to autogenel.
* lisp/emacs-lisp/eieio.el,lisp/emacs-lisp/eieio-core.el:
Remove autoloads.
* lisp/emacs-lisp/eieio-compat.el,lisp/emacs-lisp/eieio-custom.el,
lisp/emacs-lisp/eieio-opt.el: Update file local.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: New test.
| -rw-r--r-- | lisp/Makefile.in | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-compat.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-core.el | 93 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-custom.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-opt.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 35 | ||||
| -rw-r--r-- | test/lisp/emacs-lisp/eieio-tests/eieio-tests.el | 6 |
7 files changed, 12 insertions, 131 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 9ebdc5b454c..3ac68cfd825 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -92,7 +92,8 @@ AUTOGENEL = loaddefs.el \ | |||
| 92 | textmodes/reftex-loaddefs.el \ | 92 | textmodes/reftex-loaddefs.el \ |
| 93 | mail/rmail-loaddefs.el \ | 93 | mail/rmail-loaddefs.el \ |
| 94 | ibuffer-loaddefs.el \ | 94 | ibuffer-loaddefs.el \ |
| 95 | htmlfontify-loaddefs | 95 | htmlfontify-loaddefs \ |
| 96 | emacs-lisp/eieio-loaddefs.el | ||
| 96 | 97 | ||
| 97 | # Set load-prefer-newer for the benefit of the non-bootstrappers. | 98 | # Set load-prefer-newer for the benefit of the non-bootstrappers. |
| 98 | BYTE_COMPILE_FLAGS = \ | 99 | BYTE_COMPILE_FLAGS = \ |
diff --git a/lisp/emacs-lisp/eieio-compat.el b/lisp/emacs-lisp/eieio-compat.el index 06e65b9df80..e48e2d2af83 100644 --- a/lisp/emacs-lisp/eieio-compat.el +++ b/lisp/emacs-lisp/eieio-compat.el | |||
| @@ -264,7 +264,7 @@ Summary: | |||
| 264 | 264 | ||
| 265 | 265 | ||
| 266 | ;; Local Variables: | 266 | ;; Local Variables: |
| 267 | ;; generated-autoload-file: "eieio-core.el" | 267 | ;; generated-autoload-file: "eieio-loaddefs.el" |
| 268 | ;; End: | 268 | ;; End: |
| 269 | 269 | ||
| 270 | (provide 'eieio-compat) | 270 | (provide 'eieio-compat) |
diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index c54cd22115d..61d076da875 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | (require 'cl-lib) | 34 | (require 'cl-lib) |
| 35 | (require 'pcase) | 35 | (require 'pcase) |
| 36 | (require 'eieio-loaddefs) | ||
| 36 | 37 | ||
| 37 | ;;; | 38 | ;;; |
| 38 | ;; A few functions that are better in the official EIEIO src, but | 39 | ;; A few functions that are better in the official EIEIO src, but |
| @@ -1094,98 +1095,6 @@ method invocation orders of the involved classes." | |||
| 1094 | (cl-defmethod cl-generic-generalizers ((_specializer (head subclass))) | 1095 | (cl-defmethod cl-generic-generalizers ((_specializer (head subclass))) |
| 1095 | (list eieio--generic-subclass-generalizer)) | 1096 | (list eieio--generic-subclass-generalizer)) |
| 1096 | 1097 | ||
| 1097 | |||
| 1098 | ;;;### (autoloads nil "eieio-compat" "eieio-compat.el" "11dd361fd4c1c625de90a39977936236") | ||
| 1099 | ;;; Generated autoloads from eieio-compat.el | ||
| 1100 | |||
| 1101 | (autoload 'eieio--defalias "eieio-compat" "\ | ||
| 1102 | Like `defalias', but with less side-effects. | ||
| 1103 | More specifically, it has no side-effects at all when the new function | ||
| 1104 | definition is the same (`eq') as the old one. | ||
| 1105 | |||
| 1106 | \(fn NAME BODY)" nil nil) | ||
| 1107 | |||
| 1108 | (autoload 'defgeneric "eieio-compat" "\ | ||
| 1109 | Create a generic function METHOD. | ||
| 1110 | DOC-STRING is the base documentation for this class. A generic | ||
| 1111 | function has no body, as its purpose is to decide which method body | ||
| 1112 | is appropriate to use. Uses `defmethod' to create methods, and calls | ||
| 1113 | `defgeneric' for you. With this implementation the ARGS are | ||
| 1114 | currently ignored. You can use `defgeneric' to apply specialized | ||
| 1115 | top level documentation to a method. | ||
| 1116 | |||
| 1117 | \(fn METHOD ARGS &optional DOC-STRING)" nil t) | ||
| 1118 | |||
| 1119 | (function-put 'defgeneric 'doc-string-elt '3) | ||
| 1120 | |||
| 1121 | (make-obsolete 'defgeneric 'cl-defgeneric '"25.1") | ||
| 1122 | |||
| 1123 | (autoload 'defmethod "eieio-compat" "\ | ||
| 1124 | Create a new METHOD through `defgeneric' with ARGS. | ||
| 1125 | |||
| 1126 | The optional second argument KEY is a specifier that | ||
| 1127 | modifies how the method is called, including: | ||
| 1128 | :before - Method will be called before the :primary | ||
| 1129 | :primary - The default if not specified | ||
| 1130 | :after - Method will be called after the :primary | ||
| 1131 | :static - First arg could be an object or class | ||
| 1132 | The next argument is the ARGLIST. The ARGLIST specifies the arguments | ||
| 1133 | to the method as with `defun'. The first argument can have a type | ||
| 1134 | specifier, such as: | ||
| 1135 | ((VARNAME CLASS) ARG2 ...) | ||
| 1136 | where VARNAME is the name of the local variable for the method being | ||
| 1137 | created. The CLASS is a class symbol for a class made with `defclass'. | ||
| 1138 | A DOCSTRING comes after the ARGLIST, and is optional. | ||
| 1139 | All the rest of the args are the BODY of the method. A method will | ||
| 1140 | return the value of the last form in the BODY. | ||
| 1141 | |||
| 1142 | Summary: | ||
| 1143 | |||
| 1144 | (defmethod mymethod [:before | :primary | :after | :static] | ||
| 1145 | ((typearg class-name) arg2 &optional opt &rest rest) | ||
| 1146 | \"doc-string\" | ||
| 1147 | body) | ||
| 1148 | |||
| 1149 | \(fn METHOD &rest ARGS)" nil t) | ||
| 1150 | |||
| 1151 | (function-put 'defmethod 'doc-string-elt '3) | ||
| 1152 | |||
| 1153 | (make-obsolete 'defmethod 'cl-defmethod '"25.1") | ||
| 1154 | |||
| 1155 | (autoload 'eieio--defgeneric-init-form "eieio-compat" "\ | ||
| 1156 | |||
| 1157 | |||
| 1158 | \(fn METHOD DOC-STRING)" nil nil) | ||
| 1159 | |||
| 1160 | (autoload 'eieio--defmethod "eieio-compat" "\ | ||
| 1161 | |||
| 1162 | |||
| 1163 | \(fn METHOD KIND ARGCLASS CODE)" nil nil) | ||
| 1164 | |||
| 1165 | (autoload 'eieio-defmethod "eieio-compat" "\ | ||
| 1166 | Obsolete work part of an old version of the `defmethod' macro. | ||
| 1167 | |||
| 1168 | \(fn METHOD ARGS)" nil nil) | ||
| 1169 | |||
| 1170 | (make-obsolete 'eieio-defmethod 'cl-defmethod '"24.1") | ||
| 1171 | |||
| 1172 | (autoload 'eieio-defgeneric "eieio-compat" "\ | ||
| 1173 | Obsolete work part of an old version of the `defgeneric' macro. | ||
| 1174 | |||
| 1175 | \(fn METHOD DOC-STRING)" nil nil) | ||
| 1176 | |||
| 1177 | (make-obsolete 'eieio-defgeneric 'cl-defgeneric '"24.1") | ||
| 1178 | |||
| 1179 | (autoload 'eieio-defclass "eieio-compat" "\ | ||
| 1180 | |||
| 1181 | |||
| 1182 | \(fn CNAME SUPERCLASSES SLOTS OPTIONS)" nil nil) | ||
| 1183 | |||
| 1184 | (make-obsolete 'eieio-defclass 'eieio-defclass-internal '"25.1") | ||
| 1185 | |||
| 1186 | ;;;*** | ||
| 1187 | |||
| 1188 | |||
| 1189 | (provide 'eieio-core) | 1098 | (provide 'eieio-core) |
| 1190 | 1099 | ||
| 1191 | ;;; eieio-core.el ends here | 1100 | ;;; eieio-core.el ends here |
diff --git a/lisp/emacs-lisp/eieio-custom.el b/lisp/emacs-lisp/eieio-custom.el index 31d0b85c55a..08b1908c0ba 100644 --- a/lisp/emacs-lisp/eieio-custom.el +++ b/lisp/emacs-lisp/eieio-custom.el | |||
| @@ -473,7 +473,7 @@ Return the symbol for the group, or nil" | |||
| 473 | (provide 'eieio-custom) | 473 | (provide 'eieio-custom) |
| 474 | 474 | ||
| 475 | ;; Local variables: | 475 | ;; Local variables: |
| 476 | ;; generated-autoload-file: "eieio.el" | 476 | ;; generated-autoload-file: "eieio-loaddefs.el" |
| 477 | ;; End: | 477 | ;; End: |
| 478 | 478 | ||
| 479 | ;;; eieio-custom.el ends here | 479 | ;;; eieio-custom.el ends here |
diff --git a/lisp/emacs-lisp/eieio-opt.el b/lisp/emacs-lisp/eieio-opt.el index a5d8b6fcf89..60fcafa1ed1 100644 --- a/lisp/emacs-lisp/eieio-opt.el +++ b/lisp/emacs-lisp/eieio-opt.el | |||
| @@ -349,7 +349,7 @@ INDENT is the current indentation level." | |||
| 349 | (provide 'eieio-opt) | 349 | (provide 'eieio-opt) |
| 350 | 350 | ||
| 351 | ;; Local variables: | 351 | ;; Local variables: |
| 352 | ;; generated-autoload-file: "eieio.el" | 352 | ;; generated-autoload-file: "eieio-loaddefs.el" |
| 353 | ;; End: | 353 | ;; End: |
| 354 | 354 | ||
| 355 | ;;; eieio-opt.el ends here | 355 | ;;; eieio-opt.el ends here |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 0ec07fe7b41..909785c3e6d 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -966,41 +966,6 @@ variable PRINT-FUNCTION. Optional argument NOESCAPE is passed to | |||
| 966 | (advice-add 'edebug-prin1-to-string | 966 | (advice-add 'edebug-prin1-to-string |
| 967 | :around #'eieio-edebug-prin1-to-string) | 967 | :around #'eieio-edebug-prin1-to-string) |
| 968 | 968 | ||
| 969 | |||
| 970 | ;;; Start of automatically extracted autoloads. | ||
| 971 | |||
| 972 | ;;;### (autoloads nil "eieio-custom" "eieio-custom.el" "916f54b818479a77a02f3ecccda84a11") | ||
| 973 | ;;; Generated autoloads from eieio-custom.el | ||
| 974 | |||
| 975 | (autoload 'customize-object "eieio-custom" "\ | ||
| 976 | Customize OBJ in a custom buffer. | ||
| 977 | Optional argument GROUP is the sub-group of slots to display. | ||
| 978 | |||
| 979 | \(fn OBJ &optional GROUP)" nil nil) | ||
| 980 | |||
| 981 | ;;;*** | ||
| 982 | |||
| 983 | ;;;### (autoloads nil "eieio-opt" "eieio-opt.el" "d00419c898056fadf2f8e491f864aa1e") | ||
| 984 | ;;; Generated autoloads from eieio-opt.el | ||
| 985 | |||
| 986 | (autoload 'eieio-browse "eieio-opt" "\ | ||
| 987 | Create an object browser window to show all objects. | ||
| 988 | If optional ROOT-CLASS, then start with that, otherwise start with | ||
| 989 | variable `eieio-default-superclass'. | ||
| 990 | |||
| 991 | \(fn &optional ROOT-CLASS)" t nil) | ||
| 992 | |||
| 993 | (define-obsolete-function-alias 'eieio-help-class 'cl--describe-class "25.1") | ||
| 994 | |||
| 995 | (autoload 'eieio-help-constructor "eieio-opt" "\ | ||
| 996 | Describe CTR if it is a class constructor. | ||
| 997 | |||
| 998 | \(fn CTR)" nil nil) | ||
| 999 | |||
| 1000 | ;;;*** | ||
| 1001 | |||
| 1002 | ;;; End of automatically extracted autoloads. | ||
| 1003 | |||
| 1004 | (provide 'eieio) | 969 | (provide 'eieio) |
| 1005 | 970 | ||
| 1006 | ;;; eieio ends here | 971 | ;;; eieio ends here |
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el b/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el index 915532b299c..3a181be5071 100644 --- a/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el +++ b/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el | |||
| @@ -895,6 +895,12 @@ Subclasses to override slot attributes.") | |||
| 895 | (ert-deftest eieio-test-37-obsolete-name-in-constructor () | 895 | (ert-deftest eieio-test-37-obsolete-name-in-constructor () |
| 896 | (should (equal (eieio--testing "toto") '("toto" 2)))) | 896 | (should (equal (eieio--testing "toto") '("toto" 2)))) |
| 897 | 897 | ||
| 898 | (ert-deftest eieio-autoload () | ||
| 899 | "Tests to see whether reftex-auc has been autoloaded" | ||
| 900 | (should | ||
| 901 | (fboundp 'eieio--defalias))) | ||
| 902 | |||
| 903 | |||
| 898 | (provide 'eieio-tests) | 904 | (provide 'eieio-tests) |
| 899 | 905 | ||
| 900 | ;;; eieio-tests.el ends here | 906 | ;;; eieio-tests.el ends here |