Mercurial > emacs
view leim/quail/pypunct-b5.el @ 83127:5182815e0ee1
Make terminal_coding and keyboard_coding display-local.
src/coding.c: Include frame.h and termhooks.h.
(terminal_coding, keyboard_coding): Remove.
(Fset_terminal_coding_system_internal, Fterminal_coding_system):
Use the selected frame's terminal coding system.
(Fset_safe_terminal_coding_system_internal): Fix typo.
(Fset_keyboard_coding_system_internal, Fkeyboard_coding_system):
Use the selected frame's keyboard coding system.
(init_coding_once): Don't initialize keyboard_coding and terminal_coding.
src/coding.h (terminal_coding, keyboard_coding): Remove.
src/termhooks.h (terminal_coding, keyboard_coding): New members of
struct display.
(FRAME_TERMINAL_CODING, FRAME_KEYBOARD_CODING): New macros.
src/termchar.h (kboard): Cosmetic change.
src/term.c (encode_terminal_code): Add coding parameter.
(tty_write_glyphs): Use the display-local terminal coding system.
(create_display): Allocate and initialize coding systems.
(delete_display): Free coding systems.
src/xdisp.c (decode_mode_spec): Use display-local coding systems.
src/Makefile.in: Fix dependencies for termchar.h and termhooks.h.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-167
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 23 May 2004 01:53:23 +0000 |
parents | 695cf19ef79e |
children | 23a17af379b1 375f2633d815 |
line wrap: on
line source
;;; pypunct-b5.el --- Quail packages for Chinese (pinyin + extra symbols) ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. ;; Licensed to the Free Software Foundation. ;; Author: Ken'ichi HANDA <handa@etl.go.jp> ;; Keywords: multilingual, input method, Chienese ;; This file is part of GNU Emacs. ;; GNU Emacs is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Commentary: ;;; Code: (require 'quail) (load "quail/PY-b5") (load "quail/Punct-b5") (quail-define-package "chinese-py-punct-b5" "Chinese-BIG5" "$(03<>K(B" t "$(0&d'GTT&,!J3<5x!K(B and `v' for $(0O:X5>KHATT&,(B This is the combination of the input method `chinese-py-b5' and `chinese-punct-b5'. You can enter normal Chinese characters by the same way as `chinese-py-b5'. And, you can enter symbols by typing `v' followed by any key sequences defined in `chinese-punct-b5'. For instance, typing `v' and `%' insert `$(0"h(B'. ") (setcar (nthcdr 2 quail-current-package) (nth 2 (assoc "chinese-py-b5" quail-package-alist))) (quail-defrule "v" (nth 2 (assoc "chinese-punct-b5" quail-package-alist))) ;;; arch-tag: fe8176d3-b467-47d5-9ed9-75b6e27cf29b ;;; pypunct-b5.el ends here