aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog18
-rw-r--r--src/buffer.c3
-rw-r--r--src/dispextern.h2
-rw-r--r--src/msdos.c2
-rw-r--r--src/s/ms-w32.h1
-rw-r--r--src/sysdep.c2
-rw-r--r--src/w32.c22
-rw-r--r--src/xdisp.c1
8 files changed, 47 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4a675cc96c6..0067163edbf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,21 @@
12011-04-23 Eli Zaretskii <eliz@gnu.org>
2
3 * s/ms-w32.h (localtime): Redirect to sys_localtime.
4
5 * w32.c: Include <time.h>.
6 (sys_localtime): New function.
7
82011-04-23 Chong Yidong <cyd@stupidchicken.com>
9
10 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
11
12 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
13
142011-04-23 Samuel Thibault <sthibault@debian.org> (tiny change)
15
16 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
17 zombies (Bug#8467).
18
12011-04-19 Eli Zaretskii <eliz@gnu.org> 192011-04-19 Eli Zaretskii <eliz@gnu.org>
2 20
3 * syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of 21 * syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of
diff --git a/src/buffer.c b/src/buffer.c
index c649836adb8..46e8ddf1538 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5551,7 +5551,8 @@ Linefeed indents to this column in Fundamental mode. */);
5551 5551
5552 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width), 5552 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width),
5553 make_number (LISP_INT_TAG), 5553 make_number (LISP_INT_TAG),
5554 doc: /* *Distance between tab stops (for display of tab characters), in columns. */); 5554 doc: /* *Distance between tab stops (for display of tab characters), in columns.
5555This should be an integer greater than zero. */);
5555 5556
5556 DEFVAR_PER_BUFFER ("ctl-arrow", &BVAR (current_buffer, ctl_arrow), Qnil, 5557 DEFVAR_PER_BUFFER ("ctl-arrow", &BVAR (current_buffer, ctl_arrow), Qnil,
5557 doc: /* *Non-nil means display control chars with uparrow. 5558 doc: /* *Non-nil means display control chars with uparrow.
diff --git a/src/dispextern.h b/src/dispextern.h
index 1f2189adeca..72e23e6642a 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -62,7 +62,7 @@ typedef HDC XImagePtr_or_DC;
62 62
63#ifdef HAVE_NS 63#ifdef HAVE_NS
64#include "nsgui.h" 64#include "nsgui.h"
65/* following typedef needed to accomodate the MSDOS port, believe it or not */ 65/* Following typedef needed to accommodate the MSDOS port, believe it or not. */
66typedef struct ns_display_info Display_Info; 66typedef struct ns_display_info Display_Info;
67typedef Pixmap XImagePtr; 67typedef Pixmap XImagePtr;
68typedef XImagePtr XImagePtr_or_DC; 68typedef XImagePtr XImagePtr_or_DC;
diff --git a/src/msdos.c b/src/msdos.c
index e02e64b9ece..6bff56b3f82 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -842,7 +842,7 @@ IT_set_face (int face)
842 842
843/* According to RBIL (INTERRUP.A, V-1000), 160 is the maximum possible 843/* According to RBIL (INTERRUP.A, V-1000), 160 is the maximum possible
844 width of a DOS display in any known text mode. We multiply by 2 to 844 width of a DOS display in any known text mode. We multiply by 2 to
845 accomodate the screen attribute byte. */ 845 accommodate the screen attribute byte. */
846#define MAX_SCREEN_BUF 160*2 846#define MAX_SCREEN_BUF 160*2
847 847
848extern unsigned char *encode_terminal_code (struct glyph *, int, 848extern unsigned char *encode_terminal_code (struct glyph *, int,
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index 8b189baea46..bf6cc66798c 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -204,6 +204,7 @@ struct sigaction {
204#define dup2 sys_dup2 204#define dup2 sys_dup2
205#define fopen sys_fopen 205#define fopen sys_fopen
206#define link sys_link 206#define link sys_link
207#define localtime sys_localtime
207#define mkdir sys_mkdir 208#define mkdir sys_mkdir
208#undef mktemp 209#undef mktemp
209#define mktemp sys_mktemp 210#define mktemp sys_mktemp
diff --git a/src/sysdep.c b/src/sysdep.c
index 45e80ac0155..4b3a78e154e 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -304,7 +304,7 @@ wait_for_termination (int pid)
304{ 304{
305 while (1) 305 while (1)
306 { 306 {
307#if defined (BSD_SYSTEM) || defined (HPUX) 307#if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__)
308 /* Note that kill returns -1 even if the process is just a zombie now. 308 /* Note that kill returns -1 even if the process is just a zombie now.
309 But inevitably a SIGCHLD interrupt should be generated 309 But inevitably a SIGCHLD interrupt should be generated
310 and child_sig will do wait3 and make the process go away. */ 310 and child_sig will do wait3 and make the process go away. */
diff --git a/src/w32.c b/src/w32.c
index d715c39fa81..85e4a2025b9 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -34,6 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34#include <mbstring.h> /* for _mbspbrk */ 34#include <mbstring.h> /* for _mbspbrk */
35#include <math.h> 35#include <math.h>
36#include <setjmp.h> 36#include <setjmp.h>
37#include <time.h>
37 38
38/* must include CRT headers *before* config.h */ 39/* must include CRT headers *before* config.h */
39 40
@@ -62,6 +63,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
62 63
63#undef strerror 64#undef strerror
64 65
66#undef localtime
67
65#include "lisp.h" 68#include "lisp.h"
66 69
67#include <pwd.h> 70#include <pwd.h>
@@ -1942,6 +1945,12 @@ gettimeofday (struct timeval *tv, struct timezone *tz)
1942 1945
1943 tv->tv_sec = tb.time; 1946 tv->tv_sec = tb.time;
1944 tv->tv_usec = tb.millitm * 1000L; 1947 tv->tv_usec = tb.millitm * 1000L;
1948 /* Implementation note: _ftime sometimes doesn't update the dstflag
1949 according to the new timezone when the system timezone is
1950 changed. We could fix that by using GetSystemTime and
1951 GetTimeZoneInformation, but that doesn't seem necessary, since
1952 Emacs always calls gettimeofday with the 2nd argument NULL (see
1953 EMACS_GET_TIME). */
1945 if (tz) 1954 if (tz)
1946 { 1955 {
1947 tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */ 1956 tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */
@@ -5678,6 +5687,19 @@ sys_write (int fd, const void * buffer, unsigned int count)
5678 return nchars; 5687 return nchars;
5679} 5688}
5680 5689
5690/* The Windows CRT functions are "optimized for speed", so they don't
5691 check for timezone and DST changes if they were last called less
5692 than 1 minute ago (see http://support.microsoft.com/kb/821231). So
5693 all Emacs features that repeatedly call time functions (e.g.,
5694 display-time) are in real danger of missing timezone and DST
5695 changes. Calling tzset before each localtime call fixes that. */
5696struct tm *
5697sys_localtime (const time_t *t)
5698{
5699 tzset ();
5700 return localtime (t);
5701}
5702
5681static void 5703static void
5682check_windows_init_file (void) 5704check_windows_init_file (void)
5683{ 5705{
diff --git a/src/xdisp.c b/src/xdisp.c
index 574c84fc086..19fef35fce8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -26997,6 +26997,7 @@ init_xdisp (void)
26997 26997
26998 mini_w = XWINDOW (minibuf_window); 26998 mini_w = XWINDOW (minibuf_window);
26999 root_window = FRAME_ROOT_WINDOW (XFRAME (WINDOW_FRAME (mini_w))); 26999 root_window = FRAME_ROOT_WINDOW (XFRAME (WINDOW_FRAME (mini_w)));
27000 echo_area_window = minibuf_window;
27000 27001
27001 if (!noninteractive) 27002 if (!noninteractive)
27002 { 27003 {