diff options
| author | Joakim Verona | 2011-08-09 08:37:34 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-08-09 08:37:34 +0200 |
| commit | 301cce3b507f4d56b3182c15b5d741582c991e4c (patch) | |
| tree | 8edacc75039949bd3fc112da8d39469daf63ff80 /src | |
| parent | 1e3f7bd2cdb85abfbf572cc1a13e615e5c4299de (diff) | |
| download | emacs-301cce3b507f4d56b3182c15b5d741582c991e4c.tar.gz emacs-301cce3b507f4d56b3182c15b5d741582c991e4c.zip | |
redisplay debugging
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 19 | ||||
| -rw-r--r-- | src/xwidget.c | 3 |
2 files changed, 19 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index de9c624ba04..d4f53012763 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -12735,7 +12735,7 @@ redisplay_internal (void) | |||
| 12735 | #endif | 12735 | #endif |
| 12736 | #if HAVE_XWIDGETS | 12736 | #if HAVE_XWIDGETS |
| 12737 | //debug optimization movement issue | 12737 | //debug optimization movement issue |
| 12738 | w->desired_matrix->no_scrolling_p = 1; | 12738 | //w->desired_matrix->no_scrolling_p = 1; |
| 12739 | //*w->desired_matrix->method = 0; | 12739 | //*w->desired_matrix->method = 0; |
| 12740 | //debug_method_add (w, "optimization 1"); | 12740 | //debug_method_add (w, "optimization 1"); |
| 12741 | #endif | 12741 | #endif |
| @@ -15567,6 +15567,8 @@ try_window (Lisp_Object window, struct text_pos pos, int flags) | |||
| 15567 | /* Initialize iterator and info to start at POS. */ | 15567 | /* Initialize iterator and info to start at POS. */ |
| 15568 | start_display (&it, w, pos); | 15568 | start_display (&it, w, pos); |
| 15569 | 15569 | ||
| 15570 | |||
| 15571 | |||
| 15570 | /* Display all lines of W. */ | 15572 | /* Display all lines of W. */ |
| 15571 | while (it.current_y < it.last_visible_y) | 15573 | while (it.current_y < it.last_visible_y) |
| 15572 | { | 15574 | { |
| @@ -15575,6 +15577,11 @@ try_window (Lisp_Object window, struct text_pos pos, int flags) | |||
| 15575 | if (fonts_changed_p && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) | 15577 | if (fonts_changed_p && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) |
| 15576 | return 0; | 15578 | return 0; |
| 15577 | } | 15579 | } |
| 15580 | #ifdef HAVE_XWIDGETS_xxx | ||
| 15581 | //currently this is needed to detect xwidget movement reliably. or probably not. | ||
| 15582 | printf("try_window\n"); | ||
| 15583 | return 0; | ||
| 15584 | #endif | ||
| 15578 | 15585 | ||
| 15579 | /* Don't let the cursor end in the scroll margins. */ | 15586 | /* Don't let the cursor end in the scroll margins. */ |
| 15580 | if ((flags & TRY_WINDOW_CHECK_MARGINS) | 15587 | if ((flags & TRY_WINDOW_CHECK_MARGINS) |
| @@ -15668,8 +15675,9 @@ try_window_reusing_current_matrix (struct window *w) | |||
| 15668 | return 0; | 15675 | return 0; |
| 15669 | #endif | 15676 | #endif |
| 15670 | 15677 | ||
| 15671 | #if HAVE_XWIDGETS | 15678 | #ifdef HAVE_XWIDGETS |
| 15672 | //currently this is needed to detect xwidget movement reliably. or probably not. | 15679 | //currently this is needed to detect xwidget movement reliably. or probably not. |
| 15680 | printf("try_window_reusing_current_matrix\n"); | ||
| 15673 | return 0; | 15681 | return 0; |
| 15674 | #endif | 15682 | #endif |
| 15675 | 15683 | ||
| @@ -16434,6 +16442,13 @@ try_window_id (struct window *w) | |||
| 16434 | return 0; | 16442 | return 0; |
| 16435 | #endif | 16443 | #endif |
| 16436 | 16444 | ||
| 16445 | #ifdef HAVE_XWIDGETS | ||
| 16446 | //maybe needed for proper xwidget movement | ||
| 16447 | printf("try_window_id\n"); | ||
| 16448 | return -1; | ||
| 16449 | #endif | ||
| 16450 | |||
| 16451 | |||
| 16437 | /* This is handy for debugging. */ | 16452 | /* This is handy for debugging. */ |
| 16438 | #if 0 | 16453 | #if 0 |
| 16439 | #define GIVE_UP(X) \ | 16454 | #define GIVE_UP(X) \ |
diff --git a/src/xwidget.c b/src/xwidget.c index 1c68e919efa..e667c4c75fd 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -1055,7 +1055,8 @@ lookup_xwidget (Lisp_Object spec) | |||
| 1055 | 1055 | ||
| 1056 | /* value = xwidget_spec_value (spec, QCplist, NULL); */ | 1056 | /* value = xwidget_spec_value (spec, QCplist, NULL); */ |
| 1057 | /* xw->plist = value; */ | 1057 | /* xw->plist = value; */ |
| 1058 | printf ("xwidget_id:%d type:%d found:%d %d %d title:%s (%d,%d)\n", xw, | 1058 | /* coordinates are not known here */ |
| 1059 | printf ("lookup_xwidget xwidget_id:%d type:%d found:%d %d %d title:'%s' (%d,%d)\n", xw, | ||
| 1059 | xw->type, found, found1, found2, xw->title, xw->height, xw->width); | 1060 | xw->type, found, found1, found2, xw->title, xw->height, xw->width); |
| 1060 | 1061 | ||
| 1061 | //assert_valid_xwidget_id (id, "lookup_xwidget"); | 1062 | //assert_valid_xwidget_id (id, "lookup_xwidget"); |