aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Gramiak2019-04-17 07:39:25 -0600
committerAlexander Gramiak2019-04-26 16:55:39 -0600
commit02397678b1169849a098c42f625b31da1f79c48e (patch)
treee0ee276076b5c21738af76913455e23a4a3b29b7 /src
parent46cfe5cb1fe9cca5e2fa9f993320c46b1b564609 (diff)
downloademacs-02397678b1169849a098c42f625b31da1f79c48e.tar.gz
emacs-02397678b1169849a098c42f625b31da1f79c48e.zip
Rename x_highlight_frame property to highlight_frame
* src/nsterm.h: * src/nsterm.m: * src/w32term.c: * src/w32term.h: * src/xdisp.c: * src/xterm.c: * src/xterm.h: Rename.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.h2
-rw-r--r--src/nsterm.m32
-rw-r--r--src/w32term.c28
-rw-r--r--src/w32term.h2
-rw-r--r--src/xdisp.c2
-rw-r--r--src/xterm.c32
-rw-r--r--src/xterm.h2
7 files changed, 50 insertions, 50 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index 41cdaccbc79..683f2dd9341 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -881,7 +881,7 @@ struct ns_display_info
881 mouse-face. */ 881 mouse-face. */
882 Mouse_HLInfo mouse_highlight; 882 Mouse_HLInfo mouse_highlight;
883 883
884 struct frame *x_highlight_frame; 884 struct frame *highlight_frame;
885 struct frame *ns_focus_frame; 885 struct frame *ns_focus_frame;
886 886
887 /* The frame where the mouse was last time we reported a mouse event. */ 887 /* The frame where the mouse was last time we reported a mouse event. */
diff --git a/src/nsterm.m b/src/nsterm.m
index cf1ff055304..cdf1916e71b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1540,36 +1540,36 @@ ns_frame_rehighlight (struct frame *frame)
1540 -------------------------------------------------------------------------- */ 1540 -------------------------------------------------------------------------- */
1541{ 1541{
1542 struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (frame); 1542 struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (frame);
1543 struct frame *old_highlight = dpyinfo->x_highlight_frame; 1543 struct frame *old_highlight = dpyinfo->highlight_frame;
1544 1544
1545 NSTRACE ("ns_frame_rehighlight"); 1545 NSTRACE ("ns_frame_rehighlight");
1546 if (dpyinfo->ns_focus_frame) 1546 if (dpyinfo->ns_focus_frame)
1547 { 1547 {
1548 dpyinfo->x_highlight_frame 1548 dpyinfo->highlight_frame
1549 = (FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->ns_focus_frame)) 1549 = (FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->ns_focus_frame))
1550 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->ns_focus_frame)) 1550 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->ns_focus_frame))
1551 : dpyinfo->ns_focus_frame); 1551 : dpyinfo->ns_focus_frame);
1552 if (!FRAME_LIVE_P (dpyinfo->x_highlight_frame)) 1552 if (!FRAME_LIVE_P (dpyinfo->highlight_frame))
1553 { 1553 {
1554 fset_focus_frame (dpyinfo->ns_focus_frame, Qnil); 1554 fset_focus_frame (dpyinfo->ns_focus_frame, Qnil);
1555 dpyinfo->x_highlight_frame = dpyinfo->ns_focus_frame; 1555 dpyinfo->highlight_frame = dpyinfo->ns_focus_frame;
1556 } 1556 }
1557 } 1557 }
1558 else 1558 else
1559 dpyinfo->x_highlight_frame = 0; 1559 dpyinfo->highlight_frame = 0;
1560 1560
1561 if (dpyinfo->x_highlight_frame && 1561 if (dpyinfo->highlight_frame &&
1562 dpyinfo->x_highlight_frame != old_highlight) 1562 dpyinfo->highlight_frame != old_highlight)
1563 { 1563 {
1564 if (old_highlight) 1564 if (old_highlight)
1565 { 1565 {
1566 gui_update_cursor (old_highlight, 1); 1566 gui_update_cursor (old_highlight, 1);
1567 ns_set_frame_alpha (old_highlight); 1567 ns_set_frame_alpha (old_highlight);
1568 } 1568 }
1569 if (dpyinfo->x_highlight_frame) 1569 if (dpyinfo->highlight_frame)
1570 { 1570 {
1571 gui_update_cursor (dpyinfo->x_highlight_frame, 1); 1571 gui_update_cursor (dpyinfo->highlight_frame, 1);
1572 ns_set_frame_alpha (dpyinfo->x_highlight_frame); 1572 ns_set_frame_alpha (dpyinfo->highlight_frame);
1573 } 1573 }
1574 } 1574 }
1575} 1575}
@@ -1667,8 +1667,8 @@ ns_iconify_frame (struct frame *f)
1667 view = FRAME_NS_VIEW (f); 1667 view = FRAME_NS_VIEW (f);
1668 dpyinfo = FRAME_DISPLAY_INFO (f); 1668 dpyinfo = FRAME_DISPLAY_INFO (f);
1669 1669
1670 if (dpyinfo->x_highlight_frame == f) 1670 if (dpyinfo->highlight_frame == f)
1671 dpyinfo->x_highlight_frame = 0; 1671 dpyinfo->highlight_frame = 0;
1672 1672
1673 if ([[view window] windowNumber] <= 0) 1673 if ([[view window] windowNumber] <= 0)
1674 { 1674 {
@@ -1714,8 +1714,8 @@ ns_free_frame_resources (struct frame *f)
1714 1714
1715 if (f == dpyinfo->ns_focus_frame) 1715 if (f == dpyinfo->ns_focus_frame)
1716 dpyinfo->ns_focus_frame = 0; 1716 dpyinfo->ns_focus_frame = 0;
1717 if (f == dpyinfo->x_highlight_frame) 1717 if (f == dpyinfo->highlight_frame)
1718 dpyinfo->x_highlight_frame = 0; 1718 dpyinfo->highlight_frame = 0;
1719 if (f == hlinfo->mouse_face_mouse_frame) 1719 if (f == hlinfo->mouse_face_mouse_frame)
1720 reset_mouse_highlight (hlinfo); 1720 reset_mouse_highlight (hlinfo);
1721 1721
@@ -2468,7 +2468,7 @@ ns_set_frame_alpha (struct frame *f)
2468 2468
2469 NSTRACE ("ns_set_frame_alpha"); 2469 NSTRACE ("ns_set_frame_alpha");
2470 2470
2471 if (dpyinfo->x_highlight_frame == f) 2471 if (dpyinfo->highlight_frame == f)
2472 alpha = f->alpha[0]; 2472 alpha = f->alpha[0];
2473 else 2473 else
2474 alpha = f->alpha[1]; 2474 alpha = f->alpha[1];
@@ -5142,7 +5142,7 @@ ns_initialize_display_info (struct ns_display_info *dpyinfo)
5142 dpyinfo->color_table = xmalloc (sizeof *dpyinfo->color_table); 5142 dpyinfo->color_table = xmalloc (sizeof *dpyinfo->color_table);
5143 dpyinfo->color_table->colors = NULL; 5143 dpyinfo->color_table->colors = NULL;
5144 dpyinfo->root_window = 42; /* A placeholder. */ 5144 dpyinfo->root_window = 42; /* A placeholder. */
5145 dpyinfo->x_highlight_frame = dpyinfo->ns_focus_frame = NULL; 5145 dpyinfo->highlight_frame = dpyinfo->ns_focus_frame = NULL;
5146 dpyinfo->n_fonts = 0; 5146 dpyinfo->n_fonts = 0;
5147 dpyinfo->smallest_font_height = 1; 5147 dpyinfo->smallest_font_height = 1;
5148 dpyinfo->smallest_char_width = 1; 5148 dpyinfo->smallest_char_width = 1;
diff --git a/src/w32term.c b/src/w32term.c
index 65c1baf20f6..3811585d0f6 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3036,29 +3036,29 @@ w32_frame_rehighlight (struct frame *frame)
3036static void 3036static void
3037w32_frame_rehighlight_1 (struct w32_display_info *dpyinfo) 3037w32_frame_rehighlight_1 (struct w32_display_info *dpyinfo)
3038{ 3038{
3039 struct frame *old_highlight = dpyinfo->x_highlight_frame; 3039 struct frame *old_highlight = dpyinfo->highlight_frame;
3040 3040
3041 if (dpyinfo->w32_focus_frame) 3041 if (dpyinfo->w32_focus_frame)
3042 { 3042 {
3043 dpyinfo->x_highlight_frame 3043 dpyinfo->highlight_frame
3044 = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->w32_focus_frame))) 3044 = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->w32_focus_frame)))
3045 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->w32_focus_frame)) 3045 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->w32_focus_frame))
3046 : dpyinfo->w32_focus_frame); 3046 : dpyinfo->w32_focus_frame);
3047 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) 3047 if (! FRAME_LIVE_P (dpyinfo->highlight_frame))
3048 { 3048 {
3049 fset_focus_frame (dpyinfo->w32_focus_frame, Qnil); 3049 fset_focus_frame (dpyinfo->w32_focus_frame, Qnil);
3050 dpyinfo->x_highlight_frame = dpyinfo->w32_focus_frame; 3050 dpyinfo->highlight_frame = dpyinfo->w32_focus_frame;
3051 } 3051 }
3052 } 3052 }
3053 else 3053 else
3054 dpyinfo->x_highlight_frame = 0; 3054 dpyinfo->highlight_frame = 0;
3055 3055
3056 if (dpyinfo->x_highlight_frame != old_highlight) 3056 if (dpyinfo->highlight_frame != old_highlight)
3057 { 3057 {
3058 if (old_highlight) 3058 if (old_highlight)
3059 w32_frame_unhighlight (old_highlight); 3059 w32_frame_unhighlight (old_highlight);
3060 if (dpyinfo->x_highlight_frame) 3060 if (dpyinfo->highlight_frame)
3061 w32_frame_highlight (dpyinfo->x_highlight_frame); 3061 w32_frame_highlight (dpyinfo->highlight_frame);
3062 } 3062 }
3063} 3063}
3064 3064
@@ -6822,8 +6822,8 @@ void
6822w32_make_frame_invisible (struct frame *f) 6822w32_make_frame_invisible (struct frame *f)
6823{ 6823{
6824 /* Don't keep the highlight on an invisible frame. */ 6824 /* Don't keep the highlight on an invisible frame. */
6825 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) 6825 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f)
6826 FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0; 6826 FRAME_DISPLAY_INFO (f)->highlight_frame = 0;
6827 6827
6828 block_input (); 6828 block_input ();
6829 6829
@@ -6855,8 +6855,8 @@ void
6855w32_iconify_frame (struct frame *f) 6855w32_iconify_frame (struct frame *f)
6856{ 6856{
6857 /* Don't keep the highlight on an invisible frame. */ 6857 /* Don't keep the highlight on an invisible frame. */
6858 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) 6858 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f)
6859 FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0; 6859 FRAME_DISPLAY_INFO (f)->highlight_frame = 0;
6860 6860
6861 if (FRAME_ICONIFIED_P (f)) 6861 if (FRAME_ICONIFIED_P (f))
6862 return; 6862 return;
@@ -6903,8 +6903,8 @@ w32_free_frame_resources (struct frame *f)
6903 dpyinfo->w32_focus_frame = 0; 6903 dpyinfo->w32_focus_frame = 0;
6904 if (f == dpyinfo->w32_focus_event_frame) 6904 if (f == dpyinfo->w32_focus_event_frame)
6905 dpyinfo->w32_focus_event_frame = 0; 6905 dpyinfo->w32_focus_event_frame = 0;
6906 if (f == dpyinfo->x_highlight_frame) 6906 if (f == dpyinfo->highlight_frame)
6907 dpyinfo->x_highlight_frame = 0; 6907 dpyinfo->highlight_frame = 0;
6908 if (f == hlinfo->mouse_face_mouse_frame) 6908 if (f == hlinfo->mouse_face_mouse_frame)
6909 reset_mouse_highlight (hlinfo); 6909 reset_mouse_highlight (hlinfo);
6910 6910
diff --git a/src/w32term.h b/src/w32term.h
index d5bb08dc675..de372d7e5d7 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -182,7 +182,7 @@ struct w32_display_info
182 event). It points to the focus frame's selected window's 182 event). It points to the focus frame's selected window's
183 frame. It differs from w32_focus_frame when we're using a global 183 frame. It differs from w32_focus_frame when we're using a global
184 minibuffer. */ 184 minibuffer. */
185 struct frame *x_highlight_frame; 185 struct frame *highlight_frame;
186 186
187 /* The frame waiting to be auto-raised in w32_read_socket. */ 187 /* The frame waiting to be auto-raised in w32_read_socket. */
188 struct frame *w32_pending_autoraise_frame; 188 struct frame *w32_pending_autoraise_frame;
diff --git a/src/xdisp.c b/src/xdisp.c
index 34e89c79046..9f0739e0c61 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -29306,7 +29306,7 @@ get_window_cursor_type (struct window *w, struct glyph *glyph, int *width,
29306 29306
29307 /* Detect a nonselected window or nonselected frame. */ 29307 /* Detect a nonselected window or nonselected frame. */
29308 else if (w != XWINDOW (f->selected_window) 29308 else if (w != XWINDOW (f->selected_window)
29309 || f != FRAME_DISPLAY_INFO (f)->x_highlight_frame) 29309 || f != FRAME_DISPLAY_INFO (f)->highlight_frame)
29310 { 29310 {
29311 *active_cursor = false; 29311 *active_cursor = false;
29312 29312
diff --git a/src/xterm.c b/src/xterm.c
index c710d1c918b..dd19b8bde15 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -917,7 +917,7 @@ x_set_frame_alpha (struct frame *f)
917 unsigned long opac; 917 unsigned long opac;
918 Window parent; 918 Window parent;
919 919
920 if (dpyinfo->x_highlight_frame == f) 920 if (dpyinfo->highlight_frame == f)
921 alpha = f->alpha[0]; 921 alpha = f->alpha[0];
922 else 922 else
923 alpha = f->alpha[1]; 923 alpha = f->alpha[1];
@@ -4718,29 +4718,29 @@ XTframe_rehighlight (struct frame *frame)
4718static void 4718static void
4719x_frame_rehighlight (struct x_display_info *dpyinfo) 4719x_frame_rehighlight (struct x_display_info *dpyinfo)
4720{ 4720{
4721 struct frame *old_highlight = dpyinfo->x_highlight_frame; 4721 struct frame *old_highlight = dpyinfo->highlight_frame;
4722 4722
4723 if (dpyinfo->x_focus_frame) 4723 if (dpyinfo->x_focus_frame)
4724 { 4724 {
4725 dpyinfo->x_highlight_frame 4725 dpyinfo->highlight_frame
4726 = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))) 4726 = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame)))
4727 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame)) 4727 ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))
4728 : dpyinfo->x_focus_frame); 4728 : dpyinfo->x_focus_frame);
4729 if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) 4729 if (! FRAME_LIVE_P (dpyinfo->highlight_frame))
4730 { 4730 {
4731 fset_focus_frame (dpyinfo->x_focus_frame, Qnil); 4731 fset_focus_frame (dpyinfo->x_focus_frame, Qnil);
4732 dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; 4732 dpyinfo->highlight_frame = dpyinfo->x_focus_frame;
4733 } 4733 }
4734 } 4734 }
4735 else 4735 else
4736 dpyinfo->x_highlight_frame = 0; 4736 dpyinfo->highlight_frame = 0;
4737 4737
4738 if (dpyinfo->x_highlight_frame != old_highlight) 4738 if (dpyinfo->highlight_frame != old_highlight)
4739 { 4739 {
4740 if (old_highlight) 4740 if (old_highlight)
4741 x_frame_unhighlight (old_highlight); 4741 x_frame_unhighlight (old_highlight);
4742 if (dpyinfo->x_highlight_frame) 4742 if (dpyinfo->highlight_frame)
4743 x_frame_highlight (dpyinfo->x_highlight_frame); 4743 x_frame_highlight (dpyinfo->highlight_frame);
4744 } 4744 }
4745} 4745}
4746 4746
@@ -8907,7 +8907,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8907 into a parent frame with the child frame selected and 8907 into a parent frame with the child frame selected and
8908 `no-accept-focus' is not set, select the clicked 8908 `no-accept-focus' is not set, select the clicked
8909 frame. */ 8909 frame. */
8910 struct frame *hf = dpyinfo->x_highlight_frame; 8910 struct frame *hf = dpyinfo->highlight_frame;
8911 8911
8912 if (FRAME_PARENT_FRAME (f) || (hf && frame_ancestor_p (f, hf))) 8912 if (FRAME_PARENT_FRAME (f) || (hf && frame_ancestor_p (f, hf)))
8913 { 8913 {
@@ -11674,8 +11674,8 @@ x_make_frame_invisible (struct frame *f)
11674 window = FRAME_OUTER_WINDOW (f); 11674 window = FRAME_OUTER_WINDOW (f);
11675 11675
11676 /* Don't keep the highlight on an invisible frame. */ 11676 /* Don't keep the highlight on an invisible frame. */
11677 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) 11677 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f)
11678 FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0; 11678 FRAME_DISPLAY_INFO (f)->highlight_frame = 0;
11679 11679
11680 block_input (); 11680 block_input ();
11681 11681
@@ -11735,8 +11735,8 @@ x_iconify_frame (struct frame *f)
11735#endif 11735#endif
11736 11736
11737 /* Don't keep the highlight on an invisible frame. */ 11737 /* Don't keep the highlight on an invisible frame. */
11738 if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) 11738 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f)
11739 FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0; 11739 FRAME_DISPLAY_INFO (f)->highlight_frame = 0;
11740 11740
11741 if (FRAME_ICONIFIED_P (f)) 11741 if (FRAME_ICONIFIED_P (f))
11742 return; 11742 return;
@@ -11999,8 +11999,8 @@ x_free_frame_resources (struct frame *f)
11999 dpyinfo->x_focus_frame = 0; 11999 dpyinfo->x_focus_frame = 0;
12000 if (f == dpyinfo->x_focus_event_frame) 12000 if (f == dpyinfo->x_focus_event_frame)
12001 dpyinfo->x_focus_event_frame = 0; 12001 dpyinfo->x_focus_event_frame = 0;
12002 if (f == dpyinfo->x_highlight_frame) 12002 if (f == dpyinfo->highlight_frame)
12003 dpyinfo->x_highlight_frame = 0; 12003 dpyinfo->highlight_frame = 0;
12004 if (f == hlinfo->mouse_face_mouse_frame) 12004 if (f == hlinfo->mouse_face_mouse_frame)
12005 reset_mouse_highlight (hlinfo); 12005 reset_mouse_highlight (hlinfo);
12006 12006
diff --git a/src/xterm.h b/src/xterm.h
index f4007d6e7f3..266a42afa08 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -350,7 +350,7 @@ struct x_display_info
350 event). It points to the X focus frame's selected window's 350 event). It points to the X focus frame's selected window's
351 frame. It differs from x_focus_frame when we're using a global 351 frame. It differs from x_focus_frame when we're using a global
352 minibuffer. */ 352 minibuffer. */
353 struct frame *x_highlight_frame; 353 struct frame *highlight_frame;
354 354
355 /* The frame waiting to be auto-raised in XTread_socket. */ 355 /* The frame waiting to be auto-raised in XTread_socket. */
356 struct frame *x_pending_autoraise_frame; 356 struct frame *x_pending_autoraise_frame;