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 /src/process.c | |
| 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 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index dac4b14dcea..bef1e6d68f3 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1530,7 +1530,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1530 | 1530 | ||
| 1531 | tem = Qnil; | 1531 | tem = Qnil; |
| 1532 | GCPRO4 (name, program, buffer, current_dir); | 1532 | GCPRO4 (name, program, buffer, current_dir); |
| 1533 | openp (Vexec_path, program, Vexec_suffixes, &tem, make_number (X_OK)); | 1533 | openp (Vexec_path, program, Vexec_suffixes, &tem, make_number (X_OK), 0); |
| 1534 | UNGCPRO; | 1534 | UNGCPRO; |
| 1535 | if (NILP (tem)) | 1535 | if (NILP (tem)) |
| 1536 | report_file_error ("Searching for program", program); | 1536 | report_file_error ("Searching for program", program); |