diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /lib-src | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 9 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 8 | ||||
| -rw-r--r-- | lib-src/update-game-score.c | 5 |
3 files changed, 19 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index b7a95fe8043..2a4c1024293 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-07-09 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * update-game-score.c (usage): Update usage line. | ||
| 4 | |||
| 5 | 2011-07-02 Jason Rumney <jasonr@gnu.org> | ||
| 6 | |||
| 7 | * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on | ||
| 8 | Windows (Bug#5486). | ||
| 9 | |||
| 1 | 2011-06-25 Glenn Morris <rgm@gnu.org> | 10 | 2011-06-25 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * emacsclient.c (decode_options) <opt>: Add `F:'. | 12 | * emacsclient.c (decode_options) <opt>: Add `F:'. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index c78a42bffe8..2af139aee6d 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -652,6 +652,14 @@ decode_options (int argc, char **argv) | |||
| 652 | an empty string"); | 652 | an empty string"); |
| 653 | exit (EXIT_FAILURE); | 653 | exit (EXIT_FAILURE); |
| 654 | } | 654 | } |
| 655 | |||
| 656 | /* TTY frames not supported on Windows. Continue using GUI rather than | ||
| 657 | forcing the user to change their command-line. This is required since | ||
| 658 | tty is set above if certain options are given and $DISPLAY is not set, | ||
| 659 | which is not obvious to users. */ | ||
| 660 | if (tty) | ||
| 661 | tty = 0; | ||
| 662 | |||
| 655 | #endif /* WINDOWSNT */ | 663 | #endif /* WINDOWSNT */ |
| 656 | } | 664 | } |
| 657 | 665 | ||
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c index e95e2ce259d..76483c371ff 100644 --- a/lib-src/update-game-score.c +++ b/lib-src/update-game-score.c | |||
| @@ -71,7 +71,7 @@ static int usage (int err) NO_RETURN; | |||
| 71 | static int | 71 | static int |
| 72 | usage (int err) | 72 | usage (int err) |
| 73 | { | 73 | { |
| 74 | fprintf (stdout, "Usage: update-game-score [-m MAX ] [ -r ] game/scorefile SCORE DATA\n"); | 74 | fprintf (stdout, "Usage: update-game-score [-m MAX] [-r] [-d DIR] game/scorefile SCORE DATA\n"); |
| 75 | fprintf (stdout, " update-game-score -h\n"); | 75 | fprintf (stdout, " update-game-score -h\n"); |
| 76 | fprintf (stdout, " -h\t\tDisplay this help.\n"); | 76 | fprintf (stdout, " -h\t\tDisplay this help.\n"); |
| 77 | fprintf (stdout, " -m MAX\t\tLimit the maximum number of scores to MAX.\n"); | 77 | fprintf (stdout, " -m MAX\t\tLimit the maximum number of scores to MAX.\n"); |
| @@ -113,8 +113,7 @@ static void lose_syserr (const char *msg) NO_RETURN; | |||
| 113 | #ifndef HAVE_STRERROR | 113 | #ifndef HAVE_STRERROR |
| 114 | #ifndef WINDOWSNT | 114 | #ifndef WINDOWSNT |
| 115 | char * | 115 | char * |
| 116 | strerror (errnum) | 116 | strerror (int errnum) |
| 117 | int errnum; | ||
| 118 | { | 117 | { |
| 119 | extern char *sys_errlist[]; | 118 | extern char *sys_errlist[]; |
| 120 | extern int sys_nerr; | 119 | extern int sys_nerr; |