diff options
| author | Ken Raeburn | 2001-10-16 09:09:51 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2001-10-16 09:09:51 +0000 |
| commit | f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f (patch) | |
| tree | 43eb51ff0ca4af1705387403827ef210098f2da8 /src/xterm.c | |
| parent | 018ba359ab456f6a43f3acea0c15df616aa0ad02 (diff) | |
| download | emacs-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/xterm.c')
| -rw-r--r-- | src/xterm.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/xterm.c b/src/xterm.c index 1fe78ad6407..492966253de 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -13714,8 +13714,8 @@ x_list_fonts (f, pattern, size, maxnames) | |||
| 13714 | } | 13714 | } |
| 13715 | 13715 | ||
| 13716 | /* Now store the result in the cache. */ | 13716 | /* Now store the result in the cache. */ |
| 13717 | XCDR (dpyinfo->name_list_element) | 13717 | XSETCDR (dpyinfo->name_list_element, |
| 13718 | = Fcons (Fcons (key, list), XCDR (dpyinfo->name_list_element)); | 13718 | Fcons (Fcons (key, list), XCDR (dpyinfo->name_list_element))); |
| 13719 | 13719 | ||
| 13720 | label_cached: | 13720 | label_cached: |
| 13721 | if (NILP (list)) continue; /* Try the remaining alternatives. */ | 13721 | if (NILP (list)) continue; /* Try the remaining alternatives. */ |
| @@ -13758,10 +13758,10 @@ x_list_fonts (f, pattern, size, maxnames) | |||
| 13758 | 13758 | ||
| 13759 | if (thisinfo) | 13759 | if (thisinfo) |
| 13760 | { | 13760 | { |
| 13761 | XCDR (tem) | 13761 | XSETCDR (tem, |
| 13762 | = (thisinfo->min_bounds.width == 0 | 13762 | (thisinfo->min_bounds.width == 0 |
| 13763 | ? make_number (0) | 13763 | ? make_number (0) |
| 13764 | : make_number (thisinfo->max_bounds.width)); | 13764 | : make_number (thisinfo->max_bounds.width))); |
| 13765 | BLOCK_INPUT; | 13765 | BLOCK_INPUT; |
| 13766 | XFreeFont (dpy, thisinfo); | 13766 | XFreeFont (dpy, thisinfo); |
| 13767 | UNBLOCK_INPUT; | 13767 | UNBLOCK_INPUT; |
| @@ -13770,7 +13770,7 @@ x_list_fonts (f, pattern, size, maxnames) | |||
| 13770 | /* For unknown reason, the previous call of XListFont had | 13770 | /* For unknown reason, the previous call of XListFont had |
| 13771 | returned a font which can't be opened. Record the size | 13771 | returned a font which can't be opened. Record the size |
| 13772 | as 0 not to try to open it again. */ | 13772 | as 0 not to try to open it again. */ |
| 13773 | XCDR (tem) = make_number (0); | 13773 | XSETCDR (tem, make_number (0)); |
| 13774 | } | 13774 | } |
| 13775 | 13775 | ||
| 13776 | found_size = XINT (XCDR (tem)); | 13776 | found_size = XINT (XCDR (tem)); |
| @@ -14036,22 +14036,22 @@ x_load_font (f, fontname, size) | |||
| 14036 | Lisp_Object key = Fcons (Fcons (lispy_name, make_number (256)), | 14036 | Lisp_Object key = Fcons (Fcons (lispy_name, make_number (256)), |
| 14037 | Qnil); | 14037 | Qnil); |
| 14038 | 14038 | ||
| 14039 | XCDR (dpyinfo->name_list_element) | 14039 | XSETCDR (dpyinfo->name_list_element, |
| 14040 | = Fcons (Fcons (key, | 14040 | Fcons (Fcons (key, |
| 14041 | Fcons (Fcons (lispy_full_name, | 14041 | Fcons (Fcons (lispy_full_name, |
| 14042 | make_number (fontp->size)), | 14042 | make_number (fontp->size)), |
| 14043 | Qnil)), | 14043 | Qnil)), |
| 14044 | XCDR (dpyinfo->name_list_element)); | 14044 | XCDR (dpyinfo->name_list_element))); |
| 14045 | if (full_name) | 14045 | if (full_name) |
| 14046 | { | 14046 | { |
| 14047 | key = Fcons (Fcons (lispy_full_name, make_number (256)), | 14047 | key = Fcons (Fcons (lispy_full_name, make_number (256)), |
| 14048 | Qnil); | 14048 | Qnil); |
| 14049 | XCDR (dpyinfo->name_list_element) | 14049 | XSETCDR (dpyinfo->name_list_element, |
| 14050 | = Fcons (Fcons (key, | 14050 | Fcons (Fcons (key, |
| 14051 | Fcons (Fcons (lispy_full_name, | 14051 | Fcons (Fcons (lispy_full_name, |
| 14052 | make_number (fontp->size)), | 14052 | make_number (fontp->size)), |
| 14053 | Qnil)), | 14053 | Qnil)), |
| 14054 | XCDR (dpyinfo->name_list_element)); | 14054 | XCDR (dpyinfo->name_list_element))); |
| 14055 | } | 14055 | } |
| 14056 | } | 14056 | } |
| 14057 | 14057 | ||
| @@ -14622,7 +14622,7 @@ x_delete_display (dpyinfo) | |||
| 14622 | { | 14622 | { |
| 14623 | if (EQ (XCAR (XCDR (tail)), dpyinfo->name_list_element)) | 14623 | if (EQ (XCAR (XCDR (tail)), dpyinfo->name_list_element)) |
| 14624 | { | 14624 | { |
| 14625 | XCDR (tail) = XCDR (XCDR (tail)); | 14625 | XSETCDR (tail, XCDR (XCDR (tail))); |
| 14626 | break; | 14626 | break; |
| 14627 | } | 14627 | } |
| 14628 | tail = XCDR (tail); | 14628 | tail = XCDR (tail); |