summaryrefslogtreecommitdiff
path: root/lisp/loadup.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix autoload of flymake from elisp-mode during bootstrap (bug#28994)Stefan Monnier2017-10-251-0/+1
| | | | | | * lisp/loadup.el: add `progmodes` to load-path so we can find flymake.el. * lisp/kmacro.el: Require `replace` since we use query-replace-map. * lisp/replace.el: Require `text-mode` since we use text-mode-map.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-2/+2
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Make charprop.el provide a featureGlenn Morris2017-04-261-3/+3
| | | | | | * admin/unidata/unidata-gen.el (unidata-gen-charprop): Provide a feature. * lisp/loadup.el: Use the charprop feature.
* ; * lisp/loadup.el: Revert accidental blank line in previous.Glenn Morris2017-04-261-1/+0
|
* * lisp/loadup.el: Get charprop.el into etc/DOC again.Glenn Morris2017-04-261-1/+3
|
* Generate each unicode lisp file independentlyGlenn Morris2017-04-241-2/+5
| | | | | | | | | | | | | | | | This is better for parallel builds, eg it eliminates race conditions from having one process write multiple files. * admin/unidata/Makefile.in (lparen, unifiles): New variables. Parse unidata-gen.el, not charprop.el, to get the list of uni- files. (all): Explicitly list the output lisp files. (PHONY_EXTRAS): Remove. (${unidir}/charprop.el): Change rule to just be for this file. (${unifiles}): New rule to write each unicode lisp file. (extraclean): Simplify. * admin/unidata/unidata-gen.el (unidata-gen-charprop): Quieten in batch mode. (unidata-gen-files): Remove, no longer used. * lisp/loadup.el: Update command-line parser.
* In CANNOT_DUMP builds, allow editing of files named "dump".Ken Raeburn2017-04-061-4/+9
| | | | | | * lisp/loadup.el: Perform the "dump" or "bootstrap" actions like calling dump-emacs only if dump-emacs is defined; otherwise, don't treat those command-line argument specially.
* Allow a CANNOT_DUMP build to use exec-path during bootstrap.Ken Raeburn2017-04-061-6/+5
| | | | | | | During a bootstrap, loading rmail.el invokes movemail to determine its flavor, but call-process doesn't work if exec-path is nil. * lisp/loadup.el: Only clear exec-path if dumping.
* ; Typo fixes in commentPaul Eggert2017-03-071-3/+3
|
* Revert "Replace ldefs-boot with a much smaller file"Phillip Lord2017-03-071-13/+11
| | | | | | | | | | | This reverts commit c27b645956a11fab1dd8fa189254d525390958f5. This commit has been reverted because the new mechanism was too sensitive to changes in the lisp source, generation of new ldefs-boot files was platform specific and resulted in warnings about undefined variables. See also 11436e2890d.
* Revert "Remove conditional includes from bootstrap"Phillip Lord2017-03-071-64/+58
| | | | | | | | | | | This reverts commit 1b946305182312faa7fcd838caf55dcb07b2ab04. This commit has been reverted because the new mechanism was too sensitive to changes in the lisp source, generation of new ldefs-boot files was platform specific and resulted in warnings about undefined variables. See also 11436e2890d.
* Remove conditional includes from bootstrapPhillip Lord2017-02-281-58/+64
| | | | | | | | | | | | | | | Previously, bootstrap-emacs includes optional functionality, depending on the platform which is not needed for bootstrap function. As a result, bootstrap-emacs contains different functions in different circumstances. If ldefs-boot-auto.el is generated, then loaded functions will not be added to ldefs-boot-auto.el, although they may be required during some builds. With this change, bootstrap-emacs should always behave the same way and, therefore, require the same autoloads. * lisp/loadup.el: No longer load optional includes during bootstrap dumping. * lisp/ldefs-boot-auto.el: Regenerate. * lisp/ldefs-boot-manual.el: Add two autoloads.
* Remove the build number from emacs-version variableGlenn Morris2017-02-171-6/+5
| | | | | | | | | | | | | | | It's a largely internal detail that can confuse users. (Bug#25590) * lisp/version.el (emacs-build-number): New constant. (emacs-version): Use emacs-build-number. * lisp/loadup.el (top-level): When dumping, increment emacs-build-number rather than emacs-version. * src/emacs.c (emacs-version): Doc fix. * doc/lispref/intro.texi (Version Info): Update emacs-version details. Mention emacs-build-number. * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/emacsbug.el (report-emacs-bug): * admin/admin.el (set-version): Update for emacs-version change. ; * etc/NEWS: Mention this.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | avoid Eager macro-expansion failure: (void-function string-to-list)Sam Steingold2016-12-191-0/+1
| | | | | | | | | | | | * loadup.el [ns]: "ucs-normalize" uses `string-to-list' which is defined in "mule-util", so we have to load "mule-util" before "ucs-normalize", otherwise I get "Eager macro-expansion failure" on "make bootstrap"
* | Replace ldefs-boot with a much smaller filePhillip Lord2016-12-131-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (bootstrap-build,generate-ldefs-boot): New targets. (bootstrap): Depend on bootstrap-build. * admin/ldefs-clean.el: New file. * lisp/Makefile.in (compile-first): Depend on loaddefs.el * lisp/ldefs-boot.el: Remove. * lisp/ldefs-boot-auto.el: New file. * lisp/ldefs-boot-manual.el: New file. * lisp/loadup.el: Load ldefs-boot-manual.el. * src/emacs.c (generating_ldefs_boot): New variable. (main): Check whether we are generating ldefs. * src/eval.c (autoload-do-load): Dump autoload forms to stderr when requested. * src/lisp.h (generating_ldefs_boot): New variable. * admin/gitmerge.el, admin/make-tarball.txt, admin/notes/copyright, lisp/Makefile.in, lisp/cus-dep.el, lisp/emacs-lisp/elint.el, lisp/finder.el, lisp/loadup.el, msdos/mainmake.v2: Update reference to ldefs-boot. * admin/update_autogen: Alter mechanism for ldefs-boot generation.
* | Avoid delving into Git internals for versionPaul Eggert2016-06-011-4/+6
| | | | | | | | | | | | | | | | * lisp/loadup.el (exec-path): Set it to nil later, so that emacs-repository-get-version can invoke git commands in the PATH. * lisp/version.el (emacs-repository--version-git-1): Remove. (emacs-repository-get-version): Let Git do it rather than delving into Git internals.
* | Make autoloads populate a new definition-prefixes tableStefan Monnier2016-05-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (definition-prefixes): New hash table. (register-definition-prefixes): New function. * lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): New var. (autoload--split-prefixes-1, autoload--split-prefixes) (autoload--make-defs-autoload): New functions. (autoload-defs-autoload-max-size, autoload-popular-prefixes): New vars. (autoload-generate-file-autoloads): Obey autoload-compute-prefixes. (update-directory-autoloads): Don't touch loaddefs.el if the set of autoloads hasn't changed (i.e. if only the timestamp would change). * lisp/loadup.el: Purify definition-prefixes. * lisp/w32-fns.el: Keep name space clean. (w32-set-default-process-coding-system): Rename from set-default-process-coding-system. (w32-set-system-coding-system): Rename from set-w32-system-coding-system.
* | -Paul Eggert2016-03-221-1/+16
|\|
| * Fix startup of "emacs -nw" on systems that CANNOT_DUMPEli Zaretskii2016-03-151-0/+4
| | | | | | | | | | | | | | | | * src/xdisp.c (syms_of_xdisp) <resize-mini-windows>: Initialize to nil. * lisp/loadup.el <resize-mini-windows>: Set to 'grow-only' after loading window.el. (Bug#22975)
| * Avoid crashes at startup on systems that CANNOT_DUMPEli Zaretskii2016-03-121-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (syms_of_xdisp) <redisplay--inhibit-bidi>: New boolean variable. (init_iterator, reseat_to_string) (Fcurrent_bidi_paragraph_direction) (Fbidi_find_overridden_directionality): Use redisplay--inhibit-bidi instead of purify-flag, to determine when it's safe to reorder bidirectional text. * lisp/loadup.el (redisplay--inhibit-bidi): Set to t at the beginning of the file. Reset to nil when charprop.el is successfully loaded, or when we are going to dump, whichever happens last. (Bug#22975)
* | Merge from origin/emacs-25John Wiegley2016-01-111-1/+1
|\| | | | | | | | | | | ef33bc7 Spelling and grammar fixes 9c3dbab Fix copyright years by hand 0e96320 Update copyright year to 2016
| * Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | | | | | Run admin/update-copyright.
* | Merge emacs-25 into master (using imerge)John Wiegley2015-12-291-1/+6
|\|
| * Fix bootstrap broken by changes related to OS X file-name encodingEli Zaretskii2015-12-251-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/ucs-normalize.el (eval-when-compile): Make sure char-code-property-alist includes elements that allow access to 'decomposition' and 'canonical-combining-class' Unicode properties, as compiling ucs-normalize.el requires that. * lisp/loadup.el (featurep 'ns): Load ucs-normalize and ns-win only of charprop.el was already loaded. * src/Makefile.in ($(lispsource)/international/ucs-normalize.elc): New order-only dependency.
| * ; Re-enabled "File-name completion of non-ASCII characters on OS X (bug#22169)""Anders Lindgren2015-12-251-0/+1
| | | | | | | | | | | | ; This reverts commit d107eda498f94423d846b0e2f1be7facab417b2a. ; A follow-up to this will be made to ucs-normalize.el etc. to ensure that building from scratch works.
| * ; Revert "File-name completion of non-ASCII characters on OS X (bug#22169)"Anders Lindgren2015-12-241-1/+0
| | | | | | | | | | | | ; This reverts commit 09053075225fec8a6cf7a72017a6dfc1ec6b6f0c. ; This caused a build from scratch to fail.
| * File-name completion of non-ASCII characters on OS X (bug#22169)Anders Lindgren2015-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The coding system `utf-8-nfd', locally defined in ns-win.el, didn't provide a :pre-write-conversion method, causing file name completion of non-ASCII characters to fail. Solved by using the `utf-8-hfs' coding system provided by `ucs-normalize'. * lisp/loadup.el: Load international/ucs-normalize (when building for ns). * lisp/term/ns-win.el (utf-8-nfd): Made `utf-8-nfd' as alias for `utf-8-hfs' and removed the old implementation. Set `utf-8-hfs' as the file name coding system. * src/nsfns.c (ns-convert-utf8-nfd-to-nfc): Removed.
| * * lisp/loadup.el: Enlarge the size of the hash table to 80000.Eli Zaretskii2015-11-131-1/+1
| | | | | | | | Backport.
* | Use obarray functions from obarray.Przemysław Wojnowski2015-11-201-0/+1
| | | | | | | | | | | | | | | | | | * lisp/abbrev.el (copy-abbrev-table, abbrev-table-p, make-abbrev-table, abbrev-table-get, abbrev-table-put, abbrev-table-empty-p, clear-abbrev-table, define-abbrev, abbrev--symbol, abbrev-table-menu): delegate to obarray.el functions. * lisp/loadup.el: load obarray before abbrev * test/automated/abbrev-tests.el: new tests
* | * lisp/loadup.el: Set max-lisp-eval-depth hereStefan Monnier2015-11-181-0/+4
| | | | | | | | | | * lisp/Makefile.in (BIG_STACK_DEPTH, BIG_STACK_OPTS): Remove. (BYTE_COMPILE_FLAGS): Adjust accordingly.
* | * lisp/loadup.el: Enlarge the size of the hash table to 80000.Eli Zaretskii2015-11-131-1/+1
|/
* No need for cp51932.el, eucjp-ms.el to not be compiled any more.Glenn Morris2015-06-151-2/+2
| | | | | | | * admin/charsets/cp51932.awk, admin/charsets/eucjp-ms.awk: Don't set no-byte-compile in the outputs. * lisp/loadup.el: Don't specify uncompiled cp51932, eucjp-ms.
* * src/lisp.mk: Remove from repository and generate at build-time.Glenn Morris2015-05-161-17/+19
| | | | | | | | | | * src/Makefile.in (lisp.mk): New rule to generate from loadup.el. (shortlisp_filter): New variable. (emacs$(EXEEXT), $(etc)/DOC): Depend on lisp.mk. (distclean): Remove lisp.mk. * Makefile.in ($(MAKEFILE_NAME)): No longer depend on src/lisp.mk. * lisp/loadup.el: Tweak layout to make it easier to parse. * make-dist: Do not distribute src/lisp.mk.
* Small src/Makefile simplification.Glenn Morris2015-05-161-1/+1
| | | | | | * src/lisp.mk (shortlisp): Rename from lisp, remove $lispsource prefix. * src/Makefile.in (lisp): Derive from shortlisp. ($(etc)/DOC): Use $shortlisp rather than parsing lisp.mk.
* Tweak japanese.el's loading of dependencies.Glenn Morris2015-05-151-0/+2
| | | | | | | | | * lisp/loadup.el: Explicitly load cp51932 and eucjp-ms. * lisp/language/japanese.el: Use require rather than load. * lisp/international/cp51932.el, lisp/international/eucjp-ms.el: Provide a feature. * admin/charsets/eucjp-ms.awk, admin/charsets/cp51932.awk: Provide a feature in the generated file.
* * lisp/loadup.el ("emacs-lisp/cl-generic"): PreloadStefan Monnier2015-05-131-0/+1
| | | | | | | | | | | * src/lisp.mk (lisp): Add emacs-lisp/cl-generic.elc. * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Avoid defalias for closures which are not immutable. (cl--generic-prefill-dispatchers): New macro. Use it to prefill the dispatchers table with various entries. * lisp/emacs-lisp/ert.el (emacs-lisp-mode-hook): * lisp/emacs-lisp/seq.el (emacs-lisp-mode-hook): Use add-hook.
* * lisp/loadup.el (custom-current-group-alist): Reset before dumping.Glenn Morris2015-04-201-0/+2
|
* ; * lisp/loadup.el: Comment.Glenn Morris2015-04-201-0/+2
|
* * lisp/loadup.el (exec-path): Avoid storing build-time PATH in binary.Ludovic Courtès2015-04-201-0/+2
| | | | Fixes: debbugs:20330
* Fix recent cus-start changes that added customize-roguesStefan Monnier2015-04-151-3/+1
| | | | | | * lisp/cus-start.el (custom-delayed-init-variables): Initialize the vars early. * lisp/loadup.el ("cus-start"): Move to the end to reduce customize-rogue.
* * lisp/loadup.el ("cus-start"): Load it after loaddefs.elStefan Monnier2015-04-131-1/+1
| | | | | | | | Fixes: debbugs:20321 * lisp/cus-start.el (read-buffer-function): Don't advertize iswitchb-read-buffer any more. (iswitchb): Don't tweak this obsolete group any more.
* Tighten up the tagcode used for eieio and cl-struct objectsStefan Monnier2015-01-271-1/+2
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Set the function slot of the tag symbol to :quick-object-witness-check. (eieio-object-p): Use :quick-object-witness-check. (eieio--generic-tagcode): Use cl--generic-struct-tag. * lisp/emacs-lisp/cl-preloaded.el: New file. * lisp/emacs-lisp/cl-macs.el (cl--bind-inits): Remove, unused. (cl--transform-lambda, cl-destructuring-bind): Remove cl--bind-inits. (cl--make-usage-args): Strip away &aux args. (cl-case, cl-typecase, cl--parse-loop-clause): Use macroexp-let2. (cl-the, cl-check-type): Use macroexp-let2 and cl-typep. (cl-defstruct): Use `declare' and cl-struct-define. * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): New function. (cl--generic-struct-tagcode): Use it to tighten the tagcode. * lisp/loadup.el: Load cl-preloaded. * src/lisp.mk (lisp): Add cl-preloaded.
* Update copyright year to 2015Paul Eggert2015-01-011-2/+2
| | | | Run admin/update-copyright.
* * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Enable by default.Stefan Monnier2014-10-151-0/+1
| | | | | | | Remove incorrect handling of eldoc-print-after-edit. (eldoc-message-commands, eldoc-last-data): Use defvar. * lisp/loadup.el (emacs-lisp/eldoc): Load it. * src/lisp.mk (lisp): Add emacs-lisp/eldoc.elc.
* * lisp/term/w32-win.el: Move all code from 32-common-fns.el here.Stefan Monnier2014-10-061-1/+0
| | | | | | | | | | | (gui-select-text, gui-selection-value): Use w32 handlers in the w32 console as well. * lisp/w32-common-fns.el: Remove. * lisp/loadup.el: Don't load w32-common-fns.el. * w32-fns.elc: Don't require w32-common-fns. * src/lisp.mk (lisp): Remove w32-common-fns.elc. Fixes: debbugs:18629
* * lisp/icomplete.el: Move Iswitchb autoload here. Much simpler.Stefan Monnier2014-10-061-2/+0
| | | | | | | | * lisp/Makefile.in (obsolete-autoloads): Remove. (AUTOGENEL): Remove obsolete/loaddefs.el. * lisp/loadup.el: Don't load obsolete/loaddefs.el. * lisp/obsolete/iswitchb.el (iswitchb-mode): Use normal autoload cookie. Remove redundant obsolescence thingy.
* * lisp/Makefile.in (obsolete-autoloads): Write to a separate file,Glenn Morris2014-10-061-0/+2
| | | | | | | | | | | | to workaround autoloads bug. (AUTOGENEL): Add obsolete/loaddefs.el. * lisp/loadup.el: Load obsolete/loaddefs.el if present. * lisp/subr.el (do-after-load-evaluation): Don't warn about obsolete/loaddefs.el. Fixes: debbugs:17407
* Consolidate x-select-text.Stefan Monnier2014-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/frame.el (gui-method, gui-method-define, gui-method-declare) (gui-call): New macros. (gui-method--name): New function. (frame-creation-function-alist): Use gui-method-declare. (make-frame): Use gui-method. * lisp/select.el (gui-select-enable-clipboard): Rename from x-select-enable-clipboard and move here. (x-select-enable-clipboard): Define as obsolete alias. (gui-last-selected-text): New var, to replace x-last-selected-text. (gui-select-text): New GUI method. (gui-select-text): New function. (x-select-text): Define as obsolete alias. * lisp/term/common-win.el (x-select-enable-clipboard, x-select-text): Move to select.el. * lisp/simple.el (interprogram-cut-function): Change default to x-select-text. (interprogram-paste-function): Change default to `ignore'. * lisp/w32-common-fns.el (interprogram-cut-function): Don't modify. * lisp/term/x-win.el (interprogram-cut-function): Don't modify. (gui-select-text): Add method for x. * lisp/term/w32-win.el (gui-select-text): Add method for w32. * lisp/term/pc-win.el (x-last-selected-text): Remove, use gui-last-selected-text instead. (msdos-initialize-window-system): Don't set interprogram-cut-function. (gui-select-text): Add method for pc. * lisp/term/ns-win.el (ns-last-selected-text): Remove, use gui-last-selected-text instead. (gui-select-text): Add method for ns. (x-setup-function-keys): Don't change interprogram-cut-function. * lisp/loadup.el ("startup"): Load after "frame". * lisp/subr.el (package--builtin-versions, package--description-file): Move from startup.el. * lisp/startup.el (package--builtin-versions, package--description-file): Move to subr.el. (handle-args-function-alist, window-system-initialization-alist): Use gui-method-declare. (command-line): Use gui-method. * src/xselect.c (selection-converter-alist): Fix docstring.