aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-20 22:34:48 -0700
committerPaul Eggert2011-03-20 22:34:48 -0700
commit6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef (patch)
treef7ff137da14c352412ee3dc3fbcaf1316428fd97 /src
parent81e56e612dab7d80485c640068531710a713d205 (diff)
parent77185bdf91d42fb19c02af0f51ce63280ce911a0 (diff)
downloademacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.tar.gz
emacs-6e5fa6bfce1362c2ebf049fcfa1e6f2a4762ccef.zip
Merge from trunk and from gnulib stdio.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog31
-rw-r--r--src/makefile.w32-in46
-rw-r--r--src/minibuf.c33
-rw-r--r--src/xfaces.c2
4 files changed, 84 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fdf57152294..26e343ddde4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,8 +2,6 @@
2 2
3 * fileio.c (Fcopy_file): Report error if fchown or fchmod fail. 3 * fileio.c (Fcopy_file): Report error if fchown or fchmod fail.
4 4
52011-03-20 Paul Eggert <eggert@cs.ucla.edu>
6
7 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303). 5 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
8 6
9 * process.c (Fmake_network_process): Use socklen_t, not int, 7 * process.c (Fmake_network_process): Use socklen_t, not int,
@@ -24,8 +22,6 @@
24 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros. 22 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
25 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298). 23 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
26 24
272011-03-19 Paul Eggert <eggert@cs.ucla.edu>
28
29 Make tparam.h and terminfo.c consistent. 25 Make tparam.h and terminfo.c consistent.
30 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include 26 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include
31 tparam.h instead, since it declares them. 27 tparam.h instead, since it declares them.
@@ -61,8 +57,6 @@
61 (find_automatic_composition): Mark vars as initialized, 57 (find_automatic_composition): Mark vars as initialized,
62 with a FIXME (Bug#8290). 58 with a FIXME (Bug#8290).
63 59
642011-03-18 Paul Eggert <eggert@cs.ucla.edu>
65
66 character.h: Rename locals to avoid shadowing. 60 character.h: Rename locals to avoid shadowing.
67 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE): 61 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
68 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE): 62 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
@@ -101,6 +95,31 @@
101 * callproc.c (call_process_cleanup): Now static. 95 * callproc.c (call_process_cleanup): Now static.
102 (relocate_fd): Rename locals to avoid shadowing. 96 (relocate_fd): Rename locals to avoid shadowing.
103 97
982011-03-20 Glenn Morris <rgm@gnu.org>
99
100 * config.in: Remove file.
101
1022011-03-20 Juanma Barranquero <lekktu@gmail.com>
103
104 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
105 are now in src/globals.h.
106 (syms_of_minibuf): Remove spurious & from previous change.
107
1082011-03-20 Leo <sdl.web@gmail.com>
109
110 * minibuf.c (completing-read-function): New variable.
111 (completing-read-default): Rename from completing-read.
112 (completing-read): Call completing-read-function.
113
1142011-03-19 Juanma Barranquero <lekktu@gmail.com>
115
116 * xfaces.c (Fx_load_color_file):
117 Read color file from absolute filename (bug#8250).
118
1192011-03-19 Juanma Barranquero <lekktu@gmail.com>
120
121 * makefile.w32-in: Update dependencies.
122
1042011-03-17 Eli Zaretskii <eliz@gnu.org> 1232011-03-17 Eli Zaretskii <eliz@gnu.org>
105 124
106 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h. 125 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 3d882b23d6b..62c40ca1f94 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -221,7 +221,7 @@ GLOBAL_SOURCES = dosfns.c msdos.c \
221 region-cache.c sound.c atimer.c \ 221 region-cache.c sound.c atimer.c \
222 doprnt.c intervals.c textprop.c composite.c 222 doprnt.c intervals.c textprop.c composite.c
223SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ 223SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
224 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o 224 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
225obj = $(GLOBAL_SOURCES:.c=.o) 225obj = $(GLOBAL_SOURCES:.c=.o)
226 226
227globals.h: gl-stamp 227globals.h: gl-stamp
@@ -386,6 +386,7 @@ $(BLD)/alloc.$(O) : \
386 $(EMACS_ROOT)/nt/inc/unistd.h \ 386 $(EMACS_ROOT)/nt/inc/unistd.h \
387 $(EMACS_ROOT)/nt/inc/sys/time.h \ 387 $(EMACS_ROOT)/nt/inc/sys/time.h \
388 $(LISP_H) \ 388 $(LISP_H) \
389 $(PROCESS_H) \
389 $(SRC)/atimer.h \ 390 $(SRC)/atimer.h \
390 $(SRC)/blockinput.h \ 391 $(SRC)/blockinput.h \
391 $(SRC)/buffer.h \ 392 $(SRC)/buffer.h \
@@ -396,7 +397,6 @@ $(BLD)/alloc.$(O) : \
396 $(SRC)/frame.h \ 397 $(SRC)/frame.h \
397 $(SRC)/intervals.h \ 398 $(SRC)/intervals.h \
398 $(SRC)/keyboard.h \ 399 $(SRC)/keyboard.h \
399 $(PROCESS_H) \
400 $(SRC)/puresize.h \ 400 $(SRC)/puresize.h \
401 $(SRC)/syssignal.h \ 401 $(SRC)/syssignal.h \
402 $(SRC)/systime.h \ 402 $(SRC)/systime.h \
@@ -484,8 +484,10 @@ $(BLD)/callproc.$(O) : \
484 $(CONFIG_H) \ 484 $(CONFIG_H) \
485 $(EMACS_ROOT)/nt/inc/unistd.h \ 485 $(EMACS_ROOT)/nt/inc/unistd.h \
486 $(EMACS_ROOT)/nt/inc/sys/file.h \ 486 $(EMACS_ROOT)/nt/inc/sys/file.h \
487 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
487 $(EMACS_ROOT)/nt/inc/sys/time.h \ 488 $(EMACS_ROOT)/nt/inc/sys/time.h \
488 $(LISP_H) \ 489 $(LISP_H) \
490 $(PROCESS_H) \
489 $(SRC)/atimer.h \ 491 $(SRC)/atimer.h \
490 $(SRC)/blockinput.h \ 492 $(SRC)/blockinput.h \
491 $(SRC)/buffer.h \ 493 $(SRC)/buffer.h \
@@ -497,7 +499,6 @@ $(BLD)/callproc.$(O) : \
497 $(SRC)/dispextern.h \ 499 $(SRC)/dispextern.h \
498 $(SRC)/epaths.h \ 500 $(SRC)/epaths.h \
499 $(SRC)/frame.h \ 501 $(SRC)/frame.h \
500 $(PROCESS_H) \
501 $(SRC)/syssignal.h \ 502 $(SRC)/syssignal.h \
502 $(SRC)/systime.h \ 503 $(SRC)/systime.h \
503 $(SRC)/systty.h \ 504 $(SRC)/systty.h \
@@ -653,6 +654,7 @@ $(BLD)/dired.$(O) : \
653 $(EMACS_ROOT)/nt/inc/unistd.h \ 654 $(EMACS_ROOT)/nt/inc/unistd.h \
654 $(EMACS_ROOT)/nt/inc/sys/dir.h \ 655 $(EMACS_ROOT)/nt/inc/sys/dir.h \
655 $(EMACS_ROOT)/nt/inc/sys/time.h \ 656 $(EMACS_ROOT)/nt/inc/sys/time.h \
657 $(EMACS_ROOT)/lib/filemode.h \
656 $(LISP_H) \ 658 $(LISP_H) \
657 $(SRC)/atimer.h \ 659 $(SRC)/atimer.h \
658 $(SRC)/blockinput.h \ 660 $(SRC)/blockinput.h \
@@ -662,7 +664,6 @@ $(BLD)/dired.$(O) : \
662 $(SRC)/coding.h \ 664 $(SRC)/coding.h \
663 $(SRC)/commands.h \ 665 $(SRC)/commands.h \
664 $(SRC)/composite.h \ 666 $(SRC)/composite.h \
665 $(EMACS_ROOT)/lib/filemode.h \
666 $(SRC)/ndir.h \ 667 $(SRC)/ndir.h \
667 $(SRC)/regex.h \ 668 $(SRC)/regex.h \
668 $(SRC)/systime.h 669 $(SRC)/systime.h
@@ -673,6 +674,7 @@ $(BLD)/dispnew.$(O) : \
673 $(EMACS_ROOT)/nt/inc/unistd.h \ 674 $(EMACS_ROOT)/nt/inc/unistd.h \
674 $(EMACS_ROOT)/nt/inc/sys/time.h \ 675 $(EMACS_ROOT)/nt/inc/sys/time.h \
675 $(LISP_H) \ 676 $(LISP_H) \
677 $(PROCESS_H) \
676 $(SRC)/atimer.h \ 678 $(SRC)/atimer.h \
677 $(SRC)/blockinput.h \ 679 $(SRC)/blockinput.h \
678 $(SRC)/buffer.h \ 680 $(SRC)/buffer.h \
@@ -687,7 +689,6 @@ $(BLD)/dispnew.$(O) : \
687 $(SRC)/indent.h \ 689 $(SRC)/indent.h \
688 $(SRC)/intervals.h \ 690 $(SRC)/intervals.h \
689 $(SRC)/keyboard.h \ 691 $(SRC)/keyboard.h \
690 $(PROCESS_H) \
691 $(SRC)/syssignal.h \ 692 $(SRC)/syssignal.h \
692 $(SRC)/systime.h \ 693 $(SRC)/systime.h \
693 $(SRC)/termchar.h \ 694 $(SRC)/termchar.h \
@@ -726,8 +727,8 @@ $(BLD)/editfns.$(O) : \
726 $(EMACS_ROOT)/nt/inc/pwd.h \ 727 $(EMACS_ROOT)/nt/inc/pwd.h \
727 $(EMACS_ROOT)/nt/inc/unistd.h \ 728 $(EMACS_ROOT)/nt/inc/unistd.h \
728 $(EMACS_ROOT)/nt/inc/sys/time.h \ 729 $(EMACS_ROOT)/nt/inc/sys/time.h \
729 $(EMACS_ROOT)/lib/strftime.h \
730 $(EMACS_ROOT)/lib/intprops.h \ 730 $(EMACS_ROOT)/lib/intprops.h \
731 $(EMACS_ROOT)/lib/strftime.h \
731 $(LISP_H) \ 732 $(LISP_H) \
732 $(SRC)/atimer.h \ 733 $(SRC)/atimer.h \
733 $(SRC)/blockinput.h \ 734 $(SRC)/blockinput.h \
@@ -747,8 +748,10 @@ $(BLD)/emacs.$(O) : \
747 $(CONFIG_H) \ 748 $(CONFIG_H) \
748 $(EMACS_ROOT)/nt/inc/unistd.h \ 749 $(EMACS_ROOT)/nt/inc/unistd.h \
749 $(EMACS_ROOT)/nt/inc/sys/file.h \ 750 $(EMACS_ROOT)/nt/inc/sys/file.h \
751 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
750 $(EMACS_ROOT)/nt/inc/sys/time.h \ 752 $(EMACS_ROOT)/nt/inc/sys/time.h \
751 $(LISP_H) \ 753 $(LISP_H) \
754 $(PROCESS_H) \
752 $(SRC)/atimer.h \ 755 $(SRC)/atimer.h \
753 $(SRC)/blockinput.h \ 756 $(SRC)/blockinput.h \
754 $(SRC)/buffer.h \ 757 $(SRC)/buffer.h \
@@ -757,15 +760,14 @@ $(BLD)/emacs.$(O) : \
757 $(SRC)/composite.h \ 760 $(SRC)/composite.h \
758 $(SRC)/dispextern.h \ 761 $(SRC)/dispextern.h \
759 $(SRC)/frame.h \ 762 $(SRC)/frame.h \
760 $(SRC)/gnutls.h \
761 $(SRC)/intervals.h \ 763 $(SRC)/intervals.h \
762 $(SRC)/keyboard.h \ 764 $(SRC)/keyboard.h \
763 $(SRC)/keymap.h \ 765 $(SRC)/keymap.h \
764 $(PROCESS_H) \
765 $(SRC)/syssignal.h \ 766 $(SRC)/syssignal.h \
766 $(SRC)/systime.h \ 767 $(SRC)/systime.h \
767 $(SRC)/systty.h \ 768 $(SRC)/systty.h \
768 $(SRC)/termhooks.h \ 769 $(SRC)/termhooks.h \
770 $(SRC)/unexec.h \
769 $(SRC)/w32.h \ 771 $(SRC)/w32.h \
770 $(SRC)/w32gui.h \ 772 $(SRC)/w32gui.h \
771 $(SRC)/w32heap.h \ 773 $(SRC)/w32heap.h \
@@ -837,6 +839,7 @@ $(BLD)/fns.$(O) : \
837 $(CONFIG_H) \ 839 $(CONFIG_H) \
838 $(EMACS_ROOT)/nt/inc/langinfo.h \ 840 $(EMACS_ROOT)/nt/inc/langinfo.h \
839 $(EMACS_ROOT)/nt/inc/nl_types.h \ 841 $(EMACS_ROOT)/nt/inc/nl_types.h \
842 $(EMACS_ROOT)/nt/inc/stdint.h \
840 $(EMACS_ROOT)/nt/inc/unistd.h \ 843 $(EMACS_ROOT)/nt/inc/unistd.h \
841 $(EMACS_ROOT)/nt/inc/sys/time.h \ 844 $(EMACS_ROOT)/nt/inc/sys/time.h \
842 $(EMACS_ROOT)/lib/md5.h \ 845 $(EMACS_ROOT)/lib/md5.h \
@@ -1030,6 +1033,7 @@ $(BLD)/keyboard.$(O) : \
1030 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \ 1033 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1031 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1034 $(EMACS_ROOT)/nt/inc/sys/time.h \
1032 $(LISP_H) \ 1035 $(LISP_H) \
1036 $(PROCESS_H) \
1033 $(SRC)/atimer.h \ 1037 $(SRC)/atimer.h \
1034 $(SRC)/blockinput.h \ 1038 $(SRC)/blockinput.h \
1035 $(SRC)/buffer.h \ 1039 $(SRC)/buffer.h \
@@ -1044,7 +1048,6 @@ $(BLD)/keyboard.$(O) : \
1044 $(SRC)/keyboard.h \ 1048 $(SRC)/keyboard.h \
1045 $(SRC)/keymap.h \ 1049 $(SRC)/keymap.h \
1046 $(SRC)/macros.h \ 1050 $(SRC)/macros.h \
1047 $(PROCESS_H) \
1048 $(SRC)/puresize.h \ 1051 $(SRC)/puresize.h \
1049 $(SRC)/syntax.h \ 1052 $(SRC)/syntax.h \
1050 $(SRC)/syssignal.h \ 1053 $(SRC)/syssignal.h \
@@ -1182,11 +1185,11 @@ $(BLD)/w32.$(O) : \
1182 $(EMACS_ROOT)/nt/inc/sys/socket.h \ 1185 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1183 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1186 $(EMACS_ROOT)/nt/inc/sys/time.h \
1184 $(LISP_H) \ 1187 $(LISP_H) \
1188 $(PROCESS_H) \
1185 $(SRC)/coding.h \ 1189 $(SRC)/coding.h \
1186 $(SRC)/composite.h \ 1190 $(SRC)/composite.h \
1187 $(SRC)/dispextern.h \ 1191 $(SRC)/dispextern.h \
1188 $(SRC)/ndir.h \ 1192 $(SRC)/ndir.h \
1189 $(PROCESS_H) \
1190 $(SRC)/systime.h \ 1193 $(SRC)/systime.h \
1191 $(SRC)/w32.h \ 1194 $(SRC)/w32.h \
1192 $(SRC)/w32gui.h \ 1195 $(SRC)/w32gui.h \
@@ -1225,11 +1228,11 @@ $(BLD)/w32proc.$(O) : \
1225 $(EMACS_ROOT)/nt/inc/sys/file.h \ 1228 $(EMACS_ROOT)/nt/inc/sys/file.h \
1226 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1229 $(EMACS_ROOT)/nt/inc/sys/time.h \
1227 $(LISP_H) \ 1230 $(LISP_H) \
1231 $(PROCESS_H) \
1228 $(SRC)/character.h \ 1232 $(SRC)/character.h \
1229 $(SRC)/coding.h \ 1233 $(SRC)/coding.h \
1230 $(SRC)/composite.h \ 1234 $(SRC)/composite.h \
1231 $(SRC)/dispextern.h \ 1235 $(SRC)/dispextern.h \
1232 $(PROCESS_H) \
1233 $(SRC)/syssignal.h \ 1236 $(SRC)/syssignal.h \
1234 $(SRC)/systime.h \ 1237 $(SRC)/systime.h \
1235 $(SRC)/syswait.h \ 1238 $(SRC)/syswait.h \
@@ -1261,6 +1264,7 @@ $(BLD)/print.$(O) : \
1261 $(EMACS_ROOT)/lib/ftoastr.h \ 1264 $(EMACS_ROOT)/lib/ftoastr.h \
1262 $(EMACS_ROOT)/lib/intprops.h \ 1265 $(EMACS_ROOT)/lib/intprops.h \
1263 $(LISP_H) \ 1266 $(LISP_H) \
1267 $(PROCESS_H) \
1264 $(SRC)/atimer.h \ 1268 $(SRC)/atimer.h \
1265 $(SRC)/blockinput.h \ 1269 $(SRC)/blockinput.h \
1266 $(SRC)/buffer.h \ 1270 $(SRC)/buffer.h \
@@ -1274,7 +1278,6 @@ $(BLD)/print.$(O) : \
1274 $(SRC)/frame.h \ 1278 $(SRC)/frame.h \
1275 $(SRC)/intervals.h \ 1279 $(SRC)/intervals.h \
1276 $(SRC)/keyboard.h \ 1280 $(SRC)/keyboard.h \
1277 $(PROCESS_H) \
1278 $(SRC)/systime.h \ 1281 $(SRC)/systime.h \
1279 $(SRC)/termchar.h \ 1282 $(SRC)/termchar.h \
1280 $(SRC)/termhooks.h \ 1283 $(SRC)/termhooks.h \
@@ -1289,9 +1292,11 @@ $(BLD)/process.$(O) : \
1289 $(EMACS_ROOT)/nt/inc/arpa/inet.h \ 1292 $(EMACS_ROOT)/nt/inc/arpa/inet.h \
1290 $(EMACS_ROOT)/nt/inc/netinet/in.h \ 1293 $(EMACS_ROOT)/nt/inc/netinet/in.h \
1291 $(EMACS_ROOT)/nt/inc/sys/file.h \ 1294 $(EMACS_ROOT)/nt/inc/sys/file.h \
1295 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1292 $(EMACS_ROOT)/nt/inc/sys/socket.h \ 1296 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1293 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1297 $(EMACS_ROOT)/nt/inc/sys/time.h \
1294 $(LISP_H) \ 1298 $(LISP_H) \
1299 $(PROCESS_H) \
1295 $(SRC)/atimer.h \ 1300 $(SRC)/atimer.h \
1296 $(SRC)/blockinput.h \ 1301 $(SRC)/blockinput.h \
1297 $(SRC)/buffer.h \ 1302 $(SRC)/buffer.h \
@@ -1302,7 +1307,6 @@ $(BLD)/process.$(O) : \
1302 $(SRC)/dispextern.h \ 1307 $(SRC)/dispextern.h \
1303 $(SRC)/frame.h \ 1308 $(SRC)/frame.h \
1304 $(SRC)/keyboard.h \ 1309 $(SRC)/keyboard.h \
1305 $(PROCESS_H) \
1306 $(SRC)/sysselect.h \ 1310 $(SRC)/sysselect.h \
1307 $(SRC)/syssignal.h \ 1311 $(SRC)/syssignal.h \
1308 $(SRC)/systime.h \ 1312 $(SRC)/systime.h \
@@ -1415,10 +1419,12 @@ $(BLD)/sysdep.$(O) : \
1415 $(EMACS_ROOT)/nt/inc/pwd.h \ 1419 $(EMACS_ROOT)/nt/inc/pwd.h \
1416 $(EMACS_ROOT)/nt/inc/unistd.h \ 1420 $(EMACS_ROOT)/nt/inc/unistd.h \
1417 $(EMACS_ROOT)/nt/inc/sys/file.h \ 1421 $(EMACS_ROOT)/nt/inc/sys/file.h \
1422 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1418 $(EMACS_ROOT)/nt/inc/sys/socket.h \ 1423 $(EMACS_ROOT)/nt/inc/sys/socket.h \
1419 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1424 $(EMACS_ROOT)/nt/inc/sys/time.h \
1420 $(EMACS_ROOT)/lib/ignore-value.h \ 1425 $(EMACS_ROOT)/lib/ignore-value.h \
1421 $(LISP_H) \ 1426 $(LISP_H) \
1427 $(PROCESS_H) \
1422 $(SRC)/atimer.h \ 1428 $(SRC)/atimer.h \
1423 $(SRC)/blockinput.h \ 1429 $(SRC)/blockinput.h \
1424 $(SRC)/cm.h \ 1430 $(SRC)/cm.h \
@@ -1427,7 +1433,6 @@ $(BLD)/sysdep.$(O) : \
1427 $(SRC)/dispextern.h \ 1433 $(SRC)/dispextern.h \
1428 $(SRC)/frame.h \ 1434 $(SRC)/frame.h \
1429 $(SRC)/keyboard.h \ 1435 $(SRC)/keyboard.h \
1430 $(PROCESS_H) \
1431 $(SRC)/sysselect.h \ 1436 $(SRC)/sysselect.h \
1432 $(SRC)/syssignal.h \ 1437 $(SRC)/syssignal.h \
1433 $(SRC)/systime.h \ 1438 $(SRC)/systime.h \
@@ -1445,6 +1450,7 @@ $(BLD)/term.$(O) : \
1445 $(CONFIG_H) \ 1450 $(CONFIG_H) \
1446 $(EMACS_ROOT)/nt/inc/unistd.h \ 1451 $(EMACS_ROOT)/nt/inc/unistd.h \
1447 $(EMACS_ROOT)/nt/inc/sys/file.h \ 1452 $(EMACS_ROOT)/nt/inc/sys/file.h \
1453 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1448 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1454 $(EMACS_ROOT)/nt/inc/sys/time.h \
1449 $(LISP_H) \ 1455 $(LISP_H) \
1450 $(SRC)/atimer.h \ 1456 $(SRC)/atimer.h \
@@ -1500,9 +1506,9 @@ $(BLD)/textprop.$(O) : \
1500 1506
1501$(BLD)/tparam.$(O) : \ 1507$(BLD)/tparam.$(O) : \
1502 $(SRC)/tparam.c \ 1508 $(SRC)/tparam.c \
1503 $(SRC)/tparam.h \
1504 $(CONFIG_H) \ 1509 $(CONFIG_H) \
1505 $(LISP_H) 1510 $(LISP_H) \
1511 $(SRC)/tparam.h
1506 1512
1507$(BLD)/undo.$(O) : \ 1513$(BLD)/undo.$(O) : \
1508 $(SRC)/undo.c \ 1514 $(SRC)/undo.c \
@@ -1516,8 +1522,8 @@ $(BLD)/undo.$(O) : \
1516 1522
1517$(BLD)/unexw32.$(O) : \ 1523$(BLD)/unexw32.$(O) : \
1518 $(SRC)/unexw32.c \ 1524 $(SRC)/unexw32.c \
1519 $(SRC)/unexec.h \
1520 $(CONFIG_H) \ 1525 $(CONFIG_H) \
1526 $(SRC)/unexec.h \
1521 $(SRC)/w32heap.h 1527 $(SRC)/w32heap.h
1522 1528
1523$(BLD)/vm-limit.$(O) : \ 1529$(BLD)/vm-limit.$(O) : \
@@ -1557,6 +1563,7 @@ $(BLD)/xdisp.$(O) : \
1557 $(EMACS_ROOT)/nt/inc/unistd.h \ 1563 $(EMACS_ROOT)/nt/inc/unistd.h \
1558 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1564 $(EMACS_ROOT)/nt/inc/sys/time.h \
1559 $(LISP_H) \ 1565 $(LISP_H) \
1566 $(PROCESS_H) \
1560 $(SRC)/atimer.h \ 1567 $(SRC)/atimer.h \
1561 $(SRC)/blockinput.h \ 1568 $(SRC)/blockinput.h \
1562 $(SRC)/buffer.h \ 1569 $(SRC)/buffer.h \
@@ -1576,7 +1583,6 @@ $(BLD)/xdisp.$(O) : \
1576 $(SRC)/keyboard.h \ 1583 $(SRC)/keyboard.h \
1577 $(SRC)/keymap.h \ 1584 $(SRC)/keymap.h \
1578 $(SRC)/macros.h \ 1585 $(SRC)/macros.h \
1579 $(PROCESS_H) \
1580 $(SRC)/region-cache.h \ 1586 $(SRC)/region-cache.h \
1581 $(SRC)/systime.h \ 1587 $(SRC)/systime.h \
1582 $(SRC)/termchar.h \ 1588 $(SRC)/termchar.h \
@@ -1668,8 +1674,10 @@ $(BLD)/w32term.$(O) : \
1668 $(SRC)/w32term.c \ 1674 $(SRC)/w32term.c \
1669 $(CONFIG_H) \ 1675 $(CONFIG_H) \
1670 $(EMACS_ROOT)/nt/inc/unistd.h \ 1676 $(EMACS_ROOT)/nt/inc/unistd.h \
1677 $(EMACS_ROOT)/nt/inc/sys/ioctl.h \
1671 $(EMACS_ROOT)/nt/inc/sys/time.h \ 1678 $(EMACS_ROOT)/nt/inc/sys/time.h \
1672 $(LISP_H) \ 1679 $(LISP_H) \
1680 $(PROCESS_H) \
1673 $(SRC)/atimer.h \ 1681 $(SRC)/atimer.h \
1674 $(SRC)/blockinput.h \ 1682 $(SRC)/blockinput.h \
1675 $(SRC)/buffer.h \ 1683 $(SRC)/buffer.h \
@@ -1686,7 +1694,6 @@ $(BLD)/w32term.$(O) : \
1686 $(SRC)/intervals.h \ 1694 $(SRC)/intervals.h \
1687 $(SRC)/keyboard.h \ 1695 $(SRC)/keyboard.h \
1688 $(SRC)/keymap.h \ 1696 $(SRC)/keymap.h \
1689 $(PROCESS_H) \
1690 $(SRC)/systime.h \ 1697 $(SRC)/systime.h \
1691 $(SRC)/systty.h \ 1698 $(SRC)/systty.h \
1692 $(SRC)/termchar.h \ 1699 $(SRC)/termchar.h \
@@ -1709,7 +1716,6 @@ $(BLD)/w32select.$(O) : \
1709 $(SRC)/charset.h \ 1716 $(SRC)/charset.h \
1710 $(SRC)/coding.h \ 1717 $(SRC)/coding.h \
1711 $(SRC)/composite.h \ 1718 $(SRC)/composite.h \
1712 $(SRC)/keyboard.h \
1713 $(SRC)/systime.h \ 1719 $(SRC)/systime.h \
1714 $(SRC)/w32gui.h \ 1720 $(SRC)/w32gui.h \
1715 $(SRC)/w32heap.h \ 1721 $(SRC)/w32heap.h \
diff --git a/src/minibuf.c b/src/minibuf.c
index 8ff861b2403..b6b79be9d3f 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -72,6 +72,7 @@ Lisp_Object Qcompletion_ignore_case;
72Lisp_Object Qminibuffer_completion_table; 72Lisp_Object Qminibuffer_completion_table;
73Lisp_Object Qminibuffer_completion_predicate; 73Lisp_Object Qminibuffer_completion_predicate;
74Lisp_Object Qminibuffer_completion_confirm; 74Lisp_Object Qminibuffer_completion_confirm;
75Lisp_Object Qcompleting_read_default;
75Lisp_Object Quser_variable_p; 76Lisp_Object Quser_variable_p;
76 77
77Lisp_Object Qminibuffer_default; 78Lisp_Object Qminibuffer_default;
@@ -1674,7 +1675,27 @@ If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits
1674 the current input method and the setting of `enable-multibyte-characters'. 1675 the current input method and the setting of `enable-multibyte-characters'.
1675 1676
1676Completion ignores case if the ambient value of 1677Completion ignores case if the ambient value of
1677 `completion-ignore-case' is non-nil. */) 1678 `completion-ignore-case' is non-nil.
1679
1680See also `completing-read-function'. */)
1681 (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method)
1682{
1683 Lisp_Object args[9];
1684 args[0] = Vcompleting_read_function;
1685 args[1] = prompt;
1686 args[2] = collection;
1687 args[3] = predicate;
1688 args[4] = require_match;
1689 args[5] = initial_input;
1690 args[6] = hist;
1691 args[7] = def;
1692 args[8] = inherit_input_method;
1693 return Ffuncall (9, args);
1694}
1695
1696DEFUN ("completing-read-default", Fcompleting_read_default, Scompleting_read_default, 2, 8, 0,
1697 doc: /* Default method for reading from the minibuffer with completion.
1698See `completing-read' for the meaning of the arguments. */)
1678 (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method) 1699 (Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method)
1679{ 1700{
1680 Lisp_Object val, histvar, histpos, position; 1701 Lisp_Object val, histvar, histpos, position;
@@ -1972,6 +1993,9 @@ syms_of_minibuf (void)
1972 minibuf_save_list = Qnil; 1993 minibuf_save_list = Qnil;
1973 staticpro (&minibuf_save_list); 1994 staticpro (&minibuf_save_list);
1974 1995
1996 Qcompleting_read_default = intern_c_string ("completing-read-default");
1997 staticpro (&Qcompleting_read_default);
1998
1975 Qcompletion_ignore_case = intern_c_string ("completion-ignore-case"); 1999 Qcompletion_ignore_case = intern_c_string ("completion-ignore-case");
1976 staticpro (&Qcompletion_ignore_case); 2000 staticpro (&Qcompletion_ignore_case);
1977 2001
@@ -2116,6 +2140,12 @@ If the value is `confirm-after-completion', the user may exit with an
2116 doc: /* Non-nil means completing file names. */); 2140 doc: /* Non-nil means completing file names. */);
2117 Vminibuffer_completing_file_name = Qnil; 2141 Vminibuffer_completing_file_name = Qnil;
2118 2142
2143 DEFVAR_LISP ("completing-read-function",
2144 Vcompleting_read_function,
2145 doc: /* The function called by `completing-read' to do the work.
2146It should accept the same arguments as `completing-read'. */);
2147 Vcompleting_read_function = Qcompleting_read_default;
2148
2119 DEFVAR_LISP ("minibuffer-help-form", Vminibuffer_help_form, 2149 DEFVAR_LISP ("minibuffer-help-form", Vminibuffer_help_form,
2120 doc: /* Value that `help-form' takes on inside the minibuffer. */); 2150 doc: /* Value that `help-form' takes on inside the minibuffer. */);
2121 Vminibuffer_help_form = Qnil; 2151 Vminibuffer_help_form = Qnil;
@@ -2191,4 +2221,5 @@ properties. */);
2191 defsubr (&Stest_completion); 2221 defsubr (&Stest_completion);
2192 defsubr (&Sassoc_string); 2222 defsubr (&Sassoc_string);
2193 defsubr (&Scompleting_read); 2223 defsubr (&Scompleting_read);
2224 defsubr (&Scompleting_read_default);
2194} 2225}
diff --git a/src/xfaces.c b/src/xfaces.c
index 50bcab3c6a9..0fc5dd6f8a3 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6297,7 +6297,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */)
6297 CHECK_STRING (filename); 6297 CHECK_STRING (filename);
6298 abspath = Fexpand_file_name (filename, Qnil); 6298 abspath = Fexpand_file_name (filename, Qnil);
6299 6299
6300 fp = fopen (SDATA (filename), "rt"); 6300 fp = fopen (SDATA (abspath), "rt");
6301 if (fp) 6301 if (fp)
6302 { 6302 {
6303 char buf[512]; 6303 char buf[512];