aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorKen Raeburn2001-10-16 09:09:51 +0000
committerKen Raeburn2001-10-16 09:09:51 +0000
commitf3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f (patch)
tree43eb51ff0ca4af1705387403827ef210098f2da8 /src/w32fns.c
parent018ba359ab456f6a43f3acea0c15df616aa0ad02 (diff)
downloademacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.tar.gz
emacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.zip
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index f1884e0f4e5..18e40ed09ed 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3784,7 +3784,7 @@ w32_msg_pump (deferred_msg * msg_buf)
3784 thread-safe. The next line is okay because the cons 3784 thread-safe. The next line is okay because the cons
3785 cell is never made into garbage and is not relocated by 3785 cell is never made into garbage and is not relocated by
3786 GC. */ 3786 GC. */
3787 XCAR ((Lisp_Object) msg.lParam) = Qnil; 3787 XSETCAR ((Lisp_Object) msg.lParam, Qnil);
3788 if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0)) 3788 if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0))
3789 abort (); 3789 abort ();
3790 break; 3790 break;
@@ -6866,9 +6866,9 @@ w32_list_fonts (f, pattern, size, maxnames)
6866 6866
6867 /* Make a list of the fonts we got back. 6867 /* Make a list of the fonts we got back.
6868 Store that in the font cache for the display. */ 6868 Store that in the font cache for the display. */
6869 XCDR (dpyinfo->name_list_element) 6869 XSETCDR (dpyinfo->name_list_element,
6870 = Fcons (Fcons (tpat, list), 6870 Fcons (Fcons (tpat, list),
6871 XCDR (dpyinfo->name_list_element)); 6871 XCDR (dpyinfo->name_list_element)));
6872 6872
6873 label_cached: 6873 label_cached:
6874 if (NILP (list)) continue; /* Try the remaining alternatives. */ 6874 if (NILP (list)) continue; /* Try the remaining alternatives. */
@@ -6915,9 +6915,9 @@ w32_list_fonts (f, pattern, size, maxnames)
6915 hdc = GetDC (dpyinfo->root_window); 6915 hdc = GetDC (dpyinfo->root_window);
6916 oldobj = SelectObject (hdc, thisinfo.hfont); 6916 oldobj = SelectObject (hdc, thisinfo.hfont);
6917 if (GetTextMetrics (hdc, &thisinfo.tm)) 6917 if (GetTextMetrics (hdc, &thisinfo.tm))
6918 XCDR (tem) = make_number (FONT_WIDTH (&thisinfo)); 6918 XSETCDR (tem, make_number (FONT_WIDTH (&thisinfo)));
6919 else 6919 else
6920 XCDR (tem) = make_number (0); 6920 XSETCDR (tem, make_number (0));
6921 SelectObject (hdc, oldobj); 6921 SelectObject (hdc, oldobj);
6922 ReleaseDC (dpyinfo->root_window, hdc); 6922 ReleaseDC (dpyinfo->root_window, hdc);
6923 DeleteObject(thisinfo.hfont); 6923 DeleteObject(thisinfo.hfont);
@@ -13240,7 +13240,7 @@ The return value is the hotkey-id if registered, otherwise nil.")
13240 if (NILP (item)) 13240 if (NILP (item))
13241 w32_grabbed_keys = Fcons (key, w32_grabbed_keys); 13241 w32_grabbed_keys = Fcons (key, w32_grabbed_keys);
13242 else 13242 else
13243 XCAR (item) = key; 13243 XSETCAR (item, key);
13244 13244
13245 /* Notify input thread about new hot-key definition, so that it 13245 /* Notify input thread about new hot-key definition, so that it
13246 takes effect without needing to switch focus. */ 13246 takes effect without needing to switch focus. */