aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2011-10-29 17:50:30 +0200
committerAndreas Schwab2011-10-29 17:50:30 +0200
commit021f2e1a47272350a4ab4f1a67baa32e1b41b68e (patch)
tree1736f223cbe53ab60e3a1d0377c88484b0acbb88
parent73c3f81d49cd9fdedb667016834e09e546ff5a2a (diff)
downloademacs-021f2e1a47272350a4ab4f1a67baa32e1b41b68e.tar.gz
emacs-021f2e1a47272350a4ab4f1a67baa32e1b41b68e.zip
* src/frame.h (MOUSE_HL_INFO): Remove excess parens.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/frame.h74
2 files changed, 41 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 77ba7be09c0..d8f8e07e076 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-10-29 Andreas Schwab <schwab@linux-m68k.org>
2
3 * frame.h (MOUSE_HL_INFO): Remove excess parens.
4
12011-10-29 Eli Zaretskii <eliz@gnu.org> 52011-10-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 Fix the `xbytecode' command. 7 Fix the `xbytecode' command.
diff --git a/src/frame.h b/src/frame.h
index 3775403810f..e096807b02e 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -538,12 +538,12 @@ typedef struct frame *FRAME_PTR;
538 does not have FRAME_X_DISPLAY_INFO. */ 538 does not have FRAME_X_DISPLAY_INFO. */
539#ifdef HAVE_WINDOW_SYSTEM 539#ifdef HAVE_WINDOW_SYSTEM
540# define MOUSE_HL_INFO(F) \ 540# define MOUSE_HL_INFO(F) \
541 (FRAME_WINDOW_P(F) \ 541 (FRAME_WINDOW_P(F) \
542 ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \ 542 ? &FRAME_X_DISPLAY_INFO(F)->mouse_highlight \
543 : &(((F)->output_data.tty->display_info)->mouse_highlight)) 543 : &(F)->output_data.tty->display_info->mouse_highlight)
544#else 544#else
545# define MOUSE_HL_INFO(F) \ 545# define MOUSE_HL_INFO(F) \
546 (&(((F)->output_data.tty->display_info)->mouse_highlight)) 546 (&(F)->output_data.tty->display_info->mouse_highlight)
547#endif 547#endif
548 548
549/* Nonzero if frame F is still alive (not deleted). */ 549/* Nonzero if frame F is still alive (not deleted). */
@@ -594,7 +594,7 @@ typedef struct frame *FRAME_PTR;
594/* Lines above the top-most window in frame F. */ 594/* Lines above the top-most window in frame F. */
595 595
596#define FRAME_TOP_MARGIN(F) \ 596#define FRAME_TOP_MARGIN(F) \
597 (FRAME_MENU_BAR_LINES (F) + FRAME_TOOL_BAR_LINES (F)) 597 (FRAME_MENU_BAR_LINES (F) + FRAME_TOOL_BAR_LINES (F))
598 598
599/* Pixel height of the top margin above. */ 599/* Pixel height of the top margin above. */
600 600
@@ -659,11 +659,11 @@ typedef struct frame *FRAME_PTR;
659 and which side they are on. */ 659 and which side they are on. */
660#define FRAME_VERTICAL_SCROLL_BAR_TYPE(f) ((f)->vertical_scroll_bar_type) 660#define FRAME_VERTICAL_SCROLL_BAR_TYPE(f) ((f)->vertical_scroll_bar_type)
661#define FRAME_HAS_VERTICAL_SCROLL_BARS(f) \ 661#define FRAME_HAS_VERTICAL_SCROLL_BARS(f) \
662 ((f)->vertical_scroll_bar_type != vertical_scroll_bar_none) 662 ((f)->vertical_scroll_bar_type != vertical_scroll_bar_none)
663#define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT(f) \ 663#define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT(f) \
664 ((f)->vertical_scroll_bar_type == vertical_scroll_bar_left) 664 ((f)->vertical_scroll_bar_type == vertical_scroll_bar_left)
665#define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT(f) \ 665#define FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT(f) \
666 ((f)->vertical_scroll_bar_type == vertical_scroll_bar_right) 666 ((f)->vertical_scroll_bar_type == vertical_scroll_bar_right)
667 667
668/* Width that a scroll bar in frame F should have, if there is one. 668/* Width that a scroll bar in frame F should have, if there is one.
669 Measured in pixels. 669 Measured in pixels.
@@ -680,13 +680,13 @@ typedef struct frame *FRAME_PTR;
680 the right in this frame, or there are no scroll bars, value is 0. */ 680 the right in this frame, or there are no scroll bars, value is 0. */
681 681
682#define FRAME_LEFT_SCROLL_BAR_COLS(f) \ 682#define FRAME_LEFT_SCROLL_BAR_COLS(f) \
683 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ 683 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \
684 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \ 684 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \
685 : 0) 685 : 0)
686 686
687/* Width of a left scroll bar in frame F, measured in pixels */ 687/* Width of a left scroll bar in frame F, measured in pixels */
688 688
689#define FRAME_LEFT_SCROLL_BAR_AREA_WIDTH(f) \ 689#define FRAME_LEFT_SCROLL_BAR_AREA_WIDTH(f) \
690 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \ 690 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f) \
691 ? (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)) \ 691 ? (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)) \
692 : 0) 692 : 0)
@@ -696,13 +696,13 @@ typedef struct frame *FRAME_PTR;
696 the left in this frame, or there are no scroll bars, value is 0. */ 696 the left in this frame, or there are no scroll bars, value is 0. */
697 697
698#define FRAME_RIGHT_SCROLL_BAR_COLS(f) \ 698#define FRAME_RIGHT_SCROLL_BAR_COLS(f) \
699 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \ 699 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \
700 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \ 700 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \
701 : 0) 701 : 0)
702 702
703/* Width of a right scroll bar area in frame F, measured in pixels */ 703/* Width of a right scroll bar area in frame F, measured in pixels */
704 704
705#define FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH(f) \ 705#define FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH(f) \
706 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \ 706 (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f) \
707 ? (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)) \ 707 ? (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)) \
708 : 0) 708 : 0)
@@ -710,9 +710,9 @@ typedef struct frame *FRAME_PTR;
710/* Actual width of a scroll bar in frame F, measured in columns. */ 710/* Actual width of a scroll bar in frame F, measured in columns. */
711 711
712#define FRAME_SCROLL_BAR_COLS(f) \ 712#define FRAME_SCROLL_BAR_COLS(f) \
713 (FRAME_HAS_VERTICAL_SCROLL_BARS (f) \ 713 (FRAME_HAS_VERTICAL_SCROLL_BARS (f) \
714 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \ 714 ? FRAME_CONFIG_SCROLL_BAR_COLS (f) \
715 : 0) 715 : 0)
716 716
717/* Actual width of a scroll bar area in frame F, measured in pixels. */ 717/* Actual width of a scroll bar area in frame F, measured in pixels. */
718 718
@@ -731,21 +731,21 @@ typedef struct frame *FRAME_PTR;
731 not including scroll bars and fringes. */ 731 not including scroll bars and fringes. */
732 732
733#define SET_FRAME_COLS(f, val) \ 733#define SET_FRAME_COLS(f, val) \
734 (FRAME_COLS (f) = (val), \ 734 (FRAME_COLS (f) = (val), \
735 (f)->total_cols = FRAME_TOTAL_COLS_ARG (f, FRAME_COLS (f))) 735 (f)->total_cols = FRAME_TOTAL_COLS_ARG (f, FRAME_COLS (f)))
736 736
737/* Given a value WIDTH for frame F's nominal width, 737/* Given a value WIDTH for frame F's nominal width,
738 return the value that FRAME_TOTAL_COLS should have. */ 738 return the value that FRAME_TOTAL_COLS should have. */
739 739
740#define FRAME_TOTAL_COLS_ARG(f, width) \ 740#define FRAME_TOTAL_COLS_ARG(f, width) \
741 ((width) \ 741 ((width) \
742 + FRAME_SCROLL_BAR_COLS (f) \ 742 + FRAME_SCROLL_BAR_COLS (f) \
743 + FRAME_FRINGE_COLS (f)) 743 + FRAME_FRINGE_COLS (f))
744 744
745/* Maximum + 1 legitimate value for FRAME_CURSOR_X. */ 745/* Maximum + 1 legitimate value for FRAME_CURSOR_X. */
746 746
747#define FRAME_CURSOR_X_LIMIT(f) \ 747#define FRAME_CURSOR_X_LIMIT(f) \
748 (FRAME_COLS (f) + FRAME_LEFT_SCROLL_BAR_COLS (f)) 748 (FRAME_COLS (f) + FRAME_LEFT_SCROLL_BAR_COLS (f))
749 749
750/* Nonzero if frame F has scroll bars. */ 750/* Nonzero if frame F has scroll bars. */
751 751
@@ -938,18 +938,18 @@ extern Lisp_Object selected_frame;
938 float. Value is a C integer. */ 938 float. Value is a C integer. */
939 939
940#define FRAME_PIXEL_X_FROM_CANON_X(F, X) \ 940#define FRAME_PIXEL_X_FROM_CANON_X(F, X) \
941 (INTEGERP (X) \ 941 (INTEGERP (X) \
942 ? XINT (X) * FRAME_COLUMN_WIDTH (F) \ 942 ? XINT (X) * FRAME_COLUMN_WIDTH (F) \
943 : (int) (XFLOAT_DATA (X) * FRAME_COLUMN_WIDTH (F))) 943 : (int) (XFLOAT_DATA (X) * FRAME_COLUMN_WIDTH (F)))
944 944
945/* Convert canonical value Y to pixels. F is the frame whose 945/* Convert canonical value Y to pixels. F is the frame whose
946 canonical character height is to be used. X must be a Lisp integer 946 canonical character height is to be used. X must be a Lisp integer
947 or float. Value is a C integer. */ 947 or float. Value is a C integer. */
948 948
949#define FRAME_PIXEL_Y_FROM_CANON_Y(F, Y) \ 949#define FRAME_PIXEL_Y_FROM_CANON_Y(F, Y) \
950 (INTEGERP (Y) \ 950 (INTEGERP (Y) \
951 ? XINT (Y) * FRAME_LINE_HEIGHT (F) \ 951 ? XINT (Y) * FRAME_LINE_HEIGHT (F) \
952 : (int) (XFLOAT_DATA (Y) * FRAME_LINE_HEIGHT (F))) 952 : (int) (XFLOAT_DATA (Y) * FRAME_LINE_HEIGHT (F)))
953 953
954/* Convert pixel-value X to canonical units. F is the frame whose 954/* Convert pixel-value X to canonical units. F is the frame whose
955 canonical character width is to be used. X is a C integer. Result 955 canonical character width is to be used. X is a C integer. Result
@@ -957,9 +957,9 @@ extern Lisp_Object selected_frame;
957 otherwise it's a Lisp integer. */ 957 otherwise it's a Lisp integer. */
958 958
959#define FRAME_CANON_X_FROM_PIXEL_X(F, X) \ 959#define FRAME_CANON_X_FROM_PIXEL_X(F, X) \
960 ((X) % FRAME_COLUMN_WIDTH (F) != 0 \ 960 ((X) % FRAME_COLUMN_WIDTH (F) != 0 \
961 ? make_float ((double) (X) / FRAME_COLUMN_WIDTH (F)) \ 961 ? make_float ((double) (X) / FRAME_COLUMN_WIDTH (F)) \
962 : make_number ((X) / FRAME_COLUMN_WIDTH (F))) 962 : make_number ((X) / FRAME_COLUMN_WIDTH (F)))
963 963
964/* Convert pixel-value Y to canonical units. F is the frame whose 964/* Convert pixel-value Y to canonical units. F is the frame whose
965 canonical character height is to be used. Y is a C integer. 965 canonical character height is to be used. Y is a C integer.
@@ -967,9 +967,9 @@ extern Lisp_Object selected_frame;
967 otherwise it's a Lisp integer. */ 967 otherwise it's a Lisp integer. */
968 968
969#define FRAME_CANON_Y_FROM_PIXEL_Y(F, Y) \ 969#define FRAME_CANON_Y_FROM_PIXEL_Y(F, Y) \
970 ((Y) % FRAME_LINE_HEIGHT (F) \ 970 ((Y) % FRAME_LINE_HEIGHT (F) \
971 ? make_float ((double) (Y) / FRAME_LINE_HEIGHT (F)) \ 971 ? make_float ((double) (Y) / FRAME_LINE_HEIGHT (F)) \
972 : make_number ((Y) / FRAME_LINE_HEIGHT (F))) 972 : make_number ((Y) / FRAME_LINE_HEIGHT (F)))
973 973
974 974
975 975