Mercurial > emacs
annotate leim/quail/cyril-jis.el @ 111413:d53ee71e7e89
Unify mouse-highlight code for all GUI and TTY sessions.
term.c: Remove static mouse_face_* variables. All users
changed.
(term_show_mouse_face, term_clear_mouse_face)
(fast_find_position, term_mouse_highlight): Functions deleted.
(tty_draw_row_with_mouse_face): New function.
(term_mouse_movement): Call note_mouse_highlight instead of
term_mouse_highlight.
nsterm.m (ns_update_window_begin, ns_update_window_end)
(ns_update_end, x_destroy_window, ns_frame_up_to_date)
(ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
(ns_dumpglyphs_image, ns_dumpglyphs_stretch)
(ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
Replace Display_Info with Mouse_HLInfo everywhere where
mouse_face_* members were accessed for mouse highlight purposes.
xterm.c (x_update_window_begin, x_update_window_end)
(x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
(handle_one_xevent, x_free_frame_resources, x_term_init): Replace
Display_Info with Mouse_HLInfo everywhere where mouse_face_*
members were accessed for mouse highlight purposes.
w32term.c (x_update_window_begin, x_update_window_end)
(x_update_end, w32_read_socket, x_free_frame_resources)
(w32_initialize_display_info): Replace Display_Info with
Mouse_HLInfo everywhere where mouse_face_* members were accessed
for mouse highlight purposes.
xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
(note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
unless the frame is on a window-system.
(get_tool_bar_item, handle_tool_bar_click)
(note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
(show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
(note_mode_line_or_margin_highlight, note_mouse_highlight)
(x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
Replace Display_Info with Mouse_HLInfo everywhere where
mouse_face_* members were accessed for mouse highlight purposes.
(coords_in_mouse_face_p): Move prototype out of the
HAVE_WINDOW_SYSTEM conditional.
(x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
HAVE_WINDOW_SYSTEM block.
(try_window_id) [HAVE_GPM || MSDOS]: Call
x_clear_window_mouse_face.
(draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
systems. Call tty_draw_row_with_mouse_face for TTY systems.
(show_mouse_face): Call draw_row_with_mouse_face, instead of
calling draw_glyphs directly.
(show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
(cursor_in_mouse_face_p, rows_from_pos_range)
(mouse_face_from_buffer_pos, mouse_face_from_string_pos)
(note_mode_line_or_margin_highlight, note_mouse_highlight)
(x_clear_window_mouse_face, cancel_mouse_face): Move out of the
HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
fragments.
(note_mouse_highlight): Call popup_activated for MSDOS as well.
Clear mouse highlight if pointer is over glyphs whose OBJECT is an
integer.
(mouse_face_from_buffer_pos): Add parentheses around && within ||.
(x_consider_frame_title, tool_bar_lines_needed): Move
prototypes to HAVE_WINDOW_SYSTEM-only part.
(get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
(null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
part.
dispnew.c (mirror_make_current): Set Y coordinate of the
mode-line and header-line rows.
(init_display): Setup initial frame's output_data for text
terminal frames.
xmenu.c (popup_activated): Don't define on MSDOS, which now has
its own definition on msdos.c.
msdos.c (show_mouse_face, clear_mouse_face)
(fast_find_position, IT_note_mode_line_highlight)
(IT_note_mouse_highlight): Functions deleted.
(IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
instead of IT_note_mouse_highlight.
(draw_row_with_mouse_face, popup_activated): New functions.
(dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
(IT_update_end, IT_frame_up_to_date, internal_terminal_init)
(dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
where mouse_face_* members were accessed for mouse highlight
purposes.
msdos.h (initialize_msdos_display): Add prototype.
frame.h (MOUSE_HL_INFO): New macro.
lisp.h (Mouse_HLInfo): New data type.
xterm.h (struct x_display_info):
w32term.h (struct w32_display_info):
nsterm.h (struct ns_display_info):
termchar.h (struct tty_display_info): Use it instead of
mouse_face_* members.
dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1st argument.
(frame_to_window_pixel_xy, note_mouse_highlight)
(x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
(show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
HAVE_WINDOW_SYSTEM conditional.
(draw_row_with_mouse_face): Declare prototype.
(tty_draw_row_with_mouse_face): Declare prototype.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 10:28:31 +0200 |
parents | 1d1d5d9bd884 |
children | 376148b31b5e |
rev | line source |
---|---|
38453
519983161a46
Some fixes to follow lisp coding conventions and typo fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
19722
diff
changeset
|
1 ;;; cyril-jis.el --- Quail package for inputting JISX0208 Cyrillic letters |
19152 | 2 |
106815 | 3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
75253
f5f322eb227f
Update copyright for years from Emacs 21 to present.
Glenn Morris <rgm@gnu.org>
parents:
74605
diff
changeset
|
4 ;; Free Software Foundation, Inc. |
f5f322eb227f
Update copyright for years from Emacs 21 to present.
Glenn Morris <rgm@gnu.org>
parents:
74605
diff
changeset
|
5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
106815 | 6 ;; 2006, 2007, 2008, 2009, 2010 |
67657 | 7 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
8 ;; Registration Number H14PRO021 | |
19152 | 9 |
10 ;; Keywords: multilingual, input method, Cyrillic | |
11 | |
12 ;; This file is part of GNU Emacs. | |
13 | |
94710
4f1fd208c354
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79727
diff
changeset
|
14 ;; GNU Emacs is free software: you can redistribute it and/or modify |
19152 | 15 ;; it under the terms of the GNU General Public License as published by |
94710
4f1fd208c354
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79727
diff
changeset
|
16 ;; the Free Software Foundation, either version 3 of the License, or |
4f1fd208c354
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79727
diff
changeset
|
17 ;; (at your option) any later version. |
19152 | 18 |
19 ;; GNU Emacs is distributed in the hope that it will be useful, | |
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 ;; GNU General Public License for more details. | |
23 | |
24 ;; You should have received a copy of the GNU General Public License | |
94710
4f1fd208c354
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79727
diff
changeset
|
25 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
19152 | 26 |
27 ;;; Commentary: | |
28 | |
29 ;; This Quail package is for inputting Cyrillic letters of Japanese | |
30 ;; character set JISX0208, not for inputting Cyrillic letters of | |
31 ;; ISO-8859-5. For the latter, use packages in quail/cyrillic.el. | |
32 | |
33 ;;; Code: | |
34 | |
35 (quail-define-package | |
36 "cyrillic-jis-russian" "Cyrillic" "$B'('+(B" nil | |
37 "$B'+'8'5','&'/(B keyboard layout same as JCUKEN (JIS X0208.1983 encoding)" | |
19722
dd39cae4cf0f
For each package, pass t for the SIMPLE
Kenichi Handa <handa@m17n.org>
parents:
19152
diff
changeset
|
38 nil t t t t nil nil nil nil nil t) |
19152 | 39 |
40 ;; 1! 2@ 3# 4" 5: 6, 7. 8* 9( 0) -_ =+ ,L!(B | |
41 ;; ,L9(B ,LF(B ,LC(B ,L:(B ,L5(B ,L=(B ,L3(B ,LH(B ,LI(B ,L7(B ,LE(B ,Lj(B | |
42 ;; ,LD(B ,LK(B ,L2(B ,L0(B ,L?(B ,L@(B ,L>(B ,L;(B ,L4(B ,L6(B ,LM(B | |
43 ;; ,LO(B ,LG(B ,LA(B ,L<(B ,L8(B ,LB(B ,LL(B ,L1(B ,LN(B /? | |
44 | |
45 (quail-define-rules | |
46 ("1" ?$B#1(B) | |
47 ("2" ?$B#2(B) | |
48 ("3" ?$B#3(B) | |
49 ("4" ?$B#4(B) | |
50 ("5" ?$B#5(B) | |
51 ("6" ?$B#6(B) | |
52 ("7" ?$B#7(B) | |
53 ("8" ?$B#8(B) | |
54 ("9" ?$B#9(B) | |
55 ("0" ?$B#0(B) | |
56 ("-" ?$B!](B) | |
57 ("=" ?$B!a(B) | |
58 ("`" ?$B'W(B) | |
59 ("q" ?$B'[(B) | |
60 ("w" ?$B'h(B) | |
61 ("e" ?$B'e(B) | |
62 ("r" ?$B'\(B) | |
63 ("t" ?$B'V(B) | |
64 ("y" ?$B'_(B) | |
65 ("u" ?$B'T(B) | |
66 ("i" ?$B'j(B) | |
67 ("o" ?$B'k(B) | |
68 ("p" ?$B'Y(B) | |
69 ("[" ?$B'g(B) | |
70 ("]" ?$B'l(B) | |
71 ("a" ?$B'f(B) | |
72 ("s" ?$B'm(B) | |
73 ("d" ?$B'S(B) | |
74 ("f" ?$B'Q(B) | |
75 ("g" ?$B'a(B) | |
76 ("h" ?$B'b(B) | |
77 ("j" ?$B'`(B) | |
78 ("k" ?$B'](B) | |
79 ("l" ?$B'U(B) | |
80 (";" ?$B'X(B) | |
81 ("'" ?$B'o(B) | |
82 ("\\" ?$B!@(B) | |
83 ("z" ?$B'q(B) | |
84 ("x" ?$B'i(B) | |
85 ("c" ?$B'c(B) | |
86 ("v" ?$B'^(B) | |
87 ("b" ?$B'Z(B) | |
88 ("n" ?$B'd(B) | |
89 ("m" ?$B'n(B) | |
90 ("," ?$B'R(B) | |
91 ("." ?$B'p(B) | |
92 ("/" ?$B!?(B) | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
40711
diff
changeset
|
93 |
19152 | 94 ("!" ?$B!*(B) |
95 ("@" ?$B!w(B) | |
96 ("#" ?$B!t(B) | |
97 ("$" ?$B!I(B) | |
98 ("%" ?$B!'(B) | |
99 ("^" ?$B!$(B) | |
100 ("&" ?$B!%(B) | |
101 ("*" ?$B!v(B) | |
102 ("(" ?$B!J(B) | |
103 (")" ?$B!K(B) | |
104 ("_" ?$B!2(B) | |
105 ("+" ?$B!\(B) | |
106 ("~" ?$B''(B) | |
107 ("Q" ?$B'+(B) | |
108 ("W" ?$B'8(B) | |
109 ("E" ?$B'5(B) | |
110 ("R" ?$B',(B) | |
111 ("T" ?$B'&(B) | |
112 ("Y" ?$B'/(B) | |
113 ("U" ?$B'$(B) | |
114 ("I" ?$B':(B) | |
115 ("O" ?$B';(B) | |
116 ("P" ?$B')(B) | |
117 ("{" ?$B'7(B) | |
118 ("}" ?$B'<(B) | |
119 ("A" ?$B'6(B) | |
120 ("S" ?$B'=(B) | |
121 ("D" ?$B'#(B) | |
122 ("F" ?$B'!(B) | |
123 ("G" ?$B'1(B) | |
124 ("H" ?$B'2(B) | |
125 ("J" ?$B'0(B) | |
126 ("K" ?$B'-(B) | |
127 ("L" ?$B'%(B) | |
128 (":" ?$B'((B) | |
129 ("\"" ?$B'?(B) | |
130 ("|" ?$B!C(B) | |
131 ("Z" ?$B'A(B) | |
132 ("X" ?$B'9(B) | |
133 ("C" ?$B'3(B) | |
134 ("V" ?$B'.(B) | |
135 ("B" ?$B'*(B) | |
136 ("N" ?$B'4(B) | |
137 ("M" ?$B'>(B) | |
138 ("<" ?$B'"(B) | |
139 (">" ?$B'@(B) | |
140 ("?" ?$B!)(B)) | |
141 | |
142 ;; Local Variables: | |
40711 | 143 ;; coding: iso-2022-7bit |
19152 | 144 ;; End: |
38453
519983161a46
Some fixes to follow lisp coding conventions and typo fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
19722
diff
changeset
|
145 |
94710
4f1fd208c354
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79727
diff
changeset
|
146 ;; arch-tag: 3a0cc2ac-de48-42fe-9e80-05d8aa6faa36 |
38453
519983161a46
Some fixes to follow lisp coding conventions and typo fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
19722
diff
changeset
|
147 ;;; cyril-jis.el ends here |