Mercurial > hg > xemacs-beta
annotate man/lispref/maps.texi @ 4690:257b468bf2ca
Move the #'query-coding-region implementation to C.
This is necessary because there is no reasonable way to access the
corresponding mswindows-multibyte functionality from Lisp, and we need such
functionality if we're going to have a reliable and portable
#'query-coding-region implementation. However, this change doesn't yet
provide #'query-coding-region for the mswindow-multibyte coding systems,
there should be no functional differences between an XEmacs with this change
and one without it.
src/ChangeLog addition:
2009-09-19 Aidan Kehoe <kehoea@parhasard.net>
Move the #'query-coding-region implementation to C.
This is necessary because there is no reasonable way to access the
corresponding mswindows-multibyte functionality from Lisp, and we
need such functionality if we're going to have a reliable and
portable #'query-coding-region implementation. However, this
change doesn't yet provide #'query-coding-region for the
mswindow-multibyte coding systems, there should be no functional
differences between an XEmacs with this change and one without it.
* mule-coding.c (struct fixed_width_coding_system):
Add a new coding system type, fixed_width, and implement it. It
uses the CCL infrastructure but has a much simpler creation API,
and its own query_method, formerly in lisp/mule/mule-coding.el.
* unicode.c:
Move the Unicode query method implementation here from
unicode.el.
* lisp.h: Declare Fmake_coding_system_internal, Fcopy_range_table
here.
* intl-win32.c (complex_vars_of_intl_win32):
Use Fmake_coding_system_internal, not Fmake_coding_system.
* general-slots.h: Add Qsucceeded, Qunencodable, Qinvalid_sequence
here.
* file-coding.h (enum coding_system_variant):
Add fixed_width_coding_system here.
(struct coding_system_methods):
Add query_method and query_lstream_method to the coding system
methods.
Provide flags for the query methods.
Declare the default query method; initialise it correctly in
INITIALIZE_CODING_SYSTEM_TYPE.
* file-coding.c (default_query_method):
New function, the default query method for coding systems that do
not set it. Moved from coding.el.
(make_coding_system_1):
Accept new elements in PROPS in #'make-coding-system; aliases, a
list of aliases; safe-chars and safe-charsets (these were
previously accepted but not saved); and category.
(Fmake_coding_system_internal):
New function, what used to be #'make-coding-system--on Mule
builds, we've now moved some of the functionality of this to
Lisp.
(Fcoding_system_canonical_name_p):
Move this earlier in the file, since it's now called from within
make_coding_system_1.
(Fquery_coding_region):
Move the implementation of this here, from coding.el.
(complex_vars_of_file_coding):
Call Fmake_coding_system_internal, not Fmake_coding_system;
specify safe-charsets properties when we're a mule build.
* extents.h (mouse_highlight_priority, Fset_extent_priority,
Fset_extent_face, Fmap_extents):
Make these available to other C files.
lisp/ChangeLog addition:
2009-09-19 Aidan Kehoe <kehoea@parhasard.net>
Move the #'query-coding-region implementation to C.
* coding.el:
Consolidate code that depends on the presence or absence of Mule
at the end of this file.
(default-query-coding-region, query-coding-region):
Move these functions to C.
(default-query-coding-region-safe-charset-skip-chars-map):
Remove this variable, the corresponding C variable is
Vdefault_query_coding_region_chartab_cache in file-coding.c.
(query-coding-string): Update docstring to reflect actual multiple
values, be more careful about not modifying a range table that
we're currently mapping over.
(encode-coding-char): Make the implementation of this simpler.
(featurep 'mule): Autoload #'make-coding-system from
mule/make-coding-system.el if we're a mule build; provide an
appropriate compiler macro.
Do various non-mule compatibility things if we're not a mule
build.
* update-elc.el (additional-dump-dependencies):
Add mule/make-coding-system as a dump time dependency if we're a
mule build.
* unicode.el (ccl-encode-to-ucs-2):
(decode-char):
(encode-char):
Move these earlier in the file, for the sake of some byte compile
warnings.
(unicode-query-coding-region):
Move this to unicode.c
* mule/make-coding-system.el:
New file, not dumped. Contains the functionality to rework the
arguments necessary for fixed-width coding systems, and contains
the implementation of #'make-coding-system, which now calls
#'make-coding-system-internal.
* mule/vietnamese.el (viscii):
* mule/latin.el (iso-8859-2):
(windows-1250):
(iso-8859-3):
(iso-8859-4):
(iso-8859-14):
(iso-8859-15):
(iso-8859-16):
(iso-8859-9):
(macintosh):
(windows-1252):
* mule/hebrew.el (iso-8859-8):
* mule/greek.el (iso-8859-7):
(windows-1253):
* mule/cyrillic.el (iso-8859-5):
(koi8-r):
(koi8-u):
(windows-1251):
(alternativnyj):
(koi8-ru):
(koi8-t):
(koi8-c):
(koi8-o):
* mule/arabic.el (iso-8859-6):
(windows-1256):
Move all these coding systems to being of type fixed-width, not of
type CCL. This allows the distinct query-coding-region for them to
be in C, something which will eventually allow us to implement
query-coding-region for the mswindows-multibyte coding systems.
* mule/general-late.el (posix-charset-to-coding-system-hash):
Document why we're pre-emptively persuading the byte compiler that
the ELC for this file needs to be written using escape-quoted.
Call #'set-unicode-query-skip-chars-args, now the Unicode
query-coding-region implementation is in C.
* mule/thai-xtis.el (tis-620):
Don't bother checking whether we're XEmacs or not here.
* mule/mule-coding.el:
Move the eight bit fixed-width functionality from this file to
make-coding-system.el.
tests/ChangeLog addition:
2009-09-19 Aidan Kehoe <kehoea@parhasard.net>
* automated/mule-tests.el:
Check a coding system's type, not an 8-bit-fixed property, for
whether that coding system should be treated as a fixed-width
coding system.
* automated/query-coding-tests.el:
Don't test the query coding functionality for mswindows-multibyte
coding systems, it's not yet implemented.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 19 Sep 2009 22:53:13 +0100 |
parents | 576fb035e263 |
children |
rev | line source |
---|---|
0 | 1 @c -*-texinfo-*- |
2 @c This is part of the XEmacs Lisp Reference Manual. | |
444 | 3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. |
0 | 4 @c See the file lispref.texi for copying conditions. |
5 @setfilename ../../info/maps.info | |
6 @node Standard Keymaps, Standard Hooks, Standard Buffer-Local Variables, Top | |
7 @appendix Standard Keymaps | |
8 | |
9 The following symbols are used as the names for various keymaps. | |
10 Some of these exist when XEmacs is first started, others are | |
11 loaded only when their respective mode is used. This is not | |
12 an exhaustive list. | |
13 | |
14 Almost all of these maps are used as local maps. Indeed, of the modes | |
15 that presently exist, only Vip mode and Terminal mode ever change the | |
16 global keymap. | |
17 | |
18 @table @code | |
19 @item bookmark-map | |
20 @vindex bookmark-map | |
21 A keymap containing bindings to bookmark functions. | |
22 | |
23 @item Buffer-menu-mode-map | |
24 @vindex Buffer-menu-mode-map | |
25 A keymap used by Buffer Menu mode. | |
26 | |
27 @item c++-mode-map | |
28 @vindex c++-mode-map | |
29 A keymap used by C++ mode. | |
30 | |
31 @item c-mode-map | |
32 @vindex c-mode-map | |
33 A keymap used by C mode. | |
34 A sparse keymap used by C mode. | |
35 | |
36 @item command-history-map | |
37 @vindex command-history-map | |
38 A keymap used by Command History mode. | |
39 | |
40 @item ctl-x-4-map | |
41 @vindex ctl-x-4-map | |
42 A keymap for subcommands of the prefix @kbd{C-x 4}. | |
43 | |
44 @item ctl-x-5-map | |
45 @vindex ctl-x-5-map | |
46 A keymap for subcommands of the prefix @kbd{C-x 5}. | |
47 | |
48 @item ctl-x-map | |
49 @vindex ctl-x-map | |
50 A keymap for @kbd{C-x} commands. | |
51 | |
52 @item debugger-mode-map | |
53 @vindex debugger-mode-map | |
54 A keymap used by Debugger mode. | |
55 | |
56 @item dired-mode-map | |
57 @vindex dired-mode-map | |
58 A keymap for @code{dired-mode} buffers. | |
59 | |
60 @item edit-abbrevs-map | |
61 @vindex edit-abbrevs-map | |
62 A keymap used in @code{edit-abbrevs}. | |
63 | |
64 @item edit-tab-stops-map | |
65 @vindex edit-tab-stops-map | |
66 A keymap used in @code{edit-tab-stops}. | |
67 | |
68 @item electric-buffer-menu-mode-map | |
69 @vindex electric-buffer-menu-mode-map | |
70 A keymap used by Electric Buffer Menu mode. | |
71 | |
72 @item electric-history-map | |
73 @vindex electric-history-map | |
74 A keymap used by Electric Command History mode. | |
75 | |
76 @item emacs-lisp-mode-map | |
77 @vindex emacs-lisp-mode-map | |
78 A keymap used by Emacs Lisp mode. | |
79 | |
80 @item help-map | |
81 @vindex help-map | |
82 A keymap for characters following the Help key. | |
83 | |
84 @item Helper-help-map | |
85 @vindex Helper-help-map | |
86 A keymap used by the help utility package.@* | |
87 It has the same keymap in its value cell and in its function | |
88 cell. | |
89 | |
90 @item Info-edit-map | |
91 @vindex Info-edit-map | |
92 A keymap used by the @kbd{e} command of Info. | |
93 | |
94 @item Info-mode-map | |
95 @vindex Info-mode-map | |
96 A keymap containing Info commands. | |
97 | |
98 @item isearch-mode-map | |
99 @vindex isearch-mode-map | |
100 A keymap that defines the characters you can type within incremental | |
101 search. | |
102 | |
103 @item itimer-edit-map | |
104 @vindex itimer-edit-map | |
105 A keymap used when in Itimer Edit mode. | |
106 | |
107 @item lisp-interaction-mode-map | |
108 @vindex lisp-interaction-mode-map | |
109 A keymap used by Lisp mode. | |
110 | |
111 @item lisp-mode-map | |
112 @vindex lisp-mode-map | |
113 A keymap used by Lisp mode. | |
114 | |
115 @vindex minibuffer-local-completion-map | |
116 A keymap for minibuffer input with completion. | |
117 | |
118 @item minibuffer-local-isearch-map | |
119 @vindex minibuffer-local-isearch-map | |
120 A keymap for editing isearch strings in the minibuffer. | |
121 | |
122 @item minibuffer-local-map | |
123 @vindex minibuffer-local-map | |
124 Default keymap to use when reading from the minibuffer. | |
125 | |
126 @item minibuffer-local-must-match-map | |
127 @vindex minibuffer-local-must-match-map | |
128 A keymap for minibuffer input with completion, for exact match. | |
129 | |
130 @item mode-specific-map | |
131 @vindex mode-specific-map | |
132 The keymap for characters following @kbd{C-c}. Note, this is in the | |
133 global map. This map is not actually mode specific: its name was chosen | |
134 to be informative for the user in @kbd{C-h b} (@code{display-bindings}), | |
135 where it describes the main use of the @kbd{C-c} prefix key. | |
136 | |
137 @item modeline-map | |
138 @vindex modeline-map | |
139 The keymap consulted for mouse-clicks on the modeline of a window. | |
140 | |
141 @item objc-mode-map | |
142 @vindex objc-mode-map | |
143 A keymap used in Objective C mode as a local map. | |
144 | |
145 @item occur-mode-map | |
146 @vindex occur-mode-map | |
147 A local keymap used by Occur mode. | |
148 | |
149 @item overriding-local-map | |
150 @vindex overriding-local-map | |
151 A keymap that overrides all other local keymaps. | |
152 | |
153 @item query-replace-map | |
154 @vindex query-replace-map | |
155 A local keymap used for responses in @code{query-replace} and related | |
156 commands; also for @code{y-or-n-p} and @code{map-y-or-n-p}. The functions | |
157 that use this map do not support prefix keys; they look up one event at a | |
158 time. | |
159 | |
160 @item read-expression-map | |
161 @vindex read-expression-map | |
162 The minibuffer keymap used for reading Lisp expressions. | |
163 | |
164 @item read-shell-command-map | |
165 @vindex read-shell-command-map | |
444 | 166 The minibuffer keymap used by @code{shell-command} and related commands. |
0 | 167 |
168 @item shared-lisp-mode-map | |
169 @vindex shared-lisp-mode-map | |
170 A keymap for commands shared by all sorts of Lisp modes. | |
171 | |
172 @item text-mode-map | |
173 @vindex text-mode-map | |
174 A keymap used by Text mode. | |
175 | |
176 @item toolbar-map | |
177 @vindex toolbar-map | |
178 The keymap consulted for mouse-clicks over a toolbar. | |
179 | |
180 @item view-mode-map | |
181 @vindex view-mode-map | |
182 A keymap used by View mode. | |
183 @end table |