2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
+ * lread.c (openp): Change arg exec_only to predicate.
+ (build_load_history): Use XCAR/XCDR.
+ (Flocate_file_internal): New fun.
+ (syms_of_lread): Defsubr it.
+ (Fload): Update call to openp.
+
+ * lisp.h (openp): Update prototype.
+
+ * xfns.c (x_create_bitmap_from_file, x_find_image_file):
+ * w32proc.c (sys_spawnve):
+ * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
+ * w32.c (check_windows_init_file):
+ * sound.c (Fplay_sound_internal):
+ * process.c (Fstart_process):
+ * macfns.c (x_create_bitmap_from_file, x_find_image_file):
+ * mac.c (run_mac_command):
+ * emacs.c (init_cmdargs):
+ * callproc.c (Fcall_process): Update call to openp.
+
* textprop.c (remove_properties): Don't use XCAR without CONSP.
* xterm.c (XTread_socket): Disable the Xutf8LookupString code.
}
/* Search bitmap-file-path for the file, if appropriate. */
- fd = openp (Vx_bitmap_file_path, file, "", &found, 0);
+ fd = openp (Vx_bitmap_file_path, file, "", &found, Qnil);
if (fd < 0)
return -1;
/* LoadLibraryEx won't handle special files handled by Emacs handler. */
GCPRO2 (file_found, search_path);
/* Try to find FILE in data-directory, then x-bitmap-file-path. */
- fd = openp (search_path, file, Qnil, &file_found, 0);
+ fd = openp (search_path, file, Qnil, &file_found, Qnil);
if (fd < 0)
file_found = Qnil;
}
/* Search bitmap-file-path for the file, if appropriate. */
- fd = openp (Vx_bitmap_file_path, file, Qnil, &found, 0);
+ fd = openp (Vx_bitmap_file_path, file, Qnil, &found, Qnil);
if (fd < 0)
return -1;
emacs_close (fd);
GCPRO2 (file_found, search_path);
/* Try to find FILE in data-directory, then x-bitmap-file-path. */
- fd = openp (search_path, file, Qnil, &file_found, 0);
+ fd = openp (search_path, file, Qnil, &file_found, Qnil);
if (fd == -1)
file_found = Qnil;
}
/* Search bitmap-file-path for the file, if appropriate. */
- fd = openp (Vx_bitmap_file_path, file, Qnil, &found, 0);
+ fd = openp (Vx_bitmap_file_path, file, Qnil, &found, Qnil);
if (fd < 0)
return -1;
emacs_close (fd);
GCPRO2 (file_found, search_path);
/* Try to find FILE in data-directory, then x-bitmap-file-path. */
- fd = openp (search_path, file, Qnil, &file_found, 0);
+ fd = openp (search_path, file, Qnil, &file_found, Qnil);
if (fd == -1)
file_found = Qnil;