diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 9 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 10 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 36 | ||||
| -rw-r--r-- | lib-src/makefile.w32-in | 2 |
4 files changed, 51 insertions, 6 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 77673fb41ad..a6c3460f723 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2007-02-26 Francesco Potort,Al(B <pot@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (etags, ctags): define EMACS_NAME as "GNU Emacs". | ||
| 4 | |||
| 5 | 2007-02-20 Ulrich Mueller <ulm@kph.uni-mainz.de> (tiny change) | ||
| 6 | |||
| 7 | * Makefile.in (EMACS, EMACSOPT): New variables. | ||
| 8 | (blessmail): Use `--no-site-file' when compiling. | ||
| 9 | |||
| 1 | 2007-02-05 Francesco Potort,Al(B <pot@gnu.org> | 10 | 2007-02-05 Francesco Potort,Al(B <pot@gnu.org> |
| 2 | 11 | ||
| 3 | * etags.c (default_C_help, Cplusplus_help, PHP_help, print_help) | 12 | * etags.c (default_C_help, Cplusplus_help, PHP_help, print_help) |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index bddabd364ad..bef8f1b9c29 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -23,6 +23,10 @@ | |||
| 23 | # inherited from the environment. | 23 | # inherited from the environment. |
| 24 | SHELL = /bin/sh | 24 | SHELL = /bin/sh |
| 25 | 25 | ||
| 26 | # Following ../lisp/Makefile.in. | ||
| 27 | EMACS = ../src/emacs | ||
| 28 | EMACSOPT = -batch --no-site-file --multibyte | ||
| 29 | |||
| 26 | # ==================== Things `configure' will edit ==================== | 30 | # ==================== Things `configure' will edit ==================== |
| 27 | 31 | ||
| 28 | CC=@CC@ | 32 | CC=@CC@ |
| @@ -279,7 +283,7 @@ vcdiff: $(srcdir)/vcdiff | |||
| 279 | 283 | ||
| 280 | #ifdef MOVEMAIL_NEEDS_BLESSING | 284 | #ifdef MOVEMAIL_NEEDS_BLESSING |
| 281 | blessmail: | 285 | blessmail: |
| 282 | ../src/emacs -batch -l $(srcdir)/../lisp/mail/blessmail.el | 286 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el |
| 283 | chmod +x blessmail | 287 | chmod +x blessmail |
| 284 | #endif | 288 | #endif |
| 285 | 289 | ||
| @@ -409,7 +413,7 @@ regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h | |||
| 409 | ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c | 413 | ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
| 410 | 414 | ||
| 411 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | 415 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h |
| 412 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags | 416 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs"\" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags |
| 413 | 417 | ||
| 414 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | 418 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
| 415 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | 419 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse |
| @@ -417,7 +421,7 @@ ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | |||
| 417 | /* We depend on etags to assure that parallel makes don\'t write two | 421 | /* We depend on etags to assure that parallel makes don\'t write two |
| 418 | etags.o files on top of each other. */ | 422 | etags.o files on top of each other. */ |
| 419 | ctags${EXEEXT}: etags${EXEEXT} | 423 | ctags${EXEEXT}: etags${EXEEXT} |
| 420 | $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags | 424 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs"\" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
| 421 | 425 | ||
| 422 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h | 426 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h |
| 423 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile | 427 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index b557e5c7236..ea1e6cd7af8 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -484,13 +484,45 @@ file_name_absolute_p (filename) | |||
| 484 | if (filename[0] == '\0') return FALSE; | 484 | if (filename[0] == '\0') return FALSE; |
| 485 | 485 | ||
| 486 | #ifdef WINDOWSNT | 486 | #ifdef WINDOWSNT |
| 487 | /* X:\xxx is always absolute; X:xxx is an error and will fail. */ | 487 | /* X:\xxx is always absolute. */ |
| 488 | if (isalpha (filename[0]) | 488 | if (isalpha (filename[0]) |
| 489 | && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) | 489 | && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) |
| 490 | return TRUE; | 490 | return TRUE; |
| 491 | 491 | ||
| 492 | /* Both \xxx and \\xxx\yyy are absolute. */ | 492 | /* Both \xxx and \\xxx\yyy are absolute. */ |
| 493 | if (filename[0] == '\\') return TRUE; | 493 | if (filename[0] == '\\') return TRUE; |
| 494 | |||
| 495 | /* | ||
| 496 | FIXME: There's a corner case not dealt with, "x:y", where: | ||
| 497 | |||
| 498 | 1) x is a valid drive designation (usually a letter in the A-Z range) | ||
| 499 | and y is a path, relative to the current directory on drive x. This | ||
| 500 | is absolute, *after* fixing the y part to include the current | ||
| 501 | directory in x. | ||
| 502 | |||
| 503 | 2) x is a relative file name, and y is an NTFS stream name. This is a | ||
| 504 | correct relative path, but it is very unusual. | ||
| 505 | |||
| 506 | The trouble is that first case items are also valid examples of the | ||
| 507 | second case, i.e., "c:test" can be understood as drive:path or as | ||
| 508 | file:stream. | ||
| 509 | |||
| 510 | The "right" fix would involve checking whether | ||
| 511 | - the current drive/partition is NTFS, | ||
| 512 | - x is a valid (and accesible) drive designator, | ||
| 513 | - x:y already exists as a file:stream in the current directory, | ||
| 514 | - y already exists on the current directory of drive x, | ||
| 515 | - the auspices are favorable, | ||
| 516 | and then taking an "informed decision" based on the above. | ||
| 517 | |||
| 518 | Whatever the result, Emacs currently does a very bad job of dealing | ||
| 519 | with NTFS file:streams: it cannot visit them, and the only way to | ||
| 520 | create one is by setting `buffer-file-name' to point to it (either | ||
| 521 | manually or with emacsclient). So perhaps resorting to 1) and ignoring | ||
| 522 | 2) for now is the right thing to do. | ||
| 523 | |||
| 524 | Anyway, something to decide After the Release. | ||
| 525 | */ | ||
| 494 | #endif | 526 | #endif |
| 495 | 527 | ||
| 496 | return FALSE; | 528 | return FALSE; |
| @@ -884,7 +916,7 @@ w32_give_focus () | |||
| 884 | { | 916 | { |
| 885 | HMODULE hUser32; | 917 | HMODULE hUser32; |
| 886 | 918 | ||
| 887 | /* It should'nt happen when dealing with TCP sockets. */ | 919 | /* It shouldn't happen when dealing with TCP sockets. */ |
| 888 | if (!emacs_pid) return; | 920 | if (!emacs_pid) return; |
| 889 | 921 | ||
| 890 | if (!(hUser32 = LoadLibrary ("user32.dll"))) return; | 922 | if (!(hUser32 = LoadLibrary ("user32.dll"))) return; |
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in index 0a3045b477d..37ad6c9136d 100644 --- a/lib-src/makefile.w32-in +++ b/lib-src/makefile.w32-in | |||
| @@ -24,7 +24,7 @@ ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacs | |||
| 24 | 24 | ||
| 25 | .PHONY: $(ALL) | 25 | .PHONY: $(ALL) |
| 26 | 26 | ||
| 27 | VERSION = 22.0.93 | 27 | VERSION = 22.0.94 |
| 28 | 28 | ||
| 29 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ | 29 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ |
| 30 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ | 30 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ |