diff options
| author | Kenichi Handa | 2002-08-19 06:11:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-08-19 06:11:15 +0000 |
| commit | ed9c5d97f48cacedd9caf0a7cf7913c4c2ec209f (patch) | |
| tree | 0dcf3feaa6935ca559e37989970ba5fd50aeee8e /src | |
| parent | 27acb5b67d5633c35f306e0a8d6167ae50197b03 (diff) | |
| download | emacs-ed9c5d97f48cacedd9caf0a7cf7913c4c2ec209f.tar.gz emacs-ed9c5d97f48cacedd9caf0a7cf7913c4c2ec209f.zip | |
(main): In the case of --unibyte, instead of aborting on finding
non-empty buffer, make it unibyte.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index e4b1349863d..cc9942893d9 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12289,10 +12289,14 @@ x_new_fontset (f, fontsetname) | |||
| 12289 | 12289 | ||
| 12290 | if (fontset < 0) | 12290 | if (fontset < 0) |
| 12291 | { | 12291 | { |
| 12292 | Lisp_Object fontlist; | 12292 | Lisp_Object func; |
| 12293 | 12293 | ||
| 12294 | fontlist = Fcons (Fcons (Qascii, Fcons (result, Qnil)), Qnil); | 12294 | func = intern ("create-fontset-from-ascii-font"); |
| 12295 | Fnew_fontset (result, fontlist); | 12295 | if (! NILP (Ffboundp (func))) |
| 12296 | result = call2 (func, result, result); | ||
| 12297 | else | ||
| 12298 | Fnew_fontset (result, | ||
| 12299 | Fcons (Fcons (Qascii, Fcons (result, Qnil)), Qnil)); | ||
| 12296 | fontset = fs_query_fontset (result, 0); | 12300 | fontset = fs_query_fontset (result, 0); |
| 12297 | } | 12301 | } |
| 12298 | 12302 | ||