diff options
| author | Miles Bader | 2006-11-21 08:56:38 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-11-21 08:56:38 +0000 |
| commit | eeb7eaa88482114822730380196f4e7a3c0870dd (patch) | |
| tree | e8c3861b628ad53c6b8f158b74d1be8bd8590aeb /lib-src | |
| parent | b15d6f4265b10fbc413caca03246feff9c87d53e (diff) | |
| parent | a98d0b8e8948293de119c4cdd7a8c79318ad82fa (diff) | |
| download | emacs-eeb7eaa88482114822730380196f4e7a3c0870dd.tar.gz emacs-eeb7eaa88482114822730380196f4e7a3c0870dd.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 505-522)
- Update from CVS
- Merge from gnus--rel--5.10
- Update from CVS: etc/TUTORIAL.cn: Updated.
- Merge from erc--emacs--22
* gnus--rel--5.10 (patch 164-167)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-137
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 39 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 10 | ||||
| -rw-r--r-- | lib-src/makefile.w32-in | 42 |
3 files changed, 54 insertions, 37 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index c2319d6486b..70bd5bb6ed7 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,31 @@ | |||
| 1 | 2006-11-13 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * emacsclient.c [WINDOWSNT]: Let config.h define HAVE_SOCKETS and | ||
| 4 | HAVE_INET_SOCKETS. | ||
| 5 | |||
| 6 | 2006-11-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 7 | |||
| 8 | * makefile.w32-in (emacsclient): Depend also on emacsclientw.exe. | ||
| 9 | ($(BLD)/emacsclientw.exe): New target. | ||
| 10 | (install): Install emacsclientw.exe. | ||
| 11 | ($(BLD)/cvtmail.$(O), $(BLD)/emacstool.$(O)): Remove obsolete targets. | ||
| 12 | (ECLIENT_CFLAGS): Remove redundant flags. | ||
| 13 | |||
| 14 | * emacsclient.c [WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H. | ||
| 15 | |||
| 16 | 2006-11-13 Jason Rumney <jasonr@gnu.org> | ||
| 17 | |||
| 18 | * makefile.w32-in ($(BLD)/emacsclient.$(O)): Use CFLAGS. | ||
| 19 | |||
| 20 | 2006-11-10 David Reitter <david.reitter@gmail.com> | ||
| 21 | |||
| 22 | * emacsclient.c [!WINDOWSNT]: Include <sys/types.h>. | ||
| 23 | |||
| 24 | 2006-11-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 25 | |||
| 26 | * emacsclient.c (get_server_config) [WINDOWSNT]: Declare set_fg as | ||
| 27 | FARPROC to avoid a compiler warning. | ||
| 28 | |||
| 1 | 2006-11-07 Juanma Barranquero <lekktu@gmail.com> | 29 | 2006-11-07 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 30 | ||
| 3 | * emacsclient.c (get_server_config) [WINDOWSNT]: Look for the server | 31 | * emacsclient.c (get_server_config) [WINDOWSNT]: Look for the server |
| @@ -9,11 +37,11 @@ | |||
| 9 | 37 | ||
| 10 | 2006-11-06 Juanma Barranquero <lekktu@gmail.com> | 38 | 2006-11-06 Juanma Barranquero <lekktu@gmail.com> |
| 11 | 39 | ||
| 12 | * emacsclient.c (longopts) [! NO_SOCKETS_IN_FILE_SYSTEM]: Don't show | 40 | * emacsclient.c (longopts) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't show |
| 13 | option --socket-name. | 41 | option --socket-name. |
| 14 | (decode_options): Don't get EMACS_SERVER_FILE here, it could override | 42 | (decode_options): Don't get EMACS_SERVER_FILE here, it could override |
| 15 | command line options. | 43 | command line options. |
| 16 | (decode_options) [! NO_SOCKETS_IN_FILE_SYSTEM]: Don't parse "-s" option. | 44 | (decode_options) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't parse "-s" option. |
| 17 | (fail): Don't check for missing arguments, it is now done in set_socket. | 45 | (fail): Don't check for missing arguments, it is now done in set_socket. |
| 18 | (file_name_absolute_p): New function (loosely based on the one in | 46 | (file_name_absolute_p): New function (loosely based on the one in |
| 19 | fileio.c). | 47 | fileio.c). |
| @@ -455,7 +483,7 @@ | |||
| 455 | 483 | ||
| 456 | 2004-09-08 Francesco Potort,Al(B <pot@gnu.org> | 484 | 2004-09-08 Francesco Potort,Al(B <pot@gnu.org> |
| 457 | 485 | ||
| 458 | * etags.c [LONG_OPTIONS]: make it TRUE (ifdef) or FALSE (ifndef) | 486 | * etags.c [LONG_OPTIONS]: Make it TRUE (ifdef) or FALSE (ifndef) |
| 459 | for ease of use. | 487 | for ease of use. |
| 460 | 488 | ||
| 461 | 2004-07-17 Richard M. Stallman <rms@gnu.org> | 489 | 2004-07-17 Richard M. Stallman <rms@gnu.org> |
| @@ -2665,7 +2693,7 @@ | |||
| 2665 | 2693 | ||
| 2666 | * movemail.c (rindex): Add declaration. | 2694 | * movemail.c (rindex): Add declaration. |
| 2667 | 2695 | ||
| 2668 | Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu> | 2696 | 1997-07-01 Geoff Voelker <voelker@cs.washington.edu> |
| 2669 | 2697 | ||
| 2670 | * makefile.nt (GETOPTOBJS, GETOPTDEFS, MOVEMAILOBJS): Define. | 2698 | * makefile.nt (GETOPTOBJS, GETOPTDEFS, MOVEMAILOBJS): Define. |
| 2671 | (movemail.exe): Depend upon and link with getopt files. | 2699 | (movemail.exe): Depend upon and link with getopt files. |
| @@ -3914,7 +3942,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu> | |||
| 3914 | * profile.c (TV1, TV2): Use EMACS_TIME as type. | 3942 | * profile.c (TV1, TV2): Use EMACS_TIME as type. |
| 3915 | (get_time): Use EMACS_SUB_TIME. | 3943 | (get_time): Use EMACS_SUB_TIME. |
| 3916 | 3944 | ||
| 3917 | 1994-10-30 voelker <voelker@cs.washington.edu> | 3945 | 1994-10-30 Geoff Voelker <voelker@cs.washington.edu> |
| 3918 | 3946 | ||
| 3919 | * ntlib.c: New file. | 3947 | * ntlib.c: New file. |
| 3920 | * makefile.nt: New file. | 3948 | * makefile.nt: New file. |
| @@ -6047,6 +6075,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu> | |||
| 6047 | 6075 | ||
| 6048 | ;; Local Variables: | 6076 | ;; Local Variables: |
| 6049 | ;; coding: iso-2022-7bit | 6077 | ;; coding: iso-2022-7bit |
| 6078 | ;; add-log-time-zone-rule: t | ||
| 6050 | ;; End: | 6079 | ;; End: |
| 6051 | 6080 | ||
| 6052 | Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, | 6081 | Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 3c3b27374fc..3e8c56f2ce5 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -28,11 +28,13 @@ Boston, MA 02110-1301, USA. */ | |||
| 28 | 28 | ||
| 29 | #ifdef WINDOWSNT | 29 | #ifdef WINDOWSNT |
| 30 | 30 | ||
| 31 | /* config.h defines these, which disables sockets altogether! */ | ||
| 32 | # undef _WINSOCKAPI_ | ||
| 33 | # undef _WINSOCK_H | ||
| 34 | |||
| 31 | # include <malloc.h> | 35 | # include <malloc.h> |
| 32 | # include <stdlib.h> | 36 | # include <stdlib.h> |
| 33 | 37 | ||
| 34 | # define HAVE_SOCKETS | ||
| 35 | # define HAVE_INET_SOCKETS | ||
| 36 | # define NO_SOCKETS_IN_FILE_SYSTEM | 38 | # define NO_SOCKETS_IN_FILE_SYSTEM |
| 37 | 39 | ||
| 38 | # define HSOCKET SOCKET | 40 | # define HSOCKET SOCKET |
| @@ -41,6 +43,8 @@ Boston, MA 02110-1301, USA. */ | |||
| 41 | 43 | ||
| 42 | #else /* !WINDOWSNT */ | 44 | #else /* !WINDOWSNT */ |
| 43 | 45 | ||
| 46 | # include <sys/types.h> | ||
| 47 | |||
| 44 | # ifdef HAVE_INET_SOCKETS | 48 | # ifdef HAVE_INET_SOCKETS |
| 45 | # include <netinet/in.h> | 49 | # include <netinet/in.h> |
| 46 | # endif | 50 | # endif |
| @@ -510,7 +514,7 @@ get_server_config (server, authentication) | |||
| 510 | 514 | ||
| 511 | if (hUser32 = LoadLibrary ("user32.dll")) | 515 | if (hUser32 = LoadLibrary ("user32.dll")) |
| 512 | { | 516 | { |
| 513 | void (*set_fg)(DWORD); | 517 | FARPROC set_fg; |
| 514 | if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) | 518 | if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) |
| 515 | set_fg (atoi (pid)); | 519 | set_fg (atoi (pid)); |
| 516 | FreeLibrary (hUser32); | 520 | FreeLibrary (hUser32); |
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in index 6fa9724a861..c04637056f8 100644 --- a/lib-src/makefile.w32-in +++ b/lib-src/makefile.w32-in | |||
| @@ -26,13 +26,7 @@ ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacs | |||
| 26 | 26 | ||
| 27 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ | 27 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ |
| 28 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ | 28 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ |
| 29 | -I../src | 29 | -I../src |
| 30 | |||
| 31 | # don't know what (if) to do with these yet... | ||
| 32 | # | ||
| 33 | # $(BLD)/server.exe \ | ||
| 34 | # $(BLD)/emacstool.exe \ | ||
| 35 | # $(BLD)/cvtmail.exe \ | ||
| 36 | 30 | ||
| 37 | LIBS = $(BASE_LIBS) $(ADVAPI32) | 31 | LIBS = $(BASE_LIBS) $(ADVAPI32) |
| 38 | 32 | ||
| @@ -58,7 +52,7 @@ movemail: $(BLD) $(BLD)/movemail.exe | |||
| 58 | fakemail: $(BLD) $(BLD)/fakemail.exe | 52 | fakemail: $(BLD) $(BLD)/fakemail.exe |
| 59 | sorted-doc: $(BLD) $(BLD)/sorted-doc.exe | 53 | sorted-doc: $(BLD) $(BLD)/sorted-doc.exe |
| 60 | digest-doc: $(BLD) $(BLD)/digest-doc.exe | 54 | digest-doc: $(BLD) $(BLD)/digest-doc.exe |
| 61 | emacsclient: $(BLD) $(BLD)/emacsclient.exe | 55 | emacsclient: $(BLD) $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe |
| 62 | 56 | ||
| 63 | test-distrib: $(BLD) $(BLD)/test-distrib.exe | 57 | test-distrib: $(BLD) $(BLD)/test-distrib.exe |
| 64 | "$(BLD)/test-distrib.exe" "$(SRC)/testfile" | 58 | "$(BLD)/test-distrib.exe" "$(SRC)/testfile" |
| @@ -74,7 +68,7 @@ $(BLD)/movemail.exe: $(MOVEMAILOBJS) getopt.h | |||
| 74 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib | 68 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib |
| 75 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS) | 69 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS) |
| 76 | 70 | ||
| 77 | ECLIENT_CFLAGS = -DWINDOWSNT -DHAVE_GETCWD -DHAVE_STRERROR -c | 71 | ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR |
| 78 | ECLIENTOBJS = $(BLD)/emacsclient.$(O) \ | 72 | ECLIENTOBJS = $(BLD)/emacsclient.$(O) \ |
| 79 | $(BLD)/getopt.$(O) \ | 73 | $(BLD)/getopt.$(O) \ |
| 80 | $(BLD)/getopt1.$(O) \ | 74 | $(BLD)/getopt1.$(O) \ |
| @@ -84,8 +78,12 @@ $(BLD)/emacsclient.exe: $(ECLIENTOBJS) | |||
| 84 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib | 78 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib |
| 85 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(LIBS) | 79 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(LIBS) |
| 86 | 80 | ||
| 81 | $(BLD)/emacsclientw.exe: $(ECLIENTOBJS) | ||
| 82 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib | ||
| 83 | $(LINK) $(LINK_OUT)$@ -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(LIBS) | ||
| 84 | |||
| 87 | $(BLD)/emacsclient.$(O): emacsclient.c | 85 | $(BLD)/emacsclient.$(O): emacsclient.c |
| 88 | $(CC) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c | 86 | $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c |
| 89 | 87 | ||
| 90 | ETAGSOBJ = $(BLD)/etags.$(O) \ | 88 | ETAGSOBJ = $(BLD)/etags.$(O) \ |
| 91 | $(BLD)/getopt.$(O) \ | 89 | $(BLD)/getopt.$(O) \ |
| @@ -98,9 +96,9 @@ $(BLD)/etags.exe: $(ETAGSOBJ) | |||
| 98 | 96 | ||
| 99 | 97 | ||
| 100 | EBROWSEOBJ = $(BLD)/ebrowse.$(O) \ | 98 | EBROWSEOBJ = $(BLD)/ebrowse.$(O) \ |
| 101 | $(BLD)/getopt.$(O) \ | 99 | $(BLD)/getopt.$(O) \ |
| 102 | $(BLD)/getopt1.$(O) \ | 100 | $(BLD)/getopt1.$(O) \ |
| 103 | $(BLD)/ntlib.$(O) | 101 | $(BLD)/ntlib.$(O) |
| 104 | 102 | ||
| 105 | $(BLD)/ebrowse.exe: $(EBROWSEOBJ) | 103 | $(BLD)/ebrowse.exe: $(EBROWSEOBJ) |
| 106 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS) | 104 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS) |
| @@ -131,14 +129,6 @@ $(BLD)/ctags.$(O): ctags.c | |||
| 131 | $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c | 129 | $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c |
| 132 | 130 | ||
| 133 | # | 131 | # |
| 134 | # don't know what to do with these yet... | ||
| 135 | # | ||
| 136 | # $(BLD)/emacstool.exe: $(BLD)/emacstool.$(O) | ||
| 137 | # $(BLD)/server.exe: $(BLD)/server.$(O) | ||
| 138 | # $(BLD)/cvtmail.exe: $(BLD)/cvtmail.$(O) | ||
| 139 | # $(BLD)/emacsclient.exe: $(BLD)/emacsclient.$(O) | ||
| 140 | |||
| 141 | # | ||
| 142 | # From ..\src\Makefile.in | 132 | # From ..\src\Makefile.in |
| 143 | # It doesn't matter if the real name is *.obj for the files in this list, | 133 | # It doesn't matter if the real name is *.obj for the files in this list, |
| 144 | # make-docfile blindly replaces .o with .c anyway. Keep .o in this list | 134 | # make-docfile blindly replaces .o with .c anyway. Keep .o in this list |
| @@ -309,6 +299,7 @@ install: $(INSTALL_FILES) | |||
| 309 | $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin | 299 | $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin |
| 310 | $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin | 300 | $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin |
| 311 | $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin | 301 | $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin |
| 302 | $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin | ||
| 312 | - mkdir "$(INSTALL_DIR)/etc" | 303 | - mkdir "$(INSTALL_DIR)/etc" |
| 313 | $(CP) $(DOC) $(INSTALL_DIR)/etc | 304 | $(CP) $(DOC) $(INSTALL_DIR)/etc |
| 314 | 305 | ||
| @@ -364,9 +355,6 @@ $(BLD)/ctags.$(O) : \ | |||
| 364 | $(SRC)/ntlib.h \ | 355 | $(SRC)/ntlib.h \ |
| 365 | $(SRC)/getopt.h | 356 | $(SRC)/getopt.h |
| 366 | 357 | ||
| 367 | $(BLD)/cvtmail.$(O) : \ | ||
| 368 | $(SRC)/cvtmail.c | ||
| 369 | |||
| 370 | $(BLD)/digest-doc.$(O) : \ | 358 | $(BLD)/digest-doc.$(O) : \ |
| 371 | $(SRC)/digest-doc.c | 359 | $(SRC)/digest-doc.c |
| 372 | 360 | ||
| @@ -376,10 +364,6 @@ $(BLD)/emacsclient.$(O) : \ | |||
| 376 | $(EMACS_ROOT)/src/m/intel386.h \ | 364 | $(EMACS_ROOT)/src/m/intel386.h \ |
| 377 | $(EMACS_ROOT)/lib-src/../src/config.h | 365 | $(EMACS_ROOT)/lib-src/../src/config.h |
| 378 | 366 | ||
| 379 | $(BLD)/emacstool.$(O) : \ | ||
| 380 | $(SRC)/emacstool.c \ | ||
| 381 | $(EMACS_ROOT)/nt/inc/sys/file.h | ||
| 382 | |||
| 383 | $(BLD)/etags.$(O) : \ | 367 | $(BLD)/etags.$(O) : \ |
| 384 | $(SRC)/etags.c \ | 368 | $(SRC)/etags.c \ |
| 385 | $(EMACS_ROOT)/nt/inc/sys/param.h \ | 369 | $(EMACS_ROOT)/nt/inc/sys/param.h \ |
| @@ -441,7 +425,7 @@ $(BLD)/movemail.$(O) : \ | |||
| 441 | $(EMACS_ROOT)/lib-src/../src/syswait.h \ | 425 | $(EMACS_ROOT)/lib-src/../src/syswait.h \ |
| 442 | $(EMACS_ROOT)/nt/inc/pwd.h \ | 426 | $(EMACS_ROOT)/nt/inc/pwd.h \ |
| 443 | $(SRC)/ntlib.h | 427 | $(SRC)/ntlib.h |
| 444 | $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c | 428 | $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c |
| 445 | 429 | ||
| 446 | $(BLD)/ntlib.$(O) : \ | 430 | $(BLD)/ntlib.$(O) : \ |
| 447 | $(SRC)/ntlib.c \ | 431 | $(SRC)/ntlib.c \ |