diff options
| author | Paul Eggert | 2019-04-15 20:23:24 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-04-15 20:24:18 -0700 |
| commit | a6b4c3bbeb6383c554e03a65fbdb7ee5994abdf7 (patch) | |
| tree | 8c21272268184ae0f77e588c08dbea48a27bde6e /src | |
| parent | 7a382383ac7912541bcceea16676ade20cc6b9ba (diff) | |
| download | emacs-a6b4c3bbeb6383c554e03a65fbdb7ee5994abdf7.tar.gz emacs-a6b4c3bbeb6383c554e03a65fbdb7ee5994abdf7.zip | |
Remove Vparam_value_alist
* src/xfaces.c (Vparam_value_alist):
Remove. All uses removed.
(Finternal_set_lisp_face_attribute):
Simplify by using AUTO_FRAME_ARG.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index c6723ebe2c3..13c979db63b 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -321,11 +321,6 @@ bool face_change; | |||
| 321 | 321 | ||
| 322 | static bool tty_suppress_bold_inverse_default_colors_p; | 322 | static bool tty_suppress_bold_inverse_default_colors_p; |
| 323 | 323 | ||
| 324 | /* A list of the form `((x . y))' used to avoid consing in | ||
| 325 | Finternal_set_lisp_face_attribute. */ | ||
| 326 | |||
| 327 | static Lisp_Object Vparam_value_alist; | ||
| 328 | |||
| 329 | /* The total number of colors currently allocated. */ | 324 | /* The total number of colors currently allocated. */ |
| 330 | 325 | ||
| 331 | #ifdef GLYPH_DEBUG | 326 | #ifdef GLYPH_DEBUG |
| @@ -3348,11 +3343,8 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3348 | else | 3343 | else |
| 3349 | /* Update the current frame's parameters. */ | 3344 | /* Update the current frame's parameters. */ |
| 3350 | { | 3345 | { |
| 3351 | Lisp_Object cons; | 3346 | AUTO_FRAME_ARG (arg, param, value); |
| 3352 | cons = XCAR (Vparam_value_alist); | 3347 | Fmodify_frame_parameters (frame, arg); |
| 3353 | XSETCAR (cons, param); | ||
| 3354 | XSETCDR (cons, value); | ||
| 3355 | Fmodify_frame_parameters (frame, Vparam_value_alist); | ||
| 3356 | } | 3348 | } |
| 3357 | } | 3349 | } |
| 3358 | } | 3350 | } |
| @@ -6633,8 +6625,6 @@ syms_of_xfaces (void) | |||
| 6633 | /* The name of the function used to compute colors on TTYs. */ | 6625 | /* The name of the function used to compute colors on TTYs. */ |
| 6634 | DEFSYM (Qtty_color_alist, "tty-color-alist"); | 6626 | DEFSYM (Qtty_color_alist, "tty-color-alist"); |
| 6635 | 6627 | ||
| 6636 | Vparam_value_alist = list1 (Fcons (Qnil, Qnil)); | ||
| 6637 | staticpro (&Vparam_value_alist); | ||
| 6638 | Vface_alternative_font_family_alist = Qnil; | 6628 | Vface_alternative_font_family_alist = Qnil; |
| 6639 | staticpro (&Vface_alternative_font_family_alist); | 6629 | staticpro (&Vface_alternative_font_family_alist); |
| 6640 | Vface_alternative_font_registry_alist = Qnil; | 6630 | Vface_alternative_font_registry_alist = Qnil; |