From: Joakim Verona Date: Mon, 9 Feb 2015 14:23:47 +0000 (+0100) Subject: ifdef indentation X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bad7724dd443d4c8bb4cc9edfb8aa1183d039626;p=emacs.git ifdef indentation --- diff --git a/src/buffer.c b/src/buffer.c index 223683db6f3..bc06e17ad42 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -43,8 +43,8 @@ along with GNU Emacs. If not, see . */ #include "frame.h" #ifdef HAVE_XWIDGETS -#include "xwidget.h" -#endif /* HAVE_XWIDGETS */ +# include "xwidget.h" +#endif #ifdef WINDOWSNT #include "w32heap.h" /* for mmap_* */ #endif @@ -1762,7 +1762,7 @@ cleaning up all windows currently displaying the buffer to be killed. */) GCPRO1 (buffer); kill_buffer_xwidgets (buffer); UNGCPRO; -#endif /* HAVE_XWIDGETS */ +#endif /* Killing buffer processes may run sentinels which may have killed our buffer. */ if (!BUFFER_LIVE_P (b)) diff --git a/src/dispnew.c b/src/dispnew.c index 6ee4ccedf0b..5f63c7190bf 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -49,7 +49,7 @@ along with GNU Emacs. If not, see . */ #endif /* HAVE_WINDOW_SYSTEM */ #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #include diff --git a/src/emacs.c b/src/emacs.c index 87b1f11d59b..0b927523682 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -66,7 +66,7 @@ along with GNU Emacs. If not, see . */ #include "window.h" #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #include "systty.h" #include "atimer.h" diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index 598c5c1a81e..76b169def46 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c @@ -24,7 +24,7 @@ along with GNU Emacs. If not, see . */ #include "frame.h" #include "xterm.h" #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #include "emacsgtkfixed.h" diff --git a/src/print.c b/src/print.c index 75288bc6a3a..cca73ec2b29 100644 --- a/src/print.c +++ b/src/print.c @@ -38,7 +38,7 @@ along with GNU Emacs. If not, see . */ #include "font.h" #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #include diff --git a/src/window.c b/src/window.c index 5cbd58ddde9..1c94d7bfebd 100644 --- a/src/window.c +++ b/src/window.c @@ -45,7 +45,7 @@ along with GNU Emacs. If not, see . */ #include "msdos.h" #endif #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif static int displayed_window_lines (struct window *); diff --git a/src/xdisp.c b/src/xdisp.c index faec93fc6f9..17458bfdc0a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -319,7 +319,7 @@ along with GNU Emacs. If not, see . */ #endif /* HAVE_WINDOW_SYSTEM */ #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #ifndef FRAME_X_OUTPUT #define FRAME_X_OUTPUT(f) ((f)->output_data.x) @@ -846,7 +846,7 @@ static int next_element_from_buffer (struct it *); static int next_element_from_composition (struct it *); static int next_element_from_image (struct it *); #ifdef HAVE_XWIDGETS -static int next_element_from_xwidget(struct it *); + static int next_element_from_xwidget(struct it *); #endif static int next_element_from_stretch (struct it *); static void load_overlay_strings (struct it *, ptrdiff_t); @@ -17055,13 +17055,6 @@ try_window_reusing_current_matrix (struct window *w) return 0; #endif -#ifdef HAVE_XWIDGETS_xxx - //currently this is needed to detect xwidget movement reliably. or probably not. - printf("try_window_reusing_current_matrix\n"); - return 0; -#endif - - if (/* This function doesn't handle terminal frames. */ !FRAME_WINDOW_P (f) /* Don't try to reuse the display if windows have been split diff --git a/src/xterm.c b/src/xterm.c index 555af2b536c..37784d33fc5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -64,7 +64,7 @@ along with GNU Emacs. If not, see . */ #include "frame.h" #include "dispextern.h" #ifdef HAVE_XWIDGETS -#include "xwidget.h" +# include "xwidget.h" #endif #include "fontset.h" #include "termhooks.h" diff --git a/src/xwidget.h b/src/xwidget.h index 6f97cb17459..8f5fa0a1e83 100644 --- a/src/xwidget.h +++ b/src/xwidget.h @@ -121,15 +121,11 @@ struct xwidget_type struct xwidget *xwidget_from_id (int id); -//extern int xwidget_owns_kbd; - void xwidget_start_redisplay (void); void xwidget_end_redisplay (struct window *w, struct glyph_matrix *matrix); void xwidget_touch (struct xwidget_view *xw); -//void assert_valid_xwidget_id(int id,char *str); - struct xwidget *lookup_xwidget (Lisp_Object spec); #define XG_XWIDGET "emacs_xwidget" #define XG_XWIDGET_VIEW "emacs_xwidget_view"