diff options
| author | Joakim Verona | 2013-04-17 21:56:43 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-04-17 21:56:43 +0200 |
| commit | 7ae411e3bef9f3bb49502614067b301944b775bf (patch) | |
| tree | 2a7ca825644b8c83cd1dbf17f810bc9d3c3fd7f6 /src | |
| parent | 1083adac63284cf1f81676c6adc801c9ceb283a8 (diff) | |
| parent | 86dfe9dc6768ae0e932b4a29ce7da5ceb613855a (diff) | |
| download | emacs-7ae411e3bef9f3bb49502614067b301944b775bf.tar.gz emacs-7ae411e3bef9f3bb49502614067b301944b775bf.zip | |
upstream
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/dispextern.h | 24 | ||||
| -rw-r--r-- | src/frame.h | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 2 |
5 files changed, 37 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5c0e26760c7..04a6c353619 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2013-04-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * minibuf.c (Ftest_completion): Silence compiler warning. | ||
| 4 | |||
| 5 | 2013-04-15 Eli Zaretskii <eliz@gnu.org> | ||
| 6 | |||
| 7 | * w32fns.c (w32_wnd_proc): Add more assertions to investigate | ||
| 8 | bug#14062. | ||
| 9 | |||
| 10 | * frame.h (WINDOW_FRAME): Protect macro and its argument with | ||
| 11 | parentheses. | ||
| 12 | |||
| 13 | * dispextern.h (CURRENT_MODE_LINE_HEIGHT) | ||
| 14 | (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P) | ||
| 15 | (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with | ||
| 16 | parentheses where appropriate. | ||
| 17 | |||
| 1 | 2013-04-14 Paul Eggert <eggert@cs.ucla.edu> | 18 | 2013-04-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 19 | ||
| 3 | * keyboard.c (timer_start_idle): Remove no-longer-used local. | 20 | * keyboard.c (timer_start_idle): Remove no-longer-used local. |
| @@ -1244,7 +1261,7 @@ | |||
| 1244 | (Fcommand_execute): Remove, replace by an Elisp implementation. | 1261 | (Fcommand_execute): Remove, replace by an Elisp implementation. |
| 1245 | (syms_of_keyboard): Adjust accordingly. | 1262 | (syms_of_keyboard): Adjust accordingly. |
| 1246 | 1263 | ||
| 1247 | 2013-02-19 Daniel Colascione <dancol@dancol.org> | 1264 | 2013-02-19 Daniel Colascione <dancol@dancol.org> |
| 1248 | 1265 | ||
| 1249 | * sheap.c (report_sheap_usage): Use message, not message1, so | 1266 | * sheap.c (report_sheap_usage): Use message, not message1, so |
| 1250 | that we don't try to create a buffer while we're in the middle | 1267 | that we don't try to create a buffer while we're in the middle |
| @@ -12068,9 +12085,9 @@ | |||
| 12068 | to denote vector blocks. Adjust users (live_vector_p, | 12085 | to denote vector blocks. Adjust users (live_vector_p, |
| 12069 | mark_maybe_pointer, valid_lisp_object_p) accordingly. | 12086 | mark_maybe_pointer, valid_lisp_object_p) accordingly. |
| 12070 | (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG. | 12087 | (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG. |
| 12071 | (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES), | 12088 | (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES) |
| 12072 | (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX), | 12089 | (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX) |
| 12073 | (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST), | 12090 | (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST) |
| 12074 | (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros. | 12091 | (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros. |
| 12075 | (roundup_size): New constant. | 12092 | (roundup_size): New constant. |
| 12076 | (struct vector_block): New data type. | 12093 | (struct vector_block): New data type. |
diff --git a/src/dispextern.h b/src/dispextern.h index 0c35aff8285..70a5ba27b8d 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1394,7 +1394,7 @@ struct glyph_string | |||
| 1394 | ? current_mode_line_height \ | 1394 | ? current_mode_line_height \ |
| 1395 | : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 1395 | : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ |
| 1396 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ | 1396 | ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix) \ |
| 1397 | : estimate_mode_line_height (XFRAME (W->frame), \ | 1397 | : estimate_mode_line_height (XFRAME ((W)->frame), \ |
| 1398 | CURRENT_MODE_LINE_FACE_ID (W)))) | 1398 | CURRENT_MODE_LINE_FACE_ID (W)))) |
| 1399 | 1399 | ||
| 1400 | /* Return the current height of the header line of window W. If not | 1400 | /* Return the current height of the header line of window W. If not |
| @@ -1407,7 +1407,7 @@ struct glyph_string | |||
| 1407 | ? current_header_line_height \ | 1407 | ? current_header_line_height \ |
| 1408 | : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 1408 | : (MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ |
| 1409 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ | 1409 | ? MATRIX_HEADER_LINE_HEIGHT ((W)->current_matrix) \ |
| 1410 | : estimate_mode_line_height (XFRAME (W->frame),\ | 1410 | : estimate_mode_line_height (XFRAME ((W)->frame), \ |
| 1411 | HEADER_LINE_FACE_ID))) | 1411 | HEADER_LINE_FACE_ID))) |
| 1412 | 1412 | ||
| 1413 | /* Return the height of the desired mode line of window W. */ | 1413 | /* Return the height of the desired mode line of window W. */ |
| @@ -1426,20 +1426,20 @@ struct glyph_string | |||
| 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), mode_line_format)) \ | 1430 | && !NILP (BVAR (XBUFFER ((W)->contents), mode_line_format)) \ |
| 1431 | && WINDOW_TOTAL_LINES (W) > 1) | 1431 | && WINDOW_TOTAL_LINES (W) > 1) |
| 1432 | 1432 | ||
| 1433 | /* Value is true if window W wants a header line. */ | 1433 | /* Value is true if window W wants a header line. */ |
| 1434 | 1434 | ||
| 1435 | #define WINDOW_WANTS_HEADER_LINE_P(W) \ | 1435 | #define WINDOW_WANTS_HEADER_LINE_P(W) \ |
| 1436 | (!MINI_WINDOW_P ((W)) \ | 1436 | (!MINI_WINDOW_P ((W)) \ |
| 1437 | && !(W)->pseudo_window_p \ | 1437 | && !(W)->pseudo_window_p \ |
| 1438 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ | 1438 | && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ |
| 1439 | && BUFFERP (W->contents) \ | 1439 | && BUFFERP ((W)->contents) \ |
| 1440 | && !NILP (BVAR (XBUFFER (W->contents), header_line_format)) \ | 1440 | && !NILP (BVAR (XBUFFER ((W)->contents), header_line_format)) \ |
| 1441 | && WINDOW_TOTAL_LINES (W) > 1 \ | 1441 | && WINDOW_TOTAL_LINES (W) > 1 \ |
| 1442 | + !NILP (BVAR (XBUFFER (W->contents), mode_line_format))) | 1442 | + !NILP (BVAR (XBUFFER ((W)->contents), mode_line_format))) |
| 1443 | 1443 | ||
| 1444 | /* Return proper value to be used as baseline offset of font that has | 1444 | /* Return proper value to be used as baseline offset of font that has |
| 1445 | ASCENT and DESCENT to draw characters by the font at the vertical | 1445 | 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/minibuf.c b/src/minibuf.c index 4cc1f8d435a..b96d27e0742 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1799,8 +1799,8 @@ the values STRING, PREDICATE and `lambda'. */) | |||
| 1799 | else if (HASH_TABLE_P (collection)) | 1799 | else if (HASH_TABLE_P (collection)) |
| 1800 | { | 1800 | { |
| 1801 | struct Lisp_Hash_Table *h = XHASH_TABLE (collection); | 1801 | struct Lisp_Hash_Table *h = XHASH_TABLE (collection); |
| 1802 | i = hash_lookup (h, string, NULL); | ||
| 1803 | Lisp_Object key = Qnil; | 1802 | Lisp_Object key = Qnil; |
| 1803 | i = hash_lookup (h, string, NULL); | ||
| 1804 | if (i >= 0) | 1804 | if (i >= 0) |
| 1805 | tem = HASH_KEY (h, i); | 1805 | tem = HASH_KEY (h, i); |
| 1806 | else | 1806 | else |
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); |