aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorGlenn Morris2013-12-17 19:21:48 -0800
committerGlenn Morris2013-12-17 19:21:48 -0800
commit1f41ee56ace98fe0d5f288c97ddb73870befed45 (patch)
tree6bee6711c5e9c8d2cc03d102b8bd5e1b27ba13c7 /src/w32.c
parente82134b1e4efb363e21b1f9103af7ee5ec885ce4 (diff)
downloademacs-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/w32.c')
-rw-r--r--src/w32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index 159085e7f50..dde74bfcdd9 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1,5 +1,6 @@
1/* Utility and Unix shadow routines for GNU Emacs on the Microsoft Windows API. 1/* Utility and Unix shadow routines for GNU Emacs on the Microsoft Windows API.
2 Copyright (C) 1994-1995, 2000-2013 Free Software Foundation, Inc. 2
3Copyright (C) 1994-1995, 2000-2013 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -8602,7 +8603,7 @@ check_windows_init_file (void)
8602 need to ENCODE_FILE here, but we do need to convert the file 8603 need to ENCODE_FILE here, but we do need to convert the file
8603 names from UTF-8 to ANSI. */ 8604 names from UTF-8 to ANSI. */
8604 init_file = build_string ("term/w32-win"); 8605 init_file = build_string ("term/w32-win");
8605 fd = openp (Vload_path, init_file, Fget_load_suffixes (), NULL, Qnil); 8606 fd = openp (Vload_path, init_file, Fget_load_suffixes (), NULL, Qnil, 0);
8606 if (fd < 0) 8607 if (fd < 0)
8607 { 8608 {
8608 Lisp_Object load_path_print = Fprin1_to_string (Vload_path, Qnil); 8609 Lisp_Object load_path_print = Fprin1_to_string (Vload_path, Qnil);