aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjave2015-01-04 10:39:07 +0100
committerjave2015-01-04 10:39:07 +0100
commit78f196e333c9f77c6a6b5ed69b0d77857cd633a1 (patch)
treed502b79627cdd5a6063a378bf4f6b32b35000060 /src
parenta7e2c92ddf6c27b2cfcc9782fd71f15d36162cce (diff)
downloademacs-78f196e333c9f77c6a6b5ed69b0d77857cd633a1.tar.gz
emacs-78f196e333c9f77c6a6b5ed69b0d77857cd633a1.zip
cleanups
Diffstat (limited to 'src')
-rw-r--r--src/window.c3
-rw-r--r--src/xdisp.c21
-rw-r--r--src/xterm.c1
3 files changed, 2 insertions, 23 deletions
diff --git a/src/window.c b/src/window.c
index da4e66ca2eb..65a837dbbad 100644
--- a/src/window.c
+++ b/src/window.c
@@ -44,9 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
44#ifdef MSDOS 44#ifdef MSDOS
45#include "msdos.h" 45#include "msdos.h"
46#endif 46#endif
47#ifdef HAVE_NS
48#include "nsterm.h"
49#endif
50#ifdef HAVE_XWIDGETS 47#ifdef HAVE_XWIDGETS
51#include "xwidget.h" 48#include "xwidget.h"
52#endif 49#endif
diff --git a/src/xdisp.c b/src/xdisp.c
index 1fa19f7b7b7..dd474cf094e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -318,7 +318,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
318#include TERM_HEADER 318#include TERM_HEADER
319#endif /* HAVE_WINDOW_SYSTEM */ 319#endif /* HAVE_WINDOW_SYSTEM */
320 320
321#include "font.h"
322#ifdef HAVE_XWIDGETS 321#ifdef HAVE_XWIDGETS
323#include "xwidget.h" 322#include "xwidget.h"
324#endif 323#endif
@@ -7701,6 +7700,7 @@ set_iterator_to_next (struct it *it, int reseat_p)
7701 goto consider_string_end; 7700 goto consider_string_end;
7702 break; 7701 break;
7703#endif 7702#endif
7703
7704 default: 7704 default:
7705 /* There are no other methods defined, so this should be a bug. */ 7705 /* There are no other methods defined, so this should be a bug. */
7706 emacs_abort (); 7706 emacs_abort ();
@@ -13831,13 +13831,6 @@ redisplay_internal (void)
13831 *w->desired_matrix->method = 0; 13831 *w->desired_matrix->method = 0;
13832 debug_method_add (w, "optimization 1"); 13832 debug_method_add (w, "optimization 1");
13833#endif 13833#endif
13834#if HAVE_XWIDGETS
13835 //debug optimization movement issue
13836 //w->desired_matrix->no_scrolling_p = 1;
13837 //*w->desired_matrix->method = 0;
13838 //debug_method_add (w, "optimization 1");
13839#endif
13840
13841#ifdef HAVE_WINDOW_SYSTEM 13834#ifdef HAVE_WINDOW_SYSTEM
13842 update_window_fringes (w, 0); 13835 update_window_fringes (w, 0);
13843#endif 13836#endif
@@ -17084,11 +17077,6 @@ try_window (Lisp_Object window, struct text_pos pos, int flags)
17084 if (f->fonts_changed && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) 17077 if (f->fonts_changed && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE))
17085 return 0; 17078 return 0;
17086 } 17079 }
17087#ifdef HAVE_XWIDGETS_xxx
17088 //currently this is needed to detect xwidget movement reliably. or probably not.
17089 printf("try_window\n");
17090 return 0;
17091#endif
17092 17080
17093 /* Don't let the cursor end in the scroll margins. */ 17081 /* Don't let the cursor end in the scroll margins. */
17094 if ((flags & TRY_WINDOW_CHECK_MARGINS) 17082 if ((flags & TRY_WINDOW_CHECK_MARGINS)
@@ -17949,13 +17937,6 @@ try_window_id (struct window *w)
17949 return 0; 17937 return 0;
17950#endif 17938#endif
17951 17939
17952#ifdef HAVE_XWIDGETS_xxx
17953 //maybe needed for proper xwidget movement
17954 printf("try_window_id\n");
17955 return -1;
17956#endif
17957
17958
17959 /* This is handy for debugging. */ 17940 /* This is handy for debugging. */
17960#if 0 17941#if 0
17961#define GIVE_UP(X) \ 17942#define GIVE_UP(X) \
diff --git a/src/xterm.c b/src/xterm.c
index 14d04b8f671..e3f473986b2 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8033,6 +8033,7 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text
8033 cursor_glyph = get_phys_cursor_glyph (w); 8033 cursor_glyph = get_phys_cursor_glyph (w);
8034 if (cursor_glyph == NULL) 8034 if (cursor_glyph == NULL)
8035 return; 8035 return;
8036
8036#ifdef HAVE_XWIDGETS 8037#ifdef HAVE_XWIDGETS
8037 if (cursor_glyph->type == XWIDGET_GLYPH){ 8038 if (cursor_glyph->type == XWIDGET_GLYPH){
8038 printf("tried avoiding xwidget cursor\n"); 8039 printf("tried avoiding xwidget cursor\n");