diff options
| author | Eli Zaretskii | 2013-04-15 16:44:14 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-15 16:44:14 +0300 |
| commit | 947aa1c6e77af64fc0ad29910cbe1a3430b5f088 (patch) | |
| tree | e6db69d08baff30b4d32aff49db6b47e3cca7289 /src | |
| parent | 7d9fb4de782c3ff316c6ffc26f6ea291be2f653b (diff) | |
| parent | 0f821d9947d2a10a09dcc58e19e94b66c4c45227 (diff) | |
| download | emacs-947aa1c6e77af64fc0ad29910cbe1a3430b5f088.tar.gz emacs-947aa1c6e77af64fc0ad29910cbe1a3430b5f088.zip | |
Merge from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 17 | ||||
| -rw-r--r-- | src/dispextern.h | 24 | ||||
| -rw-r--r-- | src/frame.h | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 2 |
5 files changed, 32 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2d6fda4fec7..11b82f57108 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2013-04-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32fns.c (w32_wnd_proc): Add more assertions to investigate | ||
| 4 | bug#14062. | ||
| 5 | |||
| 6 | * frame.h (WINDOW_FRAME): Protect macro and its argument with | ||
| 7 | parentheses. | ||
| 8 | |||
| 9 | * dispextern.h (CURRENT_MODE_LINE_HEIGHT) | ||
| 10 | (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P) | ||
| 11 | (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with | ||
| 12 | parentheses where appropriate. | ||
| 13 | |||
| 14 | 2013-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15 | |||
| 16 | * keyboard.c (timer_start_idle): Remove no-longer-used local. | ||
| 17 | |||
| 1 | 2013-04-14 Eli Zaretskii <eliz@gnu.org> | 18 | 2013-04-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 19 | ||
| 3 | * buffer.c (syms_of_buffer) <left-margin-width, right-margin-width> | 20 | * buffer.c (syms_of_buffer) <left-margin-width, right-margin-width> |
diff --git a/src/dispextern.h b/src/dispextern.h index cb2e944d1cc..9dc3a57c284 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1384,7 +1384,7 @@ struct glyph_string | |||
| 1384 | ? current_mode_line_height \ | 1384 | ? current_mode_line_height \ |
| 1385 | : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 1385 | : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ |
| 1386 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 1386 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ |
| 1387 | : estimate_mode_line_height (XFRAME (W->frame), \ | 1387 | : estimate_mode_line_height (XFRAME ((W)->frame), \ |
| 1388 | CURRENT_MODE_LINE_FACE_ID (W)))) | 1388 | CURRENT_MODE_LINE_FACE_ID (W)))) |
| 1389 | 1389 | ||
| 1390 | /* Return the current height of the header line of window W. If not | 1390 | /* Return the current height of the header line of window W. If not |
| @@ -1397,7 +1397,7 @@ struct glyph_string | |||
| 1397 | ? current_header_line_height \ | 1397 | ? current_header_line_height \ |
| 1398 | : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 1398 | : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ |
| 1399 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 1399 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ |
| 1400 | : estimate_mode_line_height (XFRAME (W->frame),\ | 1400 | : estimate_mode_line_height (XFRAME ((W)->frame), \ |
| 1401 | HEADER_LINE_FACE_ID))) | 1401 | HEADER_LINE_FACE_ID))) |
| 1402 | 1402 | ||
| 1403 | /* Return the height of the desired mode line of window W. */ | 1403 | /* Return the height of the desired mode line of window W. */ |
| @@ -1416,20 +1416,20 @@ struct glyph_string | |||
| 1416 | (!MINI_WINDOW_P ((W)) \ | 1416 | (!MINI_WINDOW_P ((W)) \ |
| 1417 | && !(W)->pseudo_window_p \ | 1417 | && !(W)->pseudo_window_p \ |
| 1418 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ | 1418 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ |
| 1419 | && BUFFERP (W->contents) \ | 1419 | && BUFFERP ((W)->contents) \ |
| 1420 | && !NILP (BVAR (XBUFFER (W->contents), mode_line_format)) \ | 1420 | && !NILP (BVAR (XBUFFER ((W)->contents), mode_line_format)) \ |
| 1421 | && WINDOW_TOTAL_LINES (W) > 1) | 1421 | && WINDOW_TOTAL_LINES (W) > 1) |
| 1422 | 1422 | ||
| 1423 | /* Value is true if window W wants a header line. */ | 1423 | /* Value is true if window W wants a header line. */ |
| 1424 | 1424 | ||
| 1425 | #define WINDOW_WANTS_HEADER_LINE_P(W) \ | 1425 | #define WINDOW_WANTS_HEADER_LINE_P(W) \ |
| 1426 | (!MINI_WINDOW_P ((W)) \ | 1426 | (!MINI_WINDOW_P ((W)) \ |
| 1427 | && !(W)->pseudo_window_p \ | 1427 | && !(W)->pseudo_window_p \ |
| 1428 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ | 1428 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ |
| 1429 | && BUFFERP (W->contents) \ | 1429 | && BUFFERP ((W)->contents) \ |
| 1430 | && !NILP (BVAR (XBUFFER (W->contents), header_line_format)) \ | 1430 | && !NILP (BVAR (XBUFFER ((W)->contents), header_line_format)) \ |
| 1431 | && WINDOW_TOTAL_LINES (W) > 1 \ | 1431 | && WINDOW_TOTAL_LINES (W) > 1 \ |
| 1432 | + !NILP (BVAR (XBUFFER (W->contents), mode_line_format))) | 1432 | + !NILP (BVAR (XBUFFER ((W)->contents), mode_line_format))) |
| 1433 | 1433 | ||
| 1434 | /* Return proper value to be used as baseline offset of font that has | 1434 | /* Return proper value to be used as baseline offset of font that has |
| 1435 | ASCENT and DESCENT to draw characters by the font at the vertical | 1435 | ASCENT and DESCENT to draw characters by the font at the vertical |
diff --git a/src/frame.h b/src/frame.h index b69f19b7ef8..fc0a1dc828b 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -598,7 +598,7 @@ typedef struct frame *FRAME_PTR; | |||
| 598 | #define XSETFRAME(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_FRAME)) | 598 | #define XSETFRAME(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_FRAME)) |
| 599 | 599 | ||
| 600 | /* Given a window, return its frame as a Lisp_Object. */ | 600 | /* Given a window, return its frame as a Lisp_Object. */ |
| 601 | #define WINDOW_FRAME(w) w->frame | 601 | #define WINDOW_FRAME(w) ((w)->frame) |
| 602 | 602 | ||
| 603 | /* Test a frame for particular kinds of display methods. */ | 603 | /* Test a frame for particular kinds of display methods. */ |
| 604 | #define FRAME_INITIAL_P(f) ((f)->output_method == output_initial) | 604 | #define FRAME_INITIAL_P(f) ((f)->output_method == output_initial) |
diff --git a/src/keyboard.c b/src/keyboard.c index 12407bd536c..39591569bf8 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4188,8 +4188,6 @@ swallow_events (bool do_display) | |||
| 4188 | static void | 4188 | static void |
| 4189 | timer_start_idle (void) | 4189 | timer_start_idle (void) |
| 4190 | { | 4190 | { |
| 4191 | Lisp_Object timers; | ||
| 4192 | |||
| 4193 | /* If we are already in the idle state, do nothing. */ | 4191 | /* If we are already in the idle state, do nothing. */ |
| 4194 | if (EMACS_TIME_VALID_P (timer_idleness_start_time)) | 4192 | if (EMACS_TIME_VALID_P (timer_idleness_start_time)) |
| 4195 | return; | 4193 | return; |
diff --git a/src/w32fns.c b/src/w32fns.c index 5d3a78f8b95..de52ff144e3 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -3123,6 +3123,8 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |||
| 3123 | 3123 | ||
| 3124 | #ifdef ENABLE_CHECKING | 3124 | #ifdef ENABLE_CHECKING |
| 3125 | /* Temporary code to catch crashes in computing form.rcArea.top. */ | 3125 | /* Temporary code to catch crashes in computing form.rcArea.top. */ |
| 3126 | eassert (FRAMEP (w->frame)); | ||
| 3127 | eassert (BUFFERP (w->contents)); | ||
| 3126 | { | 3128 | { |
| 3127 | int wmbp = WINDOW_MENU_BAR_P (w); | 3129 | int wmbp = WINDOW_MENU_BAR_P (w); |
| 3128 | int wtbp = WINDOW_TOOL_BAR_P (w); | 3130 | int wtbp = WINDOW_TOOL_BAR_P (w); |