diff options
| author | Glenn Morris | 2013-12-17 19:21:48 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-12-17 19:21:48 -0800 |
| commit | 1f41ee56ace98fe0d5f288c97ddb73870befed45 (patch) | |
| tree | 6bee6711c5e9c8d2cc03d102b8bd5e1b27ba13c7 /lisp | |
| parent | e82134b1e4efb363e21b1f9103af7ee5ec885ce4 (diff) | |
| download | emacs-1f41ee56ace98fe0d5f288c97ddb73870befed45.tar.gz emacs-1f41ee56ace98fe0d5f288c97ddb73870befed45.zip | |
Add load-prefer-newer option, to load .el if newer than .elc
* src/lread.c (Fload): Pass load_prefer_newer to openp.
Don't bother checking mtime if openp already did it.
(openp): Add `newer' argument, to check all suffixes
and find the newest file.
(syms_of_lread) <load_prefer_newer>: New option.
* src/callproc.c (call_process):
* src/charset.c (load_charset_map_from_file):
* src/emacs.c (init_cmdargs):
* src/image.c (x_create_bitmap_from_file, x_find_image_file):
* src/lisp.h (openp):
* lread.c (Flocate_file_internal):
* src/process.c (Fformat_network_address):
* src/sound.c (Fplay_sound_internal):
* src/w32.c (check_windows_init_file):
* src/w32proc.c (sys_spawnve): Update for new arg spec of openp.
* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.
* etc/NEWS: Mention this.
Fixes: debbugs:2061
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/Makefile.in | 3 | ||||
| -rw-r--r-- | lisp/cus-start.el | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 126f10ae79b..435581799b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-12-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t. | ||
| 4 | |||
| 1 | 2013-12-18 Le Wang <l26wang@gmail.com> | 5 | 2013-12-18 Le Wang <l26wang@gmail.com> |
| 2 | 6 | ||
| 3 | * comint.el (comint-previous-matching-input-from-input): Retain | 7 | * comint.el (comint-previous-matching-input-from-input): Retain |
| @@ -9,6 +13,8 @@ | |||
| 9 | 13 | ||
| 10 | 2013-12-18 Glenn Morris <rgm@gnu.org> | 14 | 2013-12-18 Glenn Morris <rgm@gnu.org> |
| 11 | 15 | ||
| 16 | * cus-start.el (load-prefer-newer): New option. | ||
| 17 | |||
| 12 | * mail/emacsbug.el (report-emacs-bug): | 18 | * mail/emacsbug.el (report-emacs-bug): |
| 13 | Only mention enable-multibyte-characters if non-standard. | 19 | Only mention enable-multibyte-characters if non-standard. |
| 14 | 20 | ||
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 2ac2f3e8d6b..39452edcbf4 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -88,7 +88,8 @@ AUTOGEN_VCS = \ | |||
| 88 | BIG_STACK_DEPTH = 2200 | 88 | BIG_STACK_DEPTH = 2200 |
| 89 | BIG_STACK_OPTS = --eval "(setq max-lisp-eval-depth $(BIG_STACK_DEPTH))" | 89 | BIG_STACK_OPTS = --eval "(setq max-lisp-eval-depth $(BIG_STACK_DEPTH))" |
| 90 | 90 | ||
| 91 | BYTE_COMPILE_FLAGS = $(BIG_STACK_OPTS) $(BYTE_COMPILE_EXTRA_FLAGS) | 91 | # Set load-prefer-newer for the benefit of the non-bootstrappers. |
| 92 | BYTE_COMPILE_FLAGS = $(BIG_STACK_OPTS) --eval '(setq load-prefer-newer t)' $(BYTE_COMPILE_EXTRA_FLAGS) | ||
| 92 | 93 | ||
| 93 | # Files to compile before others during a bootstrap. This is done to | 94 | # Files to compile before others during a bootstrap. This is done to |
| 94 | # speed up the bootstrap process. They're ordered by size, so we use | 95 | # speed up the bootstrap process. They're ordered by size, so we use |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 8e94e85f84c..32013b71125 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -312,6 +312,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 312 | ;; :format "%[Current dir?%] %v" | 312 | ;; :format "%[Current dir?%] %v" |
| 313 | ;; (const :tag " current dir" nil) | 313 | ;; (const :tag " current dir" nil) |
| 314 | ;; (directory :format "%v")))) | 314 | ;; (directory :format "%v")))) |
| 315 | (load-prefer-newer lisp boolean "24.4") | ||
| 315 | ;; minibuf.c | 316 | ;; minibuf.c |
| 316 | (enable-recursive-minibuffers minibuffer boolean) | 317 | (enable-recursive-minibuffers minibuffer boolean) |
| 317 | (history-length minibuffer | 318 | (history-length minibuffer |