Mercurial > hg > xemacs-beta
annotate lisp/dumped-lisp.el @ 5265:5663ae9a8989
Warn at compile time, error at runtime, with (quote X Y), (function X Y).
lisp/ChangeLog addition:
2010-09-16 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el (byte-compile-function-form, byte-compile-quote)
(byte-compile-quote-form):
Warn at compile time, and error at runtime, if a (quote ...) or a
(function ...) form attempts to quote more than one object.
src/ChangeLog addition:
2010-09-16 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (Ffunction, Fquote):
Add argument information in the arguments: () format for these two
special operators.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Thu, 16 Sep 2010 14:10:44 +0100 |
| parents | 0d43872986b6 |
| children | d27c1ee1943b 91b3aa59f49b |
| rev | line source |
|---|---|
| 1330 | 1 (defvar packages-hardcoded-lisp |
| 2 '( | |
| 3 ;; Nothing at this time | |
| 4 ) | |
| 5 "Lisp packages that are always dumped with XEmacs. | |
| 6 This includes every package that is loaded directly by a package listed | |
| 7 in dumped-lisp.el and is not itself listed.") | |
| 8 | |
| 2367 | 9 |
| 10 ;; WARNING WARNING WARNING: None of the files below, until where it says | |
| 11 ;; "All files after this can have extended characters in them", can have | |
| 12 ;; extended (non-ASCII characters) of any sort in them! Unfortunately, you | |
| 13 ;; will not get any error at load-time; however, you may get a later very | |
| 14 ;; cryptic error "Invalid opcode"! This is caused by the byte-code data | |
| 15 ;; being encoded as escape-quoted, when we can't handle that yet. | |
| 16 ;; | |
| 17 ;; #### We should resurrect the check for the coding-system magic cookie in | |
| 18 ;; fileio.c and put in an abort if we are not able to handle it yet. | |
| 19 | |
| 428 | 20 (setq preloaded-file-list |
| 1315 | 21 (list |
| 1333 | 22 ;; do not defcustom any variables in these files |
| 23 | |
| 1315 | 24 "backquote" ; needed for defsubst etc. |
| 25 "bytecomp-runtime" ; define defsubst | |
| 26 "find-paths" | |
| 27 "packages" ; Bootstrap run-time lisp environment | |
| 28 "setup-paths" | |
| 1333 | 29 |
| 30 ;; use custom-declare-variable-early, not defcustom, in these files | |
| 31 | |
| 1315 | 32 "subr" ; load the most basic Lisp functions |
| 33 "post-gc" | |
| 34 "replace" ; match-string used in version.el. | |
| 35 | |
| 4246 | 36 "version" |
| 1315 | 37 |
| 38 "cl" | |
| 39 "cl-extra" | |
| 40 "cl-seq" | |
| 41 "widget" | |
| 42 "custom" ; Before the world so everything can be | |
| 43 ; customized | |
| 44 "cus-start" ; for customization of builtin variables | |
| 1333 | 45 |
| 46 ;; OK, you can use defcustom from here on | |
| 47 | |
| 1315 | 48 "cmdloop" |
| 49 "keymap" | |
| 50 "syntax" | |
| 51 "device" | |
| 52 "console" | |
| 53 "obsolete" | |
| 54 "specifier" | |
| 55 "frame" ; needed by faces | |
| 3094 | 56 ;; #### this should be (featurep 'xft) |
| 3354 | 57 (when (featurep 'xft-fonts) "fontconfig") ; needed by x-faces |
| 1315 | 58 (when (featurep 'x) "x-faces") ; needed by faces |
| 59 (when (featurep 'gtk) "gtk-faces") | |
| 60 (when (valid-console-type-p 'mswindows) "msw-faces") | |
| 61 "faces" ; must be loaded before any make-face call | |
| 62 ;;(pureload "facemenu") #### not yet ported | |
| 63 "glyphs" | |
|
5176
8b2f75cecb89
rename objects* (.c, .h and .el files) to fontcolor*
Ben Wing <ben@xemacs.org>
parents:
4506
diff
changeset
|
64 "fontcolor" |
| 1315 | 65 "extents" |
| 66 "events" | |
| 67 "hash-table" | |
| 68 "text-props" | |
| 69 "process" ;; This is bad. network-streams may not be defined. | |
| 70 (when (featurep 'multicast) "multicast") ; #+network-streams implicitly true | |
| 71 "map-ynp" | |
| 72 "undo-stack" | |
| 73 "window" ; simple needs `save-window-excursion' | |
| 74 "window-xemacs" | |
| 3932 | 75 "resize-minibuffer" ; simple needs `resize-minibuffer-mode' |
| 1315 | 76 "simple" |
| 1333 | 77 "newcomment" |
| 1315 | 78 "keydefs" ; Before loaddefs so that keymap vars exist. |
| 79 "abbrev" | |
| 80 "derived" | |
| 81 "minibuf" | |
| 82 "list-mode" | |
| 83 "modeline" ; needs simple.el to be loaded first | |
| 428 | 84 ;; If SparcWorks support is included some additional packages are |
| 85 ;; dumped which would normally have autoloads. To avoid | |
| 86 ;; duplicate doc string warnings, SparcWorks uses a separate | |
| 87 ;; autoloads file with the dumped packages removed. | |
| 88 ;; After fixing, eos/loaddefs-eos and loaddefs appear identical?!! | |
| 89 ;; So just make loaddefs-eos go away... | |
| 90 ;;(pureload (if (featurep 'sparcworks) "eos/loaddefs-eos" "loaddefs")) | |
| 1315 | 91 "cus-file" |
| 92 "startup" ; For initialization of | |
| 428 | 93 ; `emacs-user-extension-dir' |
| 1315 | 94 "misc" |
| 95 ;; (pureload "profile") | |
| 3368 | 96 "loadhist" ; Must be dumped before loaddefs is loaded |
| 97 ; Used by help. | |
| 1315 | 98 ;; (pureload "hyper-apropos") Soon... |
| 99 "files" | |
| 100 "lib-complete" | |
| 101 "format" | |
| 102 "indent" | |
| 103 "isearch-mode" | |
| 104 "buffer" | |
| 105 "buff-menu" | |
|
4372
ebb35ddea76a
Byte-compile menu lambdas; make the menu of available tutorials more readable.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4246
diff
changeset
|
106 "paths" |
| 1315 | 107 "lisp" |
| 108 "page" | |
| 109 "register" | |
| 110 "iso8859-1" ; This must be before any modes | |
| 111 ; (sets standard syntax table.) | |
|
4506
bd28481bb0e1
Port #'window-buffer-height, #'fit-window-to-buffer, & window, buf, functions.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4372
diff
changeset
|
112 "easy-mmode" ; Added for 21.5. Used by help. |
|
bd28481bb0e1
Port #'window-buffer-height, #'fit-window-to-buffer, & window, buf, functions.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4372
diff
changeset
|
113 "help" |
| 1315 | 114 "easymenu" ; Added for 20.3. |
| 115 "lisp-mode" | |
| 116 "text-mode" | |
| 117 "fill" | |
| 118 "auto-save" ; Added for 20.4 | |
| 119 "movemail" ; Added for 21.2 | |
| 120 (when (eq system-type 'windows-nt) "win32-native") | |
| 121 (when (featurep 'lisp-float-type) "float-sup") | |
| 122 "itimer" ; for vars auto-save-timeout and | |
| 428 | 123 ; auto-gc-threshold |
| 1315 | 124 "itimer-autosave" |
| 125 "printer" | |
| 126 "behavior" | |
| 127 "behavior-defs" | |
| 128 "diagnose" | |
| 129 | |
| 442 | 130 ;;;;;;;;;;;;;;;;;; GUI support |
| 1315 | 131 (when (featurep 'window-system) |
| 132 '("gui" | |
| 133 "mouse" | |
| 134 "mode-motion" | |
| 135 )) | |
| 136 (when (featurep 'toolbar) "toolbar") | |
| 137 (when (featurep 'scrollbar) "scrollbar") | |
| 138 (when (featurep 'menubar) "menubar") | |
| 139 (when (featurep 'dialog) "dialog") | |
| 140 (when (featurep 'gutter) "gutter") | |
| 141 (when (featurep 'dragdrop-api) "dragdrop") | |
| 142 "select" | |
| 143 | |
| 442 | 144 ;;;;;;;;;;;;;;;;;; Content for GUI's |
| 1315 | 145 ;; There used to be window-system inserted in the when-feature, |
| 146 ;; but IMHO your configure script should turn off the menubar, | |
| 147 ;; toolbar, etc. features when there is no window system. We | |
| 148 ;; should just be able to assume that, if (featurep 'menubar), | |
| 149 ;; the menubar should work and if items are added, they can be | |
| 150 ;; seen clearly and usefully. | |
|
5228
5efbd1253905
Remove all support for InfoDock.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5178
diff
changeset
|
151 (when (featurep 'menubar) "menubar-items") |
|
5efbd1253905
Remove all support for InfoDock.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5178
diff
changeset
|
152 (when (featurep 'gutter) "gutter-items") |
|
5efbd1253905
Remove all support for InfoDock.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5178
diff
changeset
|
153 (when (featurep 'toolbar) "toolbar-items") |
|
5efbd1253905
Remove all support for InfoDock.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5178
diff
changeset
|
154 (when (featurep 'dialog) "dialog-items") |
| 442 | 155 |
| 156 ;;;;;;;;;;;;;;;;;; Coding-system support | |
| 1315 | 157 "coding" |
| 158 "code-files" | |
| 159 ;; Handle process with encoding/decoding coding-system. | |
| 160 "code-process" | |
| 161 ;; Provide basic commands to set coding systems to user | |
| 162 "code-cmds" | |
| 163 "unicode" | |
| 442 | 164 ;;;;;;;;;;;;;;;;;; MULE support |
| 1315 | 165 (when (featurep 'mule) |
| 2465 | 166 '("mule/mule-charset" |
| 167 "mule/mule-cmds" ; to sync with Emacs 20.1 | |
| 168 "mule/mule-coding" | |
| 169 "mule/mule-composite-stub" | |
| 170 "mule/mule-composite" | |
| 1315 | 171 )) |
| 172 ;; may initialize coding systems | |
| 2465 | 173 (when (featurep '(and mule x)) "mule/mule-x-init") |
| 174 (when (featurep '(and mule tty)) "mule/mule-tty-init") | |
| 1315 | 175 (when (and (featurep 'mule) (memq system-type '(windows-nt cygwin32))) |
| 2474 | 176 "mule/mule-win32-init") |
| 1315 | 177 "code-init" ; set up defaults |
| 178 ;; All files after this can have extended characters in them. | |
| 179 (when (featurep 'mule) | |
| 2465 | 180 '("mule/mule-category" |
| 181 "mule/kinsoku" | |
| 1315 | 182 )) |
| 428 | 183 |
| 184 ;; after this goes the specific lisp routines for a particular input system | |
| 185 ;; 97.2.5 JHod Shouldn't these go into a site-load file to allow site | |
| 186 ;; or user switching of input systems??? | |
| 187 ;(if (featurep 'wnn) | |
| 188 ; (progn | |
| 189 ; (pureload "egg") | |
| 190 ; (pureload "egg-wnn") | |
| 191 ; (setq egg-default-startup-file "eggrc-wnn"))) | |
| 192 | |
| 193 ;; (if (and (boundp 'CANNA) CANNA) | |
| 194 ;; (pureload "canna") | |
| 195 ;; ) | |
| 196 | |
| 780 | 197 ;; Now load files to set up all the different languages/environments that |
| 198 ;; Mule knows about. Formerly we had to worry about files shadowed by | |
| 199 ;; those of the same name in leim/quail.el, but no longer, since we now | |
| 200 ;; compile with -no-packages. | |
| 428 | 201 |
| 1315 | 202 (when (featurep 'mule) |
| 2465 | 203 '("mule/arabic" |
| 204 "mule/chinese" | |
| 205 "mule/cyrillic" | |
| 206 "mule/english" | |
| 207 "mule/ethiopic" | |
| 208 "mule/greek" | |
| 209 "mule/hebrew" | |
| 210 "mule/indian" | |
| 211 "mule/devanagari" ; must be loaded after indian.el | |
| 212 "mule/japanese" | |
| 213 "mule/korean" | |
| 4072 | 214 "mule/lao" ; sucks. |
| 2465 | 215 "mule/latin" |
| 216 "mule/misc-lang" | |
| 1315 | 217 ;; "thai" #### merge thai and thai-xtis!!! |
| 4072 | 218 ;; #### Even better; take out thai-xtis! It's not even a |
| 219 ;; standard, and no-one uses it. | |
| 2465 | 220 "mule/thai-xtis" |
| 221 "mule/tibetan" | |
| 222 "mule/vietnamese" | |
| 1315 | 223 )) |
| 224 | |
| 428 | 225 ;; Specialized language support |
| 2973 | 226 (when (featurep 'mule) "mule/canna-leim") |
| 780 | 227 ;; needs access to the charsets created by the above |
| 228 ;; language-specific files. | |
| 1315 | 229 (when (and (featurep 'mule) (valid-console-type-p 'mswindows)) |
| 2465 | 230 "mule/mule-msw-init-late") |
| 780 | 231 |
| 3707 | 232 (when (featurep 'mule) |
| 233 "mule/general-late") | |
| 234 | |
| 428 | 235 ;;; mule-load.el ends here |
| 442 | 236 |
| 237 ;; preload the X code. | |
| 1315 | 238 (when (featurep '(and x scrollbar)) "x-scrollbar") |
| 239 (when (featurep 'x) | |
| 2828 | 240 '("x-mouse" |
| 1315 | 241 "x-select" |
| 242 "x-misc" | |
| 243 "x-init" | |
| 244 "x-win-xfree86" | |
| 245 "x-win-sun")) | |
| 246 ;; preload the GTK code | |
| 247 (when (featurep 'gtk) | |
| 248 '("gtk-ffi" | |
| 249 "gtk-widgets" | |
| 250 "gdk" | |
| 251 "gtk-init" | |
| 252 "gtk-select" | |
| 253 "gtk-mouse" | |
| 254 "gtk-glyphs" | |
| 255 "widgets-gtk")) | |
| 256 (when (featurep '(and gtk dialog)) "dialog-gtk") | |
| 257 (when (featurep 'glade) "glade") | |
| 462 | 258 |
| 428 | 259 ;; preload the mswindows code. |
| 1315 | 260 (when (valid-console-type-p 'mswindows) |
| 261 '("msw-glyphs" | |
| 262 "msw-mouse" | |
| 263 "msw-init" | |
| 264 "msw-select")) | |
| 428 | 265 ;; preload the TTY init code. |
| 1315 | 266 (when (featurep 'tty) "tty-init") |
| 428 | 267 ;;; Formerly in tooltalk/tooltalk-load.el |
| 268 ;; Moved to tooltalk package | |
| 1315 | 269 ;; (when (featurep 'tooltalk) |
| 270 ;; '("tooltalk-macros" "tooltalk-util" "tooltalk-init")) | |
| 428 | 271 ;; "vc-hooks" ; Packaged. Available in two versions. |
| 272 ;; "ediff-hook" ; Packaged. | |
| 1315 | 273 "fontl-hooks" |
| 274 "auto-show" | |
| 2579 | 275 "paragraphs" ; needs easy-mmode, coding |
| 1315 | 276 (when (featurep 'ldap) "ldap") |
| 428 | 277 |
| 1315 | 278 ;; (when (featurep 'energize) "energize/energize-load.el") |
| 428 | 279 ;;; formerly in sunpro/sunpro-load.el |
| 1315 | 280 ;; (when (featurep '(and mule sparcworks)) "mime-setup") |
| 428 | 281 |
| 282 ;; Moved to Sun package | |
| 1315 | 283 ;; (when (featurep 'sparcworks) |
| 284 ;; '("cc-mode" ; Requires cc-mode package | |
| 285 ;; "sunpro-init" | |
| 286 ;; "ring" | |
| 287 ;; "comint" ; Requires comint package | |
| 288 ;; "annotations")) | |
| 428 | 289 |
| 290 ;;; formerly in eos/sun-eos-load.el | |
| 1315 | 291 ;; (when (featurep 'sparcworks) |
| 292 ;; '("sun-eos-init" | |
| 293 ;; "sun-eos-common" | |
| 294 ;; "sun-eos-editor" | |
| 295 ;; "sun-eos-browser" | |
| 296 ;; "sun-eos-debugger" | |
| 297 ;; "sun-eos-debugger-extra" | |
| 298 ;; "sun-eos-menubar")) | |
| 299 "loaddefs" ; <=== autoloads get loaded here | |
| 300 )) | |
| 301 | |
| 302 (setq preloaded-file-list | |
|
5264
0d43872986b6
Change (apply 'nconc (mapcar ...)) to (mapcan ...); warn about first form.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5228
diff
changeset
|
303 (mapcan #'(lambda (x) (if (listp x) x (list x))) preloaded-file-list)) |
