]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 15 Sep 2013 07:06:05 +0000 (11:06 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Sun, 15 Sep 2013 07:06:05 +0000 (11:06 +0400)
Define once here...
* nsterm.h, w32term.h, xterm.h: ...and not here.

src/ChangeLog
src/frame.h
src/nsterm.h
src/w32term.h
src/xterm.h

index 102818e04a53974dd9bffa6d409d115bb7d95f4e..3473ec9ab020ff6a11edeac663622001cf2b641d 100644 (file)
@@ -2,6 +2,9 @@
 
        * xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
        (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER.
+       * frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
+       Define once here...
+       * nsterm.h, w32term.h, xterm.h: ...and not here.
 
 2013-09-14  Eli Zaretskii  <eliz@gnu.org>
 
index ea550f4a2fa343ada6d4ac6fb635eb7850361fc8..d8a6d380090378c3db060d0dd7bf316c499a779c 100644 (file)
@@ -1131,6 +1131,15 @@ extern Lisp_Object selected_frame;
   (FRAME_PIXEL_Y_TO_LINE (f, ((height) \
                              - FRAME_INTERNAL_BORDER_WIDTH (f))))
 
+/* Value is the smallest width of any character in any font on frame F.  */
+
+#define FRAME_SMALLEST_CHAR_WIDTH(f)           \
+  FRAME_DISPLAY_INFO (f)->smallest_char_width
+
+/* Value is the smallest height of any font on frame F.  */
+
+#define FRAME_SMALLEST_FONT_HEIGHT(f)          \
+  FRAME_DISPLAY_INFO (f)->smallest_font_height
 
 /***********************************************************************
                                Frame Parameters
index 487422b13db687d39ae0a9ebf62d2aa199f62e46..5f89267be531b9fd6c8e04bf5d7986e3456b4045 100644 (file)
@@ -746,10 +746,6 @@ struct x_output
 
 #define FRAME_FONTSET(f) ((f)->output_data.ns->fontset)
 
-#define FRAME_SMALLEST_CHAR_WIDTH(f)  \
-  (FRAME_DISPLAY_INFO (f)->smallest_char_width)
-#define FRAME_SMALLEST_FONT_HEIGHT(f) \
-  (FRAME_DISPLAY_INFO (f)->smallest_font_height)
 #define FRAME_BASELINE_OFFSET(f) ((f)->output_data.ns->baseline_offset)
 #define BLACK_PIX_DEFAULT(f) 0x000000
 #define WHITE_PIX_DEFAULT(f) 0xFFFFFF
index 5146fa8ef3ad3f26d14b95923eb263daea477313..9c7134ddf11f2a896e6d27db4f152570de55e0a7 100644 (file)
@@ -382,16 +382,6 @@ extern struct w32_output w32term_display;
 /* This is the `Display *' which frame F is on.  */
 #define FRAME_X_DISPLAY(f) (0)
 
-/* Value is the smallest width of any character in any font on frame F.  */
-
-#define FRAME_SMALLEST_CHAR_WIDTH(F) \
-     FRAME_DISPLAY_INFO(F)->smallest_char_width
-
-/* Value is the smallest height of any font on frame F.  */
-
-#define FRAME_SMALLEST_FONT_HEIGHT(F) \
-     FRAME_DISPLAY_INFO(F)->smallest_font_height
-
 #define FRAME_NORMAL_PLACEMENT(F) ((F)->output_data.w32->normal_placement)
 #define FRAME_PREV_FSMODE(F)      ((F)->output_data.w32->prev_fsmode)
 
index aa128cb50724b386abaf333e790cf89435489982..4f6b545cb4564fde01cb8c4ca8d55963d75547de 100644 (file)
@@ -734,16 +734,6 @@ enum
 #define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style)
 #define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs)
 
-/* Value is the smallest width of any character in any font on frame F.  */
-
-#define FRAME_SMALLEST_CHAR_WIDTH(F) \
-     FRAME_DISPLAY_INFO(F)->smallest_char_width
-
-/* Value is the smallest height of any font on frame F.  */
-
-#define FRAME_SMALLEST_FONT_HEIGHT(F) \
-     FRAME_DISPLAY_INFO(F)->smallest_font_height
-\f
 /* X-specific scroll bar stuff.  */
 
 /* We represent scroll bars as lisp vectors.  This allows us to place