Mercurial > emacs
comparison src/xfns.c @ 83298:ed09a89e2b25
Fix UTF-8 tty input when first frame is an X frame. Steps towards multiple tty locale support.
* lisp/international/mule-cmds.el (set-locale-environment): Ignore
window-system; always set the keyboard coding system.
* src/termhooks.h (DISPLAY_TERMINAL_CODING, DISPLAY_KEYBOARD_CODING): New macros.
* src/coding.c (Fset_terminal_coding_system_internal, Fterminal_coding_system)
(Fset_keyboard_coding_system_internal, Fkeyboard_coding_system): Add DISPLAY
parameter.
* src/term.c (get_display): Add THROW parameter.
(get_tty_display, Fdisplay_name, Fdisplay_tty_type, Fdisplay_controlling_tty_p)
(Fdelete_display, Fdisplay_live_p): Update callers.
* src/xfns.c (check_x_display_info): Ditto.
* src/frame.c (Fmake_terminal_frame, Fframe_display): Ditto.
* src/dispextern.h (get_display): Update prototype.
* lisp/international/mule.el (set-terminal-coding-system)
(set-keyboard-coding-system): Add DISPLAY parameter.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-338
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Tue, 03 May 2005 01:49:33 +0000 |
parents | b00208784797 |
children | 5ae8a8b0a308 |
comparison
equal
deleted
inserted
replaced
83297:8e357d90cc9f | 83298:ed09a89e2b25 |
---|---|
261 else | 261 else |
262 error ("X windows are not in use or not initialized"); | 262 error ("X windows are not in use or not initialized"); |
263 } | 263 } |
264 else if (INTEGERP (frame)) | 264 else if (INTEGERP (frame)) |
265 { | 265 { |
266 struct display *d = get_display (XINT (frame)); | 266 struct display *d = get_display (XINT (frame), 1); |
267 | 267 |
268 if (!d) | |
269 wrong_type_argument (Qdisplay_live_p, frame); | |
270 if (d->type != output_x_window) | 268 if (d->type != output_x_window) |
271 error ("Display %d is not an X display", XINT (frame)); | 269 error ("Display %d is not an X display", XINT (frame)); |
272 | 270 |
273 dpyinfo = d->display_info.x; | 271 dpyinfo = d->display_info.x; |
274 } | 272 } |