diff options
| author | Stefan Monnier | 2002-04-30 01:04:05 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-04-30 01:04:05 +0000 |
| commit | de2413e9d9265a81128bae814472f9c4e7d09109 (patch) | |
| tree | b10cda89a36a5e17293933bc94b9b4fc09d9bf8f /src | |
| parent | 44c7a52627837bfc8b67c6fd0fc94cc9e518a409 (diff) | |
| download | emacs-de2413e9d9265a81128bae814472f9c4e7d09109.tar.gz emacs-de2413e9d9265a81128bae814472f9c4e7d09109.zip | |
(x_create_bitmap_from_file, x_find_image_file): Update call to openp.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 19 | ||||
| -rw-r--r-- | src/macfns.c | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/xfns.c | 4 |
4 files changed, 25 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 998bdebb361..75f0ad9a9cd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -5,6 +5,25 @@ | |||
| 5 | 5 | ||
| 6 | 2002-04-29 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2002-04-29 Stefan Monnier <monnier@cs.yale.edu> |
| 7 | 7 | ||
| 8 | * lread.c (openp): Change arg exec_only to predicate. | ||
| 9 | (build_load_history): Use XCAR/XCDR. | ||
| 10 | (Flocate_file_internal): New fun. | ||
| 11 | (syms_of_lread): Defsubr it. | ||
| 12 | (Fload): Update call to openp. | ||
| 13 | |||
| 14 | * lisp.h (openp): Update prototype. | ||
| 15 | |||
| 16 | * xfns.c (x_create_bitmap_from_file, x_find_image_file): | ||
| 17 | * w32proc.c (sys_spawnve): | ||
| 18 | * w32fns.c (x_create_bitmap_from_file, x_find_image_file): | ||
| 19 | * w32.c (check_windows_init_file): | ||
| 20 | * sound.c (Fplay_sound_internal): | ||
| 21 | * process.c (Fstart_process): | ||
| 22 | * macfns.c (x_create_bitmap_from_file, x_find_image_file): | ||
| 23 | * mac.c (run_mac_command): | ||
| 24 | * emacs.c (init_cmdargs): | ||
| 25 | * callproc.c (Fcall_process): Update call to openp. | ||
| 26 | |||
| 8 | * textprop.c (remove_properties): Don't use XCAR without CONSP. | 27 | * textprop.c (remove_properties): Don't use XCAR without CONSP. |
| 9 | 28 | ||
| 10 | * xterm.c (XTread_socket): Disable the Xutf8LookupString code. | 29 | * xterm.c (XTread_socket): Disable the Xutf8LookupString code. |
diff --git a/src/macfns.c b/src/macfns.c index a4235d7c653..159b93971fa 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -539,7 +539,7 @@ x_create_bitmap_from_file (f, file) | |||
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | /* Search bitmap-file-path for the file, if appropriate. */ | 541 | /* Search bitmap-file-path for the file, if appropriate. */ |
| 542 | fd = openp (Vx_bitmap_file_path, file, "", &found, 0); | 542 | fd = openp (Vx_bitmap_file_path, file, "", &found, Qnil); |
| 543 | if (fd < 0) | 543 | if (fd < 0) |
| 544 | return -1; | 544 | return -1; |
| 545 | /* LoadLibraryEx won't handle special files handled by Emacs handler. */ | 545 | /* LoadLibraryEx won't handle special files handled by Emacs handler. */ |
| @@ -5570,7 +5570,7 @@ x_find_image_file (file) | |||
| 5570 | GCPRO2 (file_found, search_path); | 5570 | GCPRO2 (file_found, search_path); |
| 5571 | 5571 | ||
| 5572 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ | 5572 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ |
| 5573 | fd = openp (search_path, file, Qnil, &file_found, 0); | 5573 | fd = openp (search_path, file, Qnil, &file_found, Qnil); |
| 5574 | 5574 | ||
| 5575 | if (fd < 0) | 5575 | if (fd < 0) |
| 5576 | file_found = Qnil; | 5576 | file_found = Qnil; |
diff --git a/src/w32fns.c b/src/w32fns.c index b3194b96055..2345b95bdcc 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -576,7 +576,7 @@ x_create_bitmap_from_file (f, file) | |||
| 576 | } | 576 | } |
| 577 | 577 | ||
| 578 | /* Search bitmap-file-path for the file, if appropriate. */ | 578 | /* Search bitmap-file-path for the file, if appropriate. */ |
| 579 | fd = openp (Vx_bitmap_file_path, file, Qnil, &found, 0); | 579 | fd = openp (Vx_bitmap_file_path, file, Qnil, &found, Qnil); |
| 580 | if (fd < 0) | 580 | if (fd < 0) |
| 581 | return -1; | 581 | return -1; |
| 582 | emacs_close (fd); | 582 | emacs_close (fd); |
| @@ -9454,7 +9454,7 @@ x_find_image_file (file) | |||
| 9454 | GCPRO2 (file_found, search_path); | 9454 | GCPRO2 (file_found, search_path); |
| 9455 | 9455 | ||
| 9456 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ | 9456 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ |
| 9457 | fd = openp (search_path, file, Qnil, &file_found, 0); | 9457 | fd = openp (search_path, file, Qnil, &file_found, Qnil); |
| 9458 | 9458 | ||
| 9459 | if (fd == -1) | 9459 | if (fd == -1) |
| 9460 | file_found = Qnil; | 9460 | file_found = Qnil; |
diff --git a/src/xfns.c b/src/xfns.c index e88421e73b0..7bf02c286a3 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -649,7 +649,7 @@ x_create_bitmap_from_file (f, file) | |||
| 649 | } | 649 | } |
| 650 | 650 | ||
| 651 | /* Search bitmap-file-path for the file, if appropriate. */ | 651 | /* Search bitmap-file-path for the file, if appropriate. */ |
| 652 | fd = openp (Vx_bitmap_file_path, file, Qnil, &found, 0); | 652 | fd = openp (Vx_bitmap_file_path, file, Qnil, &found, Qnil); |
| 653 | if (fd < 0) | 653 | if (fd < 0) |
| 654 | return -1; | 654 | return -1; |
| 655 | emacs_close (fd); | 655 | emacs_close (fd); |
| @@ -6674,7 +6674,7 @@ x_find_image_file (file) | |||
| 6674 | GCPRO2 (file_found, search_path); | 6674 | GCPRO2 (file_found, search_path); |
| 6675 | 6675 | ||
| 6676 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ | 6676 | /* Try to find FILE in data-directory, then x-bitmap-file-path. */ |
| 6677 | fd = openp (search_path, file, Qnil, &file_found, 0); | 6677 | fd = openp (search_path, file, Qnil, &file_found, Qnil); |
| 6678 | 6678 | ||
| 6679 | if (fd == -1) | 6679 | if (fd == -1) |
| 6680 | file_found = Qnil; | 6680 | file_found = Qnil; |