diff options
| author | Richard M. Stallman | 1997-09-11 01:27:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-11 01:27:57 +0000 |
| commit | 4e825084791164ac1dcd51b9fe82ee13292fa4d3 (patch) | |
| tree | 0500ecaf0659dd7d5bf9cbdbdf12931a2a1220c9 /src | |
| parent | 73f5295803c77b0b4766603061aff401edbfabb3 (diff) | |
| download | emacs-4e825084791164ac1dcd51b9fe82ee13292fa4d3.tar.gz emacs-4e825084791164ac1dcd51b9fe82ee13292fa4d3.zip | |
(syms_of_msdos): Intern background-color and
foreground-color, and staticpro them.
(IT_set_frame_parameters): Use Qforeground_color and
Qbackground_color.
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c index c3abf07ada2..ae9e7edfde8 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -988,7 +988,7 @@ IT_set_frame_parameters (f, alist) | |||
| 988 | Lisp_Object prop = parms[i]; | 988 | Lisp_Object prop = parms[i]; |
| 989 | Lisp_Object val = values[i]; | 989 | Lisp_Object val = values[i]; |
| 990 | 990 | ||
| 991 | if (EQ (prop, intern ("foreground-color"))) | 991 | if (EQ (prop, Qforeground_color)) |
| 992 | { | 992 | { |
| 993 | unsigned long new_color = load_color (f, val); | 993 | unsigned long new_color = load_color (f, val); |
| 994 | if (new_color != ~0) | 994 | if (new_color != ~0) |
| @@ -999,7 +999,7 @@ IT_set_frame_parameters (f, alist) | |||
| 999 | fprintf (termscript, "<FGCOLOR %lu>\n", new_color); | 999 | fprintf (termscript, "<FGCOLOR %lu>\n", new_color); |
| 1000 | } | 1000 | } |
| 1001 | } | 1001 | } |
| 1002 | else if (EQ (prop, intern ("background-color"))) | 1002 | else if (EQ (prop, Qbackground_color)) |
| 1003 | { | 1003 | { |
| 1004 | unsigned long new_color = load_color (f, val); | 1004 | unsigned long new_color = load_color (f, val); |
| 1005 | if (new_color != ~0) | 1005 | if (new_color != ~0) |
| @@ -3500,6 +3500,12 @@ syms_of_msdos () | |||
| 3500 | DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, | 3500 | DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, |
| 3501 | "List of directories to search for bitmap files for X."); | 3501 | "List of directories to search for bitmap files for X."); |
| 3502 | Vx_bitmap_file_path = decode_env_path ((char *) 0, "."); | 3502 | Vx_bitmap_file_path = decode_env_path ((char *) 0, "."); |
| 3503 | |||
| 3504 | /* The following two are from xfns.c: */ | ||
| 3505 | Qbackground_color = intern ("background-color"); | ||
| 3506 | staticpro (&Qbackground_color); | ||
| 3507 | Qforeground_color = intern ("foreground-color"); | ||
| 3508 | staticpro (&Qforeground_color); | ||
| 3503 | #endif | 3509 | #endif |
| 3504 | #ifndef subprocesses | 3510 | #ifndef subprocesses |
| 3505 | DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, | 3511 | DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, |