emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] xwidget_mvp bad7724 2/2: ifdef indentation


From: Joakim Verona
Subject: [Emacs-diffs] xwidget_mvp bad7724 2/2: ifdef indentation
Date: Mon, 09 Feb 2015 14:24:10 +0000

branch: xwidget_mvp
commit bad7724dd443d4c8bb4cc9edfb8aa1183d039626
Author: Joakim Verona <address@hidden>
Commit: Joakim Verona <address@hidden>

    ifdef indentation
---
 src/buffer.c        |    6 +++---
 src/dispnew.c       |    2 +-
 src/emacs.c         |    2 +-
 src/emacsgtkfixed.c |    2 +-
 src/print.c         |    2 +-
 src/window.c        |    2 +-
 src/xdisp.c         |   11 ++---------
 src/xterm.c         |    2 +-
 src/xwidget.h       |    4 ----
 9 files changed, 11 insertions(+), 22 deletions(-)

diff --git a/src/buffer.c b/src/buffer.c
index 223683d..bc06e17 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -43,8 +43,8 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 6ee4cce..5f63c71 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -49,7 +49,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #endif /* HAVE_WINDOW_SYSTEM */
 
 #ifdef HAVE_XWIDGETS
-#include "xwidget.h"
+# include "xwidget.h"
 #endif
 
 #include <errno.h>
diff --git a/src/emacs.c b/src/emacs.c
index 87b1f11..0b92752 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -66,7 +66,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 598c5c1..76b169d 100644
--- a/src/emacsgtkfixed.c
+++ b/src/emacsgtkfixed.c
@@ -24,7 +24,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 75288bc..cca73ec 100644
--- a/src/print.c
+++ b/src/print.c
@@ -38,7 +38,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #include "font.h"
 
 #ifdef HAVE_XWIDGETS
-#include "xwidget.h"
+# include "xwidget.h"
 #endif
 
 #include <float.h>
diff --git a/src/window.c b/src/window.c
index 5cbd58d..1c94d7b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -45,7 +45,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 faec93f..17458bf 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -319,7 +319,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 555af2b..37784d3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -64,7 +64,7 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 #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 6f97cb1..8f5fa0a 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]