Mercurial > hg > xemacs-beta
annotate lisp/mule/mule-locale.txt @ 5882:bbe4146603db
Reduce regexp usage, now CL-oriented non-regexp code available, core Lisp
lisp/ChangeLog addition:
2015-04-01 Aidan Kehoe <kehoea@parhasard.net>
When calling #'string-match with a REGEXP without regular
expression special characters, call #'search, #'mismatch, #'find,
etc. instead, making our code less likely to side-effect other
functions' match data and a little faster.
* apropos.el (apropos-command):
* apropos.el (apropos):
Call (position ?\n ...) rather than (string-match "\n" ...) here.
* buff-menu.el:
* buff-menu.el (buffers-menu-omit-invisible-buffers):
Don't fire up the regexp engine just to check if a string starts
with a space.
* buff-menu.el (select-buffers-tab-buffers-by-mode):
Don't fire up the regexp engine just to compare mode basenames.
* buff-menu.el (format-buffers-tab-line):
* buff-menu.el (build-buffers-tab-internal): Moved to being a
label within the following.
* buff-menu.el (buffers-tab-items): Use the label.
* bytecomp.el (byte-compile-log-1):
Don't fire up the regexp engine just to look for a newline.
* cus-edit.el (get):
Ditto.
* cus-edit.el (custom-variable-value-create):
Ditto, but for a colon.
* descr-text.el (describe-text-sexp):
Ditto.
* descr-text.el (describe-char-unicode-data):
Use #'split-string-by-char given that we're just looking for a
semicolon.
* descr-text.el (describe-char):
Don't fire up the regexp engine just to look for a newline.
* disass.el (disassemble-internal):
Ditto.
* files.el (file-name-sans-extension):
Implement this using #'position.
* files.el (file-name-extension):
Correct this function's docstring, implement it in terms of
#'position.
* files.el (insert-directory):
Don't fire up the regexp engine to split a string by space; don't
reverse the list of switches, this is actually a longstand bug as
far as I can see.
* gnuserv.el (gnuserv-process-filter):
Use #'position here, instead of consing inside #'split-string
needlessly.
* gtk-file-dialog.el (gtk-file-dialog-update-dropdown):
Use #'split-string-by-char here, don't fire up #'split-string for
directory-sep-char.
* gtk-font-menu.el (hack-font-truename):
Implement this more cheaply in terms of #'find,
#'split-string-by-char, #'equal, rather than #'string-match,
#'split-string, #'string-equal.
* hyper-apropos.el (hyper-apropos-grok-functions):
* hyper-apropos.el (hyper-apropos-grok-variables):
Look for a newline using #'position rather than #'string-match in
these functions.
* info.el (Info-insert-dir):
* info.el (Info-insert-file-contents):
* info.el (Info-follow-reference):
* info.el (Info-extract-menu-node-name):
* info.el (Info-menu):
Look for fixed strings using #'position or #'search as appropriate
in this file.
* ldap.el (ldap-decode-string):
* ldap.el (ldap-encode-string):
#'encode-coding-string, #'decode-coding-string are always
available, don't check if they're fboundp.
* ldap.el (ldap-decode-address):
* ldap.el (ldap-encode-address):
Use #'split-string-by-char in these functions.
* lisp-mnt.el (lm-creation-date):
* lisp-mnt.el (lm-last-modified-date):
Don't fire up the regexp engine just to look for spaces in this file.
* menubar-items.el (default-menubar):
Use (not (mismatch ...)) rather than #'string-match here, for
simple regexp.
Use (search "beta" ...) rather than (string-match "beta" ...)
* menubar-items.el (sort-buffers-menu-alphabetically):
* menubar-items.el (sort-buffers-menu-by-mode-then-alphabetically):
* menubar-items.el (group-buffers-menu-by-mode-then-alphabetically):
Don't fire up the regexp engine to check if a string starts with
a space or an asterisk.
Use the more fine-grained results of #'compare-strings; compare
case-insensitively for the buffer menu.
* menubar-items.el (list-all-buffers):
* menubar-items.el (tutorials-menu-filter):
Use #'equal rather than #'string-equal, which, in this context,
has the drawback of not having a bytecode, and no redeeming
features.
* minibuf.el:
* minibuf.el (un-substitute-in-file-name):
Use #'count, rather than counting the occurences of $ using the
regexp engine.
* minibuf.el (read-file-name-internal-1):
Don't fire up the regexp engine to search for ?=.
* mouse.el (mouse-eval-sexp):
Check for newline with #'find.
* msw-font-menu.el (mswindows-reset-device-font-menus):
Split a string by newline with #'split-string-by-char.
* mule/japanese.el:
* mule/japanese.el ("Japanese"):
Use #'search rather than #'string-match; canoncase before
comparing; fix a bug I had introduced where I had been making case
insensitive comparisons where the case mattered.
* mule/korea-util.el (default-korean-keyboard):
Look for ?3 using #'find, not #'string-march.
* mule/korea-util.el (quail-hangul-switch-hanja):
Search for a fixed string using #'search.
* mule/mule-cmds.el (set-locale-for-language-environment):
#'position, #'substitute rather than #'string-match,
#'replace-in-string.
* newcomment.el (comment-make-extra-lines):
Use #'search rather than #'string-match for a simple string.
* package-get.el (package-get-remote-filename):
Use #'position when looking for ?@
* process.el (setenv):
* process.el (read-envvar-name):
Use #'position when looking for ?=.
* replace.el (map-query-replace-regexp):
Use #'split-string-by-char instead of using an inline
implementation of it.
* select.el (select-convert-from-cf-text):
* select.el (select-convert-from-cf-unicodetext):
Use #'position rather than #'string-match in these functions.
* setup-paths.el (paths-emacs-data-root-p):
Use #'search when looking for simple string.
* sound.el (load-sound-file):
Use #'split-string-by-char rather than an inline reimplementation
of same.
* startup.el (splash-screen-window-body):
* startup.el (splash-screen-tty-body):
Search for simple strings using #'search.
* version.el (emacs-version):
Ditto.
* x-font-menu.el (hack-font-truename):
Implement this more cheaply in terms of #'find,
#'split-string-by-char, #'equal, rather than #'string-match,
#'split-string, #'string-equal.
* x-font-menu.el (x-reset-device-font-menus-core):
Use #'split-string-by-char here.
* x-init.el (x-initialize-keyboard):
Search for a simple string using #'search.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 01 Apr 2015 14:28:20 +0100 |
parents | 943eaba38521 |
children |
rev | line source |
---|---|
771 | 1 |
2 | |
3 <localeset> | |
4 <os command="uname -a"> | |
5 FreeBSD fpage2.ba.best.com 2.2.8-STABLE FreeBSD 2.2.8-STABLE #127: Tue Dec 19 18:05:20 PST 2000 root@tick.best.net:/src/src/sys/compile/BEST i386 | |
6 </os> | |
7 <locale command="\ls -1 /usr/share/locale"> | |
8 ASCII | |
9 US-ASCII | |
10 ascii | |
11 cs | |
12 da | |
13 da_DK.ISO_8859-1 | |
14 de | |
15 de_AT.ISO_8859-1 | |
16 de_CH.ISO_8859-1 | |
17 de_DE.ISO_8859-1 | |
18 el | |
19 en_AU.ISO_8859-1 | |
20 en_CA.ISO_8859-1 | |
21 en_GB.ISO_8859-1 | |
22 en_US.ISO_8859-1 | |
23 eo | |
24 es | |
25 es_ES.ISO_8859-1 | |
26 fi_FI.ISO_8859-1 | |
27 fr | |
28 fr_BE.ISO_8859-1 | |
29 fr_CA.ISO_8859-1 | |
30 fr_CH.ISO_8859-1 | |
31 fr_FR.ISO_8859-1 | |
32 gl | |
33 hr_HR.ISO_8859-2 | |
34 hu_HU.ISO_8859-2 | |
35 id | |
36 is_IS.ISO_8859-1 | |
37 it | |
38 it_CH.ISO_8859-1 | |
39 it_IT.ISO_8859-1 | |
40 ja_JP.EUC | |
41 ja_JP.SJIS | |
42 ko | |
43 ko_KR.EUC | |
44 locale.alias | |
45 lt_LN.ASCII | |
46 lt_LN.ISO_8859-1 | |
47 lt_LN.ISO_8859-2 | |
48 nl | |
49 nl_BE.ISO_8859-1 | |
50 nl_NL.ISO_8859-1 | |
51 no | |
52 no@nynorsk | |
53 no_NO.ISO_8859-1 | |
54 pl | |
55 pl_PL.ISO_8859-2 | |
56 pt | |
57 pt_BR | |
58 pt_PT.ISO_8859-1 | |
59 ru | |
60 ru_RU.CP866 | |
61 ru_RU.KOI8-R | |
62 ru_SU.CP866 | |
63 ru_SU.KOI8-R | |
64 sk | |
65 sl | |
66 sl_SI.ISO_8859-2 | |
67 sv | |
68 sv_SE.ISO_8859-1 | |
69 uk | |
70 us-ascii | |
71 zh_TW.Big5 | |
72 </locale> | |
73 </localeset> | |
74 | |
75 <localeset> | |
76 <os command="uname -a"> | |
77 CYGWIN_NT-5.0 NEEEEEEE 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown | |
78 </os> | |
79 <locale command="\ls -1 /usr/share/locale"> | |
80 le | |
81 cs | |
82 da | |
83 de | |
84 de_AT | |
85 el | |
86 eo | |
87 es | |
88 et | |
89 fr | |
90 gl | |
91 hr | |
92 id | |
93 it | |
94 ja | |
95 ko | |
96 locale.alias | |
97 nl | |
98 no | |
99 no@nynorsk | |
100 pl | |
101 pt | |
102 pt_BR | |
103 ru | |
104 sk | |
105 sl | |
106 sv | |
107 uk | |
108 zh | |
109 zh_TW.Big5 | |
110 </locale> | |
111 </localeset> | |
112 | |
113 | |
114 <localeset> | |
115 <os command="uname -a"> | |
116 SunOS jptkyiman01 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-5_10 | |
117 </os> | |
118 <locale command="locale -a"> | |
119 C | |
120 POSIX | |
121 ar | |
122 bg_BG | |
123 cz | |
124 da | |
125 da.ISO8859-15 | |
126 da.ISO8859-15@euro | |
127 de | |
128 de.ISO8859-15 | |
129 de.ISO8859-15@euro | |
130 de.UTF-8 | |
131 de.UTF-8@euro | |
132 de_AT | |
133 de_AT.ISO8859-15 | |
134 de_AT.ISO8859-15@euro | |
135 de_CH | |
136 el | |
137 el.sun_eu_greek | |
138 el.sun_eu_greek@euro | |
139 en_AU | |
140 en_CA | |
141 en_GB | |
142 en_GB.ISO8859-15 | |
143 en_GB.ISO8859-15@euro | |
144 en_IE | |
145 en_IE.ISO8859-15 | |
146 en_IE.ISO8859-15@euro | |
147 en_NZ | |
148 en_US | |
149 en_US.UTF-8 | |
150 es | |
151 es.ISO8859-15 | |
152 es.ISO8859-15@euro | |
153 es.UTF-8 | |
154 es.UTF-8@euro | |
155 es_AR | |
156 es_BO | |
157 es_CL | |
158 es_CO | |
159 es_CR | |
160 es_EC | |
161 es_GT | |
162 es_MX | |
163 es_NI | |
164 es_PA | |
165 es_PE | |
166 es_PY | |
167 es_SV | |
168 es_UY | |
169 es_VE | |
170 et | |
171 fi | |
172 fi.ISO8859-15 | |
173 fi.ISO8859-15@euro | |
174 fr | |
175 fr.ISO8859-15 | |
176 fr.ISO8859-15@euro | |
177 fr.UTF-8 | |
178 fr.UTF-8@euro | |
179 fr_BE | |
180 fr_BE.ISO8859-15 | |
181 fr_BE.ISO8859-15@euro | |
182 fr_CA | |
183 fr_CH | |
184 he | |
185 he_IL | |
186 hr_HR | |
187 hu | |
188 iso_8859_1 | |
189 it | |
190 it.ISO8859-15 | |
191 it.ISO8859-15@euro | |
192 it.UTF-8 | |
193 it.UTF-8@euro | |
194 ja | |
195 ja_JP.PCK | |
196 ja_JP.UTF-8 | |
197 japanese | |
198 lt | |
199 lv | |
200 mk_MK | |
201 nl | |
202 nl.ISO8859-15 | |
203 nl.ISO8859-15@euro | |
204 nl_BE | |
205 nl_BE.ISO8859-15 | |
206 nl_BE.ISO8859-15@euro | |
207 no | |
208 no_NY | |
209 nr | |
210 pl | |
211 pt | |
212 pt.ISO8859-15 | |
213 pt.ISO8859-15@euro | |
214 pt_BR | |
215 ro_RO | |
216 ru | |
217 ru.koi8-r | |
218 sk_SK | |
219 sl_SI | |
220 sq_AL | |
221 sr_SP | |
222 sv | |
223 sv.ISO8859-15 | |
224 sv.ISO8859-15@euro | |
225 sv.UTF-8 | |
226 sv.UTF-8@euro | |
227 th | |
228 th_TH | |
229 tr | |
230 </locale> | |
231 </localeset> | |
232 | |
233 <localeset> | |
234 <os command="uname -a, embellished"> | |
235 Linux jptkyienaga.ugsolutions.com 2.2.15 #3 Tue May 16 10:45:47 JST 2000 i686 unknown | |
236 (Redhat Linux 6.2J) | |
237 </os> | |
238 <locale command="locale -a"> | |
239 C | |
240 POSIX | |
241 af_ZA | |
242 ar_SA | |
243 ca | |
244 ca_ES | |
245 catalan | |
246 croatian | |
247 cs | |
248 cs_CZ | |
249 cz | |
250 czech | |
251 da | |
252 da_DK | |
253 danish | |
254 dansk | |
255 de | |
256 de_AT | |
257 de_BE | |
258 de_CH | |
259 de_DE | |
260 de_LU | |
261 deutsch | |
262 dutch | |
263 eesti | |
264 el | |
265 el_GR | |
266 en_AU | |
267 en_BW | |
268 en_CA | |
269 en_DK | |
270 en_GB | |
271 en_IE | |
272 en_US | |
273 en_ZW | |
274 eo | |
275 es | |
276 es_DO | |
277 es_ES | |
278 es_GT | |
279 es_HN | |
280 es_MX | |
281 es_PA | |
282 es_PE | |
283 es_SV | |
284 estonian | |
285 et | |
286 et_EE | |
287 eu | |
288 eu_ES | |
289 fi | |
290 fi_FI | |
291 finnish | |
292 fo_FO | |
293 fr | |
294 fr_BE | |
295 fr_CA | |
296 fr_CH | |
297 fr_FR | |
298 fr_LU | |
299 fran$BmB(Bis | |
300 french | |
301 ga | |
302 ga_IE | |
303 german | |
304 gl | |
305 gl_ES | |
306 greek | |
307 hebrew | |
308 hr | |
309 hr_HR | |
310 hrvatski | |
311 hu | |
312 hu_HU | |
313 hungarian | |
314 icelandic | |
315 id | |
316 in_ID | |
317 is | |
318 is_IS | |
319 it | |
320 it_CH | |
321 it_IT | |
322 italian | |
323 iw_IL | |
324 ja | |
325 ja_JP | |
326 ja_JP.eucJP | |
327 ja_JP.ujis | |
328 japanese | |
329 japanese.euc | |
330 kl_GL | |
331 ko | |
332 lithuanian | |
333 lt | |
334 lt_LT | |
335 lv_LV | |
336 mk_MK | |
337 nl | |
338 nl_BE | |
339 nl_NL | |
340 no | |
341 no@nynorsk | |
342 no_NO | |
343 norwegian | |
344 pl | |
345 pl_PL | |
346 polish | |
347 portuguese | |
348 pt | |
349 pt_BR | |
350 pt_PT | |
351 ro | |
352 ro_RO | |
353 romanian | |
354 ru | |
355 ru_RU | |
356 ru_RU.KOI8-R | |
357 ru_UA | |
358 russian | |
359 se | |
360 sk | |
361 sk_SK | |
362 sl | |
363 sl_SI | |
364 slovak | |
365 slovene | |
366 slovenian | |
367 spanish | |
368 sr | |
369 sr_YU | |
370 sv | |
371 sv_FI | |
372 sv_SE | |
373 swedish | |
374 th_TH | |
375 tr | |
376 tr_TR | |
377 turkish | |
378 uk | |
379 uk_UA | |
380 wa | |
381 zh | |
382 zh_TW.Big5 | |
383 </locale> | |
384 </localeset> | |
385 | |
386 <localeset> | |
387 <os command="uname -a"> | |
388 HP-UX ughp4 B.10.20 A 9000/778 2010968479 two-user license | |
389 </os> | |
390 <locale command="locale -a"> | |
391 C | |
392 C.iso88591 | |
393 C.iso885915 | |
394 C.utf8 | |
395 POSIX | |
396 ar_DZ.arabic8 | |
397 ar_SA.arabic8 | |
398 ar_SA.iso88596 | |
399 bg_BG.iso88595 | |
400 cs_CZ.iso88592 | |
401 da_DK.iso88591 | |
402 da_DK.iso885915@euro | |
403 da_DK.roman8 | |
404 de_DE.iso88591 | |
405 de_DE.iso885915@euro | |
406 de_DE.roman8 | |
407 el_GR.greek8 | |
408 el_GR.iso88597 | |
409 en_GB.iso88591 | |
410 en_GB.iso885915@euro | |
411 en_GB.roman8 | |
412 en_US.iso88591 | |
413 en_US.roman8 | |
414 es_ES.iso88591 | |
415 es_ES.iso885915@euro | |
416 es_ES.roman8 | |
417 fi_FI.iso88591 | |
418 fi_FI.iso885915@euro | |
419 fi_FI.roman8 | |
420 fr_CA.iso88591 | |
421 fr_CA.iso885915 | |
422 fr_CA.roman8 | |
423 fr_FR.iso88591 | |
424 fr_FR.iso885915@euro | |
425 fr_FR.roman8 | |
426 hr_HR.iso88592 | |
427 hu_HU.iso88592 | |
428 is_IS.iso88591 | |
429 is_IS.iso885915@euro | |
430 is_IS.roman8 | |
431 it_IT.iso88591 | |
432 it_IT.iso885915@euro | |
433 it_IT.roman8 | |
434 iw_IL.hebrew8 | |
435 iw_IL.iso88598 | |
436 ja_JP.SJIS | |
437 ja_JP.eucJPput | |
438 ja_JP.kana8 | |
439 nl_NL.iso88591 | |
440 nl_NL.iso885915@euro | |
441 nl_NL.roman8 | |
442 no_NO.iso88591 | |
443 no_NO.iso885915@euro | |
444 no_NO.roman8 | |
445 pl_PL.iso88592 | |
446 pt_PT.iso88591 | |
447 pt_PT.iso885915@euro | |
448 pt_PT.roman8 | |
449 ro_RO.iso88592 | |
450 ru_RU.iso88595 | |
451 sk_SK.iso88592 | |
452 sl_SI.iso88592 | |
453 sv_SE.iso88591 | |
454 sv_SE.iso885915@euro | |
455 sv_SE.roman8 | |
456 th_TH.tis620 | |
457 tr_TR.iso88599 | |
458 tr_TR.turkish8 | |
459 univ.utf8 | |
460 zh_CN.hp15CNut | |
461 zh_TW.eucTW | |
462 </locale> | |
463 </localeset> |