diff options
| author | Richard M. Stallman | 1994-01-04 01:22:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-04 01:22:38 +0000 |
| commit | 59d61058775d74c6f4596915d82baee8b92f33af (patch) | |
| tree | a3e07597c81a0f09287a38c00e561563cf111a5b /src | |
| parent | b2396d1f39fc4fa43a21893d050b7013e619d91e (diff) | |
| download | emacs-59d61058775d74c6f4596915d82baee8b92f33af.tar.gz emacs-59d61058775d74c6f4596915d82baee8b92f33af.zip | |
(Fx_list_fonts): Don't fail to init `tail'.
(Fx_create_frame): Add to Vframe_list before making visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 2de9158466f..d42d79dd317 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1892,6 +1892,12 @@ be shared by the new frame.") | |||
| 1892 | tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); | 1892 | tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); |
| 1893 | f->no_split = minibuffer_only || EQ (tem, Qt); | 1893 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 1894 | 1894 | ||
| 1895 | /* It is now ok to make the frame official | ||
| 1896 | even if we get an error below. | ||
| 1897 | And the frame needs to be on Vframe_list | ||
| 1898 | or making it visible won't work. */ | ||
| 1899 | Vframe_list = Fcons (frame, Vframe_list); | ||
| 1900 | |||
| 1895 | /* Make the window appear on the frame and enable display, | 1901 | /* Make the window appear on the frame and enable display, |
| 1896 | unless the caller says not to. */ | 1902 | unless the caller says not to. */ |
| 1897 | { | 1903 | { |
| @@ -1909,7 +1915,6 @@ be shared by the new frame.") | |||
| 1909 | ; | 1915 | ; |
| 1910 | } | 1916 | } |
| 1911 | 1917 | ||
| 1912 | Vframe_list = Fcons (frame, Vframe_list); | ||
| 1913 | return frame; | 1918 | return frame; |
| 1914 | #else /* X10 */ | 1919 | #else /* X10 */ |
| 1915 | struct frame *f; | 1920 | struct frame *f; |
| @@ -2336,6 +2341,7 @@ fonts), even if they match PATTERN and FACE.") | |||
| 2336 | Lisp_Object *tail; | 2341 | Lisp_Object *tail; |
| 2337 | int i; | 2342 | int i; |
| 2338 | 2343 | ||
| 2344 | tail = &list; | ||
| 2339 | for (i = 0; i < num_fonts; i++) | 2345 | for (i = 0; i < num_fonts; i++) |
| 2340 | { | 2346 | { |
| 2341 | #ifdef BROKEN_XLISTFONTSWITHINFO | 2347 | #ifdef BROKEN_XLISTFONTSWITHINFO |