[C] Avoid autoconf warning about datarootdir
17 years, 3 months
Michael Sperber
2007-08-27 Mike Sperber <mike(a)xemacs.org>
* config.values.in (datarootdir): Add.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
Index: lib-src/config.values.in
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/config.values.in,v
retrieving revision 1.25
diff -u -r1.25 config.values.in
--- lib-src/config.values.in 11 Jul 2006 23:36:21 -0000 1.25
+++ lib-src/config.values.in 27 Aug 2007 10:25:38 -0000
@@ -120,6 +120,7 @@
configuration "@configuration@"
configure_input "@configure_input@"
datadir "@datadir@"
+dadarootdir "@datarootdir@"
dll_cflags "@dll_cflags@"
dll_ld "@dll_ld@"
dll_ldflags "@dll_ldflags@"
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[COMMIT] Revert the last change to mule-ccl.c, on Steve Baur's objection
17 years, 4 months
Aidan Kehoe
Ar an seachtú lá is fiche de mí Lúnasa, scríobh SL Baur:
> NAK the mule-ccl.c change, it isn't necessary with your change to
> lisp.h and it makes ugly code even uglier. (And it's cargo cult
> programming. There must be no side-effects in macros due to
> multiple evaluation of parameters. Period.).
Okay, reverted.
> The change to lisp.h is OK.
>
> Are we reviewing patches any more before commit? (Question
> not a flame).
Commit-and-review is the current state of things. It is rare enough that
people (besides SJT) actually review, though (which is not a good state of
affairs; lots of Mule questions end up with myself and SJT getting cranky
with each other and no-one else injecting sense into the discussion). I tend
to directly commit without submitting patches previously more than most;
other folk tend to post patches and wait a few days before committing. But
there are exceptions in both directions.
APPROVE COMMIT
NOTE: This patch has been committed.
src/ChangeLog addition:
2007-08-28 Aidan Kehoe <kehoea(a)parhasard.net>
* mule-ccl.c (ccl_driver):
Revert the last change to mule-ccl.c, on objection from SL
Baur. The change to lisp.h in the same commit sufficed.
XEmacs Trunk source patch:
Diff command: cvs -q diff -u
Files affected: src/mule-ccl.c
===================================================================
RCS
Index: src/mule-ccl.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/mule-ccl.c,v
retrieving revision 1.34
diff -u -r1.34 mule-ccl.c
--- src/mule-ccl.c 2007/08/21 20:32:37 1.34
+++ src/mule-ccl.c 2007/08/28 09:46:04
@@ -1578,7 +1578,7 @@
Lisp_Object map, content, attrib, value;
int point, size, fin_ic;
- j = XCHAR_OR_INT (ccl_prog[ic]); ic++; /* number of maps. */
+ j = XCHAR_OR_INT (ccl_prog[ic++]); /* number of maps. */
fin_ic = ic + j;
op = reg[rrr];
if ((j > reg[RRR]) && (j >= 0))
@@ -1693,7 +1693,7 @@
stack_idx_of_map_multiple = 0;
map_set_rest_length =
- XCHAR_OR_INT (ccl_prog[ic]); ic++; /* number of maps and separators. */
+ XCHAR_OR_INT (ccl_prog[ic++]); /* number of maps and separators. */
fin_ic = ic + map_set_rest_length;
op = reg[rrr];
@@ -1880,7 +1880,7 @@
{
Lisp_Object map, attrib, value, content;
int size, point;
- j = XCHAR_OR_INT (ccl_prog[ic]); ic++;/* map_id */
+ j = XCHAR_OR_INT (ccl_prog[ic++]); /* map_id */
op = reg[rrr];
if (j >= XVECTOR (Vcode_conversion_map_vector)->size)
{
--
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[PATCH] Generally make the language environments and coding systems a little more sane.
17 years, 4 months
Aidan Kehoe
lisp/ChangeLog addition:
2007-08-25 Aidan Kehoe <kehoea(a)parhasard.net>
* mule/chinese.el ("Chinese-GB"):
* mule/chinese.el ("Chinese-BIG5"):
* mule/japanese.el ("Japanese"):
These three language environments have associated lambda
expressions to determine whether the current locale matches and
and what the native-coding-system should be. These used to be
stored uncompiled, since they were specified deep in the ALIST
argument to a #'set-language-info-alist call; this change moves
them into #'set-language-info calls where the byte-compiler can
compile them. Shouldn't make a huge difference, but startup time
is an issue for us.
* mule/cyrillic.el (windows-1251):
Unconditionally provide windows-1251 using
make-8-bit-coding-system.
* mule/latin.el:
Add a setup-function and an exit-function to the Turkish language
environment to change and restore the standard case table,
respectively. This reflects case conventions in Turkish, where
dotless i and dotted i are distinct characters with distinct case
forms. Add windows-1252, Mac Roman as coding systems.
* mule/mule-cmds.el:
* mule/mule-cmds.el (set-language-environment):
* mule/mule-cmds.el (finish-set-language-environment):
Check setup-function and exit-function's validity with
#'functionp, not fboundp. It doesn't make a lot of sense to
exclude lambdas from being specified as setup-function and
exit-functions. Update a comment to reflect the that
posix-charset-to-coding-system-hash is no longer initialised at
compile time.
* mule/mule-coding.el:
* mule/mule-coding.el (define-translation-hash-table):
Call check-argument-type on the two arguments instead of an
explicit error in a conditional, for the sake of better style.
* mule/mule-coding.el (make-8-bit-choose-category): New.
Function that looks at a make-8-bit-coding-system decode table and
decides on an appropriate category for the associated coding
system.
* mule/mule-coding.el (make-8-bit-coding-system):
Use make-8-bit-choose-category to make the coding category for the
generated coding systems a bit more sane.
* mule/mule-win32-init.el:
Move to a loop-with-destructuring-bind syntax for the creation of
Windows-specific coding systems. Specify the coding category of
the created coding systems, and create aliases of the form cpNNNN
for the compatibility with GNU. Use our own implementations
instead of the Windows ones for several coding systems, for the
sake of greater cross-platform compatibility.
2007-08-25 Aidan Kehoe <kehoea(a)parhasard.net>
* unicode.el (load-unicode-tables):
Explicitly set the default unicode-precedence-list after loading
the unicode tables, to move the Western character sets before the
East Asian ones by default.
* unicode.el :
Avoid overflowing 80 characters per line with the CCL
program. Make unicode-error-sequence-zero and
unicode-error-sequence-regexp-range available to user code that
wants to work with Unicode error sequences. Decode those
characters in WGL4 that are not available in other Western
character sets at dump time into jit-ucs-charset-0, in the
interest of avoiding them getting East Asian fonts and width
information when decoding from Unicode.
XEmacs Trunk source patch:
Diff command: cvs -q diff -Nu
Files affected: lisp/mule/mule-win32-init.el
===================================================================
RCS lisp/mule/mule-coding.el
===================================================================
RCS lisp/mule/mule-cmds.el
===================================================================
RCS lisp/mule/latin.el
===================================================================
RCS lisp/mule/japanese.el
===================================================================
RCS lisp/mule/general-late.el
===================================================================
RCS lisp/mule/cyrillic.el
===================================================================
RCS lisp/mule/chinese.el
===================================================================
RCS lisp/unicode.el
===================================================================
RCS
Index: lisp/unicode.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/unicode.el,v
retrieving revision 1.22
diff -u -u -r1.22 unicode.el
--- lisp/unicode.el 2007/08/04 20:00:13 1.22
+++ lisp/unicode.el 2007/08/25 18:30:12
@@ -144,7 +144,25 @@
(expand-file-name (car args) undir)
(cdr args)))
(cdr tables))))
- parse-args)))
+ parse-args)
+ ;; The default-unicode-precedence-list. We set this here to default to
+ ;; *not* mapping various European characters to East Asian characters;
+ ;; otherwise the default-unicode-precedence-list is numerically ordered
+ ;; by charset ID.
+ (set-default-unicode-precedence-list
+ '(ascii control-1 latin-iso8859-1 latin-iso8859-2 latin-iso8859-15
+ greek-iso8859-7 hebrew-iso8859-8 ipa cyrillic-iso8859-5
+ latin-iso8859-16 latin-iso8859-3 latin-iso8859-4 latin-iso8859-9
+ vietnamese-viscii-lower vietnamese-viscii-upper arabic-iso8859-6
+ jit-ucs-charset-0 japanese-jisx0208 japanese-jisx0208-1978
+ japanese-jisx0212 japanese-jisx0213-1 japanese-jisx0213-2
+ chinese-gb2312 chinese-sisheng chinese-big5-1 chinese-big5-2
+ indian-is13194 korean-ksc5601 chinese-cns11643-1 chinese-cns11643-2
+ chinese-isoir165 arabic-1-column arabic-2-column arabic-digit
+ composite ethiopic indian-1-column indian-2-column jit-ucs-charset-0
+ katakana-jisx0201 lao thai-tis620 thai-xtis tibetan tibetan-1-column
+ latin-jisx0201 chinese-cns11643-3 chinese-cns11643-4
+ chinese-cns11643-5 chinese-cns11643-6 chinese-cns11643-7))))
(make-coding-system
'utf-16 'unicode
@@ -319,8 +337,8 @@
;; one), we can't compile the program at dump time. We can
;; check at byte compile time that the program is as
;; expected, though.
- [1 16 131127 7 98872 65823 1307 5 -65536 65313 64833 1028 147513
- 8 82009 255 22]))
+ [1 16 131127 7 98872 65823 1307 5 -65536 65313 64833 1028
+ 147513 8 82009 255 22]))
(when (featurep 'mule)
;; Check that the pre-existing constant reflects the intended
;; CCL program.
@@ -350,7 +368,169 @@
(defconst ccl-encode-to-ucs-2 prog
"CCL program to transform Mule characters to UCS-2.")
(put 'ccl-encode-to-ucs-2 'ccl-program-idx
- (register-ccl-program 'ccl-encode-to-ucs-2 prog))))
+ (register-ccl-program 'ccl-encode-to-ucs-2 prog)))
+
+ ;; Now, create jit-ucs-charset-0 entries for those characters in Windows
+ ;; Glyph List 4 that would otherwise end up in East Asian character sets.
+ ;;
+ ;; WGL4 is a character repertoire from Microsoft that gives a guideline
+ ;; for font implementors as to what characters are sufficient for
+ ;; pan-European support. The intention of this code is to avoid the
+ ;; situation where these characters end up mapping to East Asian XEmacs
+ ;; characters, which generally clash strongly with European characters
+ ;; both in font choice and character width; jit-ucs-charset-0 is a
+ ;; single-width character set which comes before the East Asian character
+ ;; sets in the default-unicode-precedence-list above.
+ (loop for (ucs ascii-or-latin-1)
+ in '((#x2013 ?-) ;; U+2013 EN DASH
+ (#x2014 ?-) ;; U+2014 EM DASH
+ (#x2105 ?%) ;; U+2105 CARE OF
+ (#x203e ?-) ;; U+203E OVERLINE
+ (#x221f ?|) ;; U+221F RIGHT ANGLE
+ (#x2584 ?|) ;; U+2584 LOWER HALF BLOCK
+ (#x2588 ?|) ;; U+2588 FULL BLOCK
+ (#x258c ?|) ;; U+258C LEFT HALF BLOCK
+ (#x2550 ?|) ;; U+2550 BOX DRAWINGS DOUBLE HORIZONTAL
+ (#x255e ?|) ;; U+255E BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
+ (#x256a ?|) ;; U+256A BOX DRAWINGS VERTICAL SINGLE & HORIZONTAL DOUBLE
+ (#x2561 ?|) ;; U+2561 BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
+ (#x2215 ?/) ;; U+2215 DIVISION SLASH
+ (#x02c9 ?`) ;; U+02C9 MODIFIER LETTER MACRON
+ (#x2211 ?s) ;; U+2211 N-ARY SUMMATION
+ (#x220f ?s) ;; U+220F N-ARY PRODUCT
+ (#x2248 ?=) ;; U+2248 ALMOST EQUAL TO
+ (#x2264 ?=) ;; U+2264 LESS-THAN OR EQUAL TO
+ (#x2265 ?=) ;; U+2265 GREATER-THAN OR EQUAL TO
+ (#x201c ?') ;; U+201C LEFT DOUBLE QUOTATION MARK
+ (#x2026 ?.) ;; U+2026 HORIZONTAL ELLIPSIS
+ (#x2212 ?-) ;; U+2212 MINUS SIGN
+ (#x2260 ?=) ;; U+2260 NOT EQUAL TO
+ (#x221e ?=) ;; U+221E INFINITY
+ (#x2642 ?=) ;; U+2642 MALE SIGN
+ (#x2640 ?=) ;; U+2640 FEMALE SIGN
+ (#x2032 ?=) ;; U+2032 PRIME
+ (#x2033 ?=) ;; U+2033 DOUBLE PRIME
+ (#x25cb ?=) ;; U+25CB WHITE CIRCLE
+ (#x25cf ?=) ;; U+25CF BLACK CIRCLE
+ (#x25a1 ?=) ;; U+25A1 WHITE SQUARE
+ (#x25a0 ?=) ;; U+25A0 BLACK SQUARE
+ (#x25b2 ?=) ;; U+25B2 BLACK UP-POINTING TRIANGLE
+ (#x25bc ?=) ;; U+25BC BLACK DOWN-POINTING TRIANGLE
+ (#x2192 ?=) ;; U+2192 RIGHTWARDS ARROW
+ (#x2190 ?=) ;; U+2190 LEFTWARDS ARROW
+ (#x2191 ?=) ;; U+2191 UPWARDS ARROW
+ (#x2193 ?=) ;; U+2193 DOWNWARDS ARROW
+ (#x2229 ?=) ;; U+2229 INTERSECTION
+ (#x2202 ?=) ;; U+2202 PARTIAL DIFFERENTIAL
+ (#x2261 ?=) ;; U+2261 IDENTICAL TO
+ (#x221a ?=) ;; U+221A SQUARE ROOT
+ (#x222b ?=) ;; U+222B INTEGRAL
+ (#x2030 ?=) ;; U+2030 PER MILLE SIGN
+ (#x266a ?=) ;; U+266A EIGHTH NOTE
+ (#x2020 ?*) ;; U+2020 DAGGER
+ (#x2021 ?*) ;; U+2021 DOUBLE DAGGER
+ (#x2500 ?|) ;; U+2500 BOX DRAWINGS LIGHT HORIZONTAL
+ (#x2502 ?|) ;; U+2502 BOX DRAWINGS LIGHT VERTICAL
+ (#x250c ?|) ;; U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT
+ (#x2510 ?|) ;; U+2510 BOX DRAWINGS LIGHT DOWN AND LEFT
+ (#x2518 ?|) ;; U+2518 BOX DRAWINGS LIGHT UP AND LEFT
+ (#x2514 ?|) ;; U+2514 BOX DRAWINGS LIGHT UP AND RIGHT
+ (#x251c ?|) ;; U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT
+ (#x252c ?|) ;; U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
+ (#x2524 ?|) ;; U+2524 BOX DRAWINGS LIGHT VERTICAL AND LEFT
+ (#x2534 ?|) ;; U+2534 BOX DRAWINGS LIGHT UP AND HORIZONTAL
+ (#x253c ?|) ;; U+253C BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
+ (#x02da ?^) ;; U+02DA RING ABOVE
+ (#x2122 ?\xa9) ;; U+2122 TRADE MARK SIGN, ?,A)(B
+
+ (#x0132 ?\xe6) ;; U+0132 LATIN CAPITAL LIGATURE IJ, ?,Af(B
+ (#x013f ?\xe6) ;; U+013F LATIN CAPITAL LETTER L WITH MIDDLE DOT, ?,Af(B
+
+ (#x0133 ?\xe6) ;; U+0133 LATIN SMALL LIGATURE IJ, ?,Af(B
+ (#x0140 ?\xe6) ;; U+0140 LATIN SMALL LETTER L WITH MIDDLE DOT, ?,Af(B
+ (#x0149 ?\xe6) ;; U+0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPH,?,Af(B
+
+ (#x2194 ?|) ;; U+2194 LEFT RIGHT ARROW
+ (#x2660 ?*) ;; U+2660 BLACK SPADE SUIT
+ (#x2665 ?*) ;; U+2665 BLACK HEART SUIT
+ (#x2663 ?*) ;; U+2663 BLACK CLUB SUIT
+ (#x2592 ?|) ;; U+2592 MEDIUM SHADE
+ (#x2195 ?|) ;; U+2195 UP DOWN ARROW
+
+ (#x2113 ?\xb9) ;; U+2113 SCRIPT SMALL L, ?,A9(B
+ (#x215b ?\xbe) ;; U+215B VULGAR FRACTION ONE EIGHTH, ?,A>(B
+ (#x215c ?\xbe) ;; U+215C VULGAR FRACTION THREE EIGHTHS, ?,A>(B
+ (#x215d ?\xbe) ;; U+215D VULGAR FRACTION FIVE EIGHTHS, ?,A>(B
+ (#x215e ?\xbe) ;; U+215E VULGAR FRACTION SEVEN EIGHTHS, ?,A>(B
+ (#x207f ?\xbe) ;; U+207F SUPERSCRIPT LATIN SMALL LETTER N, ?,A>(B
+
+ ;; These are not in WGL 4, but are IPA characters that should not
+ ;; be double width. They are the only IPA characters that both
+ ;; occur in packages/mule-packages/leim/ipa.el and end up in East
+ ;; Asian character sets when that file is loaded in an XEmacs
+ ;; without packages.
+ (#x2197 ?|) ;; U+2197 NORTH EAST ARROW
+ (#x2199 ?|) ;; U+2199 SOUTH WEST ARROW
+ (#x2191 ?|) ;; U+2191 UPWARDS ARROW
+ (#x207f ?\xb9));; U+207F SUPERSCRIPT LATIN SMALL LETTER N, ?,A9(B
+ with decoded = nil
+ with syntax-table = (standard-syntax-table)
+ ;; This creates jit-ucs-charset-0 entries because:
+ ;;
+ ;; 1. If the tables are dumped, it is run at dump time before they are
+ ;; dumped, and as such before the relevant conversions are available
+ ;; (they are made available in mule/general-late.el).
+ ;;
+ ;; 2. If the tables are not dumped, it is run at dump time, long before
+ ;; any of the other mappings are available.
+ ;;
+ do
+ (setq decoded (decode-char 'ucs ucs))
+ (assert (eq (char-charset decoded)
+ 'jit-ucs-charset-0) nil
+ "Unexpected Unicode decoding behavior. ")
+ (modify-syntax-entry decoded
+ (string
+ (char-syntax ascii-or-latin-1))
+ syntax-table))
+
+ ;; Create all the Unicode error sequences, normally as jit-ucs-charset-0
+ ;; characters starting at U+200000 (which isn't a valid Unicode code
+ ;; point).
+ (loop
+ for i from #x00 to #xFF
+ ;; #xd800 is the first leading surrogate; trailing surrogates must be in
+ ;; the range #xdc00-#xdfff. These examples are not, so we intentionally
+ ;; provoke an error sequence.
+ do (decode-coding-string (format "\xd8\x00\x01%c" i) 'utf-16-be))
+
+ ;; Make them available to user code.
+ (defvar unicode-error-sequence-zero
+ (aref (decode-coding-string "\xd8\x00\x01\x00" 'utf-16-be) 3)
+ "The XEmacs character representing an invalid zero octet in Unicode.
+
+Subtract this character from each XEmacs character in an invalid sequence to
+get the octet on disk. E.g.
+
+\(- (aref (decode-coding-string ?\\x80 'utf-8) 0)
+ unicode-error-characters-zero)
+=> ?\\x80
+
+You can search for invalid sequences using
+`unicode-error-sequence-regexp-range', which see. ")
+
+ (defvar unicode-error-sequence-regexp-range
+ (format "%c-%c"
+ (aref (decode-coding-string "\xd8\x00\x01\x00" 'utf-16-be) 3)
+ (aref (decode-coding-string "\xd8\x00\x01\xFF" 'utf-16-be) 3))
+ "Regular expression range to match Unicode error sequences in XEmacs.
+
+Invalid Unicode sequences on input are represented as XEmacs characters with
+values starting at `unicode-error-sequence-zero', one character for each
+invalid octet. Use this variable (with `re-search-forward' or
+`skip-chars-forward') to search for such characters; use
+`unicode-error-sequence-zero' from such characters to get a character
+corresponding to the octet on disk. "))
;; #### UTF-7 is not yet implemented, and it's tricky to do. There's
;; an implementation in appendix A.1 of the Unicode Standard, Version
Index: lisp/mule/chinese.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/chinese.el,v
retrieving revision 1.15
diff -u -u -r1.15 chinese.el
--- lisp/mule/chinese.el 2007/07/27 18:56:53 1.15
+++ lisp/mule/chinese.el 2007/08/25 18:30:12
@@ -225,11 +225,6 @@
(coding-system cn-gb-2312 iso-2022-7bit hz-gb-2312)
(coding-priority cn-gb-2312 big5 iso-2022-7bit)
(cygwin-locale "zh")
- (locale "zh_CN.eucCN" "zh_CN.EUC" "zh_CN"
- "chinese-s" "zh"
- (lambda (arg)
- (and arg (let ((case-fold-search t))
- (string-match "^zh_.*.GB.*" arg)))))
(mswindows-locale ("CHINESE" . "CHINESE_SIMPLIFIED"))
(native-coding-system cn-gb-2312)
(input-method . "chinese-py-punct")
@@ -240,6 +235,14 @@
Uses the GB2312 character set."))
'("Chinese"))
+;; Set the locale information separately so that the lambda gets compiled.
+(set-language-info "Chinese-GB"
+ 'locale
+ (list "zh_CN.eucCN" "zh_CN.EUC" "zh_CN" "chinese-s" "zh"
+ (lambda (arg)
+ (and arg (let ((case-fold-search t))
+ (string-match "^zh_.*.GB.*" arg))))))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Chinese BIG5 (traditional)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -295,11 +298,6 @@
(coding-system big5 iso-2022-7bit)
(coding-priority big5 cn-gb-2312 iso-2022-7bit)
(cygwin-locale "zh_TW")
- (locale "zh_TW.Big5" "zh_TW.big5" "zh_CN.big5" "zh_TW"
- "chinese-t"
- (lambda (arg)
- (and arg (let ((case-fold-search t))
- (string-match "^zh_.*.BIG5.*" arg)))))
(mswindows-locale ("CHINESE" . "CHINESE_TRADITIONAL"))
(native-coding-system big5)
(input-method . "chinese-py-punct-b5")
@@ -310,6 +308,15 @@
Uses the Chinese Big5 character set."
))
'("Chinese"))
+
+;; Set the locale information separately so that the lambda gets compiled.
+(set-language-info "Chinese-BIG5"
+ 'locale
+ (list "zh_TW.Big5" "zh_TW.big5" "zh_CN.big5" "zh_TW"
+ "chinese-t"
+ (lambda (arg)
+ (and arg (let ((case-fold-search t))
+ (string-match "^zh_.*.BIG5.*" arg))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Chinese CNS11643 (traditional)
Index: lisp/mule/cyrillic.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/cyrillic.el,v
retrieving revision 1.16
diff -u -u -r1.16 cyrillic.el
--- lisp/mule/cyrillic.el 2007/08/01 13:53:40 1.16
+++ lisp/mule/cyrillic.el 2007/08/25 18:30:12
@@ -455,147 +455,143 @@
. "Support for Ukrainian."))
'("Cyrillic"))
-;; Windows 1251 may be provided automatically on Windows, in which case we
-;; don't need to provide it.
-;; #### (Though we should provide the CP1251 alias.)
-(unless (find-coding-system 'windows-1251)
- (make-8-bit-coding-system
- 'windows-1251
- '((#x80 ?\u0402) ;; CYRILLIC CAPITAL LETTER DJE
- (#x81 ?\u0403) ;; CYRILLIC CAPITAL LETTER GJE
- (#x82 ?\u201A) ;; SINGLE LOW-9 QUOTATION MARK
- (#x83 ?\u0453) ;; CYRILLIC SMALL LETTER GJE
- (#x84 ?\u201E) ;; DOUBLE LOW-9 QUOTATION MARK
- (#x85 ?\u2026) ;; HORIZONTAL ELLIPSIS
- (#x86 ?\u2020) ;; DAGGER
- (#x87 ?\u2021) ;; DOUBLE DAGGER
- (#x88 ?\u20AC) ;; EURO SIGN
- (#x89 ?\u2030) ;; PER MILLE SIGN
- (#x8A ?\u0409) ;; CYRILLIC CAPITAL LETTER LJE
- (#x8B ?\u2039) ;; SINGLE LEFT-POINTING ANGLE QUOTATION MARK
- (#x8C ?\u040A) ;; CYRILLIC CAPITAL LETTER NJE
- (#x8D ?\u040C) ;; CYRILLIC CAPITAL LETTER KJE
- (#x8E ?\u040B) ;; CYRILLIC CAPITAL LETTER TSHE
- (#x8F ?\u040F) ;; CYRILLIC CAPITAL LETTER DZHE
- (#x90 ?\u0452) ;; CYRILLIC SMALL LETTER DJE
- (#x91 ?\u2018) ;; LEFT SINGLE QUOTATION MARK
- (#x92 ?\u2019) ;; RIGHT SINGLE QUOTATION MARK
- (#x93 ?\u201C) ;; LEFT DOUBLE QUOTATION MARK
- (#x94 ?\u201D) ;; RIGHT DOUBLE QUOTATION MARK
- (#x95 ?\u2022) ;; BULLET
- (#x96 ?\u2013) ;; EN DASH
- (#x97 ?\u2014) ;; EM DASH
- (#x99 ?\u2122) ;; TRADE MARK SIGN
- (#x9A ?\u0459) ;; CYRILLIC SMALL LETTER LJE
- (#x9B ?\u203A) ;; SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
- (#x9C ?\u045A) ;; CYRILLIC SMALL LETTER NJE
- (#x9D ?\u045C) ;; CYRILLIC SMALL LETTER KJE
- (#x9E ?\u045B) ;; CYRILLIC SMALL LETTER TSHE
- (#x9F ?\u045F) ;; CYRILLIC SMALL LETTER DZHE
- (#xA0 ?\u00A0) ;; NO-BREAK SPACE
- (#xA1 ?\u040E) ;; CYRILLIC CAPITAL LETTER SHORT U
- (#xA2 ?\u045E) ;; CYRILLIC SMALL LETTER SHORT U
- (#xA3 ?\u0408) ;; CYRILLIC CAPITAL LETTER JE
- (#xA4 ?\u00A4) ;; CURRENCY SIGN
- (#xA5 ?\u0490) ;; CYRILLIC CAPITAL LETTER GHE WITH UPTURN
- (#xA6 ?\u00A6) ;; BROKEN BAR
- (#xA7 ?\u00A7) ;; SECTION SIGN
- (#xA8 ?\u0401) ;; CYRILLIC CAPITAL LETTER IO
- (#xA9 ?\u00A9) ;; COPYRIGHT SIGN
- (#xAA ?\u0404) ;; CYRILLIC CAPITAL LETTER UKRAINIAN IE
- (#xAB ?\u00AB) ;; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
- (#xAC ?\u00AC) ;; NOT SIGN
- (#xAD ?\u00AD) ;; SOFT HYPHEN
- (#xAE ?\u00AE) ;; REGISTERED SIGN
- (#xAF ?\u0407) ;; CYRILLIC CAPITAL LETTER YI
- (#xB0 ?\u00B0) ;; DEGREE SIGN
- (#xB1 ?\u00B1) ;; PLUS-MINUS SIGN
- (#xB2 ?\u0406) ;; CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
- (#xB3 ?\u0456) ;; CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
- (#xB4 ?\u0491) ;; CYRILLIC SMALL LETTER GHE WITH UPTURN
- (#xB5 ?\u00B5) ;; MICRO SIGN
- (#xB6 ?\u00B6) ;; PILCROW SIGN
- (#xB7 ?\u00B7) ;; MIDDLE DOT
- (#xB8 ?\u0451) ;; CYRILLIC SMALL LETTER IO
- (#xB9 ?\u2116) ;; NUMERO SIGN
- (#xBA ?\u0454) ;; CYRILLIC SMALL LETTER UKRAINIAN IE
- (#xBB ?\u00BB) ;; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
- (#xBC ?\u0458) ;; CYRILLIC SMALL LETTER JE
- (#xBD ?\u0405) ;; CYRILLIC CAPITAL LETTER DZE
- (#xBE ?\u0455) ;; CYRILLIC SMALL LETTER DZE
- (#xBF ?\u0457) ;; CYRILLIC SMALL LETTER YI
- (#xC0 ?\u0410) ;; CYRILLIC CAPITAL LETTER A
- (#xC1 ?\u0411) ;; CYRILLIC CAPITAL LETTER BE
- (#xC2 ?\u0412) ;; CYRILLIC CAPITAL LETTER VE
- (#xC3 ?\u0413) ;; CYRILLIC CAPITAL LETTER GHE
- (#xC4 ?\u0414) ;; CYRILLIC CAPITAL LETTER DE
- (#xC5 ?\u0415) ;; CYRILLIC CAPITAL LETTER IE
- (#xC6 ?\u0416) ;; CYRILLIC CAPITAL LETTER ZHE
- (#xC7 ?\u0417) ;; CYRILLIC CAPITAL LETTER ZE
- (#xC8 ?\u0418) ;; CYRILLIC CAPITAL LETTER I
- (#xC9 ?\u0419) ;; CYRILLIC CAPITAL LETTER SHORT I
- (#xCA ?\u041A) ;; CYRILLIC CAPITAL LETTER KA
- (#xCB ?\u041B) ;; CYRILLIC CAPITAL LETTER EL
- (#xCC ?\u041C) ;; CYRILLIC CAPITAL LETTER EM
- (#xCD ?\u041D) ;; CYRILLIC CAPITAL LETTER EN
- (#xCE ?\u041E) ;; CYRILLIC CAPITAL LETTER O
- (#xCF ?\u041F) ;; CYRILLIC CAPITAL LETTER PE
- (#xD0 ?\u0420) ;; CYRILLIC CAPITAL LETTER ER
- (#xD1 ?\u0421) ;; CYRILLIC CAPITAL LETTER ES
- (#xD2 ?\u0422) ;; CYRILLIC CAPITAL LETTER TE
- (#xD3 ?\u0423) ;; CYRILLIC CAPITAL LETTER U
- (#xD4 ?\u0424) ;; CYRILLIC CAPITAL LETTER EF
- (#xD5 ?\u0425) ;; CYRILLIC CAPITAL LETTER HA
- (#xD6 ?\u0426) ;; CYRILLIC CAPITAL LETTER TSE
- (#xD7 ?\u0427) ;; CYRILLIC CAPITAL LETTER CHE
- (#xD8 ?\u0428) ;; CYRILLIC CAPITAL LETTER SHA
- (#xD9 ?\u0429) ;; CYRILLIC CAPITAL LETTER SHCHA
- (#xDA ?\u042A) ;; CYRILLIC CAPITAL LETTER HARD SIGN
- (#xDB ?\u042B) ;; CYRILLIC CAPITAL LETTER YERU
- (#xDC ?\u042C) ;; CYRILLIC CAPITAL LETTER SOFT SIGN
- (#xDD ?\u042D) ;; CYRILLIC CAPITAL LETTER E
- (#xDE ?\u042E) ;; CYRILLIC CAPITAL LETTER YU
- (#xDF ?\u042F) ;; CYRILLIC CAPITAL LETTER YA
- (#xE0 ?\u0430) ;; CYRILLIC SMALL LETTER A
- (#xE1 ?\u0431) ;; CYRILLIC SMALL LETTER BE
- (#xE2 ?\u0432) ;; CYRILLIC SMALL LETTER VE
- (#xE3 ?\u0433) ;; CYRILLIC SMALL LETTER GHE
- (#xE4 ?\u0434) ;; CYRILLIC SMALL LETTER DE
- (#xE5 ?\u0435) ;; CYRILLIC SMALL LETTER IE
- (#xE6 ?\u0436) ;; CYRILLIC SMALL LETTER ZHE
- (#xE7 ?\u0437) ;; CYRILLIC SMALL LETTER ZE
- (#xE8 ?\u0438) ;; CYRILLIC SMALL LETTER I
- (#xE9 ?\u0439) ;; CYRILLIC SMALL LETTER SHORT I
- (#xEA ?\u043A) ;; CYRILLIC SMALL LETTER KA
- (#xEB ?\u043B) ;; CYRILLIC SMALL LETTER EL
- (#xEC ?\u043C) ;; CYRILLIC SMALL LETTER EM
- (#xED ?\u043D) ;; CYRILLIC SMALL LETTER EN
- (#xEE ?\u043E) ;; CYRILLIC SMALL LETTER O
- (#xEF ?\u043F) ;; CYRILLIC SMALL LETTER PE
- (#xF0 ?\u0440) ;; CYRILLIC SMALL LETTER ER
- (#xF1 ?\u0441) ;; CYRILLIC SMALL LETTER ES
- (#xF2 ?\u0442) ;; CYRILLIC SMALL LETTER TE
- (#xF3 ?\u0443) ;; CYRILLIC SMALL LETTER U
- (#xF4 ?\u0444) ;; CYRILLIC SMALL LETTER EF
- (#xF5 ?\u0445) ;; CYRILLIC SMALL LETTER HA
- (#xF6 ?\u0446) ;; CYRILLIC SMALL LETTER TSE
- (#xF7 ?\u0447) ;; CYRILLIC SMALL LETTER CHE
- (#xF8 ?\u0448) ;; CYRILLIC SMALL LETTER SHA
- (#xF9 ?\u0449) ;; CYRILLIC SMALL LETTER SHCHA
- (#xFA ?\u044A) ;; CYRILLIC SMALL LETTER HARD SIGN
- (#xFB ?\u044B) ;; CYRILLIC SMALL LETTER YERU
- (#xFC ?\u044C) ;; CYRILLIC SMALL LETTER SOFT SIGN
- (#xFD ?\u044D) ;; CYRILLIC SMALL LETTER E
- (#xFE ?\u044E) ;; CYRILLIC SMALL LETTER YU
- (#xFF ?\u044F)) ;; CYRILLIC SMALL LETTER YA
- "Microsoft's Code Page 1251, for Russian, Bulgarian, Serbian and others. "
- '(mnemonic "CyrW"
- documentation
- "This ASCII-compatible encoding is unfortunately not compatible at
+(make-8-bit-coding-system
+ 'windows-1251
+ '((#x80 ?\u0402) ;; CYRILLIC CAPITAL LETTER DJE
+ (#x81 ?\u0403) ;; CYRILLIC CAPITAL LETTER GJE
+ (#x82 ?\u201A) ;; SINGLE LOW-9 QUOTATION MARK
+ (#x83 ?\u0453) ;; CYRILLIC SMALL LETTER GJE
+ (#x84 ?\u201E) ;; DOUBLE LOW-9 QUOTATION MARK
+ (#x85 ?\u2026) ;; HORIZONTAL ELLIPSIS
+ (#x86 ?\u2020) ;; DAGGER
+ (#x87 ?\u2021) ;; DOUBLE DAGGER
+ (#x88 ?\u20AC) ;; EURO SIGN
+ (#x89 ?\u2030) ;; PER MILLE SIGN
+ (#x8A ?\u0409) ;; CYRILLIC CAPITAL LETTER LJE
+ (#x8B ?\u2039) ;; SINGLE LEFT-POINTING ANGLE QUOTATION MARK
+ (#x8C ?\u040A) ;; CYRILLIC CAPITAL LETTER NJE
+ (#x8D ?\u040C) ;; CYRILLIC CAPITAL LETTER KJE
+ (#x8E ?\u040B) ;; CYRILLIC CAPITAL LETTER TSHE
+ (#x8F ?\u040F) ;; CYRILLIC CAPITAL LETTER DZHE
+ (#x90 ?\u0452) ;; CYRILLIC SMALL LETTER DJE
+ (#x91 ?\u2018) ;; LEFT SINGLE QUOTATION MARK
+ (#x92 ?\u2019) ;; RIGHT SINGLE QUOTATION MARK
+ (#x93 ?\u201C) ;; LEFT DOUBLE QUOTATION MARK
+ (#x94 ?\u201D) ;; RIGHT DOUBLE QUOTATION MARK
+ (#x95 ?\u2022) ;; BULLET
+ (#x96 ?\u2013) ;; EN DASH
+ (#x97 ?\u2014) ;; EM DASH
+ (#x99 ?\u2122) ;; TRADE MARK SIGN
+ (#x9A ?\u0459) ;; CYRILLIC SMALL LETTER LJE
+ (#x9B ?\u203A) ;; SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
+ (#x9C ?\u045A) ;; CYRILLIC SMALL LETTER NJE
+ (#x9D ?\u045C) ;; CYRILLIC SMALL LETTER KJE
+ (#x9E ?\u045B) ;; CYRILLIC SMALL LETTER TSHE
+ (#x9F ?\u045F) ;; CYRILLIC SMALL LETTER DZHE
+ (#xA0 ?\u00A0) ;; NO-BREAK SPACE
+ (#xA1 ?\u040E) ;; CYRILLIC CAPITAL LETTER SHORT U
+ (#xA2 ?\u045E) ;; CYRILLIC SMALL LETTER SHORT U
+ (#xA3 ?\u0408) ;; CYRILLIC CAPITAL LETTER JE
+ (#xA4 ?\u00A4) ;; CURRENCY SIGN
+ (#xA5 ?\u0490) ;; CYRILLIC CAPITAL LETTER GHE WITH UPTURN
+ (#xA6 ?\u00A6) ;; BROKEN BAR
+ (#xA7 ?\u00A7) ;; SECTION SIGN
+ (#xA8 ?\u0401) ;; CYRILLIC CAPITAL LETTER IO
+ (#xA9 ?\u00A9) ;; COPYRIGHT SIGN
+ (#xAA ?\u0404) ;; CYRILLIC CAPITAL LETTER UKRAINIAN IE
+ (#xAB ?\u00AB) ;; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
+ (#xAC ?\u00AC) ;; NOT SIGN
+ (#xAD ?\u00AD) ;; SOFT HYPHEN
+ (#xAE ?\u00AE) ;; REGISTERED SIGN
+ (#xAF ?\u0407) ;; CYRILLIC CAPITAL LETTER YI
+ (#xB0 ?\u00B0) ;; DEGREE SIGN
+ (#xB1 ?\u00B1) ;; PLUS-MINUS SIGN
+ (#xB2 ?\u0406) ;; CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
+ (#xB3 ?\u0456) ;; CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
+ (#xB4 ?\u0491) ;; CYRILLIC SMALL LETTER GHE WITH UPTURN
+ (#xB5 ?\u00B5) ;; MICRO SIGN
+ (#xB6 ?\u00B6) ;; PILCROW SIGN
+ (#xB7 ?\u00B7) ;; MIDDLE DOT
+ (#xB8 ?\u0451) ;; CYRILLIC SMALL LETTER IO
+ (#xB9 ?\u2116) ;; NUMERO SIGN
+ (#xBA ?\u0454) ;; CYRILLIC SMALL LETTER UKRAINIAN IE
+ (#xBB ?\u00BB) ;; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
+ (#xBC ?\u0458) ;; CYRILLIC SMALL LETTER JE
+ (#xBD ?\u0405) ;; CYRILLIC CAPITAL LETTER DZE
+ (#xBE ?\u0455) ;; CYRILLIC SMALL LETTER DZE
+ (#xBF ?\u0457) ;; CYRILLIC SMALL LETTER YI
+ (#xC0 ?\u0410) ;; CYRILLIC CAPITAL LETTER A
+ (#xC1 ?\u0411) ;; CYRILLIC CAPITAL LETTER BE
+ (#xC2 ?\u0412) ;; CYRILLIC CAPITAL LETTER VE
+ (#xC3 ?\u0413) ;; CYRILLIC CAPITAL LETTER GHE
+ (#xC4 ?\u0414) ;; CYRILLIC CAPITAL LETTER DE
+ (#xC5 ?\u0415) ;; CYRILLIC CAPITAL LETTER IE
+ (#xC6 ?\u0416) ;; CYRILLIC CAPITAL LETTER ZHE
+ (#xC7 ?\u0417) ;; CYRILLIC CAPITAL LETTER ZE
+ (#xC8 ?\u0418) ;; CYRILLIC CAPITAL LETTER I
+ (#xC9 ?\u0419) ;; CYRILLIC CAPITAL LETTER SHORT I
+ (#xCA ?\u041A) ;; CYRILLIC CAPITAL LETTER KA
+ (#xCB ?\u041B) ;; CYRILLIC CAPITAL LETTER EL
+ (#xCC ?\u041C) ;; CYRILLIC CAPITAL LETTER EM
+ (#xCD ?\u041D) ;; CYRILLIC CAPITAL LETTER EN
+ (#xCE ?\u041E) ;; CYRILLIC CAPITAL LETTER O
+ (#xCF ?\u041F) ;; CYRILLIC CAPITAL LETTER PE
+ (#xD0 ?\u0420) ;; CYRILLIC CAPITAL LETTER ER
+ (#xD1 ?\u0421) ;; CYRILLIC CAPITAL LETTER ES
+ (#xD2 ?\u0422) ;; CYRILLIC CAPITAL LETTER TE
+ (#xD3 ?\u0423) ;; CYRILLIC CAPITAL LETTER U
+ (#xD4 ?\u0424) ;; CYRILLIC CAPITAL LETTER EF
+ (#xD5 ?\u0425) ;; CYRILLIC CAPITAL LETTER HA
+ (#xD6 ?\u0426) ;; CYRILLIC CAPITAL LETTER TSE
+ (#xD7 ?\u0427) ;; CYRILLIC CAPITAL LETTER CHE
+ (#xD8 ?\u0428) ;; CYRILLIC CAPITAL LETTER SHA
+ (#xD9 ?\u0429) ;; CYRILLIC CAPITAL LETTER SHCHA
+ (#xDA ?\u042A) ;; CYRILLIC CAPITAL LETTER HARD SIGN
+ (#xDB ?\u042B) ;; CYRILLIC CAPITAL LETTER YERU
+ (#xDC ?\u042C) ;; CYRILLIC CAPITAL LETTER SOFT SIGN
+ (#xDD ?\u042D) ;; CYRILLIC CAPITAL LETTER E
+ (#xDE ?\u042E) ;; CYRILLIC CAPITAL LETTER YU
+ (#xDF ?\u042F) ;; CYRILLIC CAPITAL LETTER YA
+ (#xE0 ?\u0430) ;; CYRILLIC SMALL LETTER A
+ (#xE1 ?\u0431) ;; CYRILLIC SMALL LETTER BE
+ (#xE2 ?\u0432) ;; CYRILLIC SMALL LETTER VE
+ (#xE3 ?\u0433) ;; CYRILLIC SMALL LETTER GHE
+ (#xE4 ?\u0434) ;; CYRILLIC SMALL LETTER DE
+ (#xE5 ?\u0435) ;; CYRILLIC SMALL LETTER IE
+ (#xE6 ?\u0436) ;; CYRILLIC SMALL LETTER ZHE
+ (#xE7 ?\u0437) ;; CYRILLIC SMALL LETTER ZE
+ (#xE8 ?\u0438) ;; CYRILLIC SMALL LETTER I
+ (#xE9 ?\u0439) ;; CYRILLIC SMALL LETTER SHORT I
+ (#xEA ?\u043A) ;; CYRILLIC SMALL LETTER KA
+ (#xEB ?\u043B) ;; CYRILLIC SMALL LETTER EL
+ (#xEC ?\u043C) ;; CYRILLIC SMALL LETTER EM
+ (#xED ?\u043D) ;; CYRILLIC SMALL LETTER EN
+ (#xEE ?\u043E) ;; CYRILLIC SMALL LETTER O
+ (#xEF ?\u043F) ;; CYRILLIC SMALL LETTER PE
+ (#xF0 ?\u0440) ;; CYRILLIC SMALL LETTER ER
+ (#xF1 ?\u0441) ;; CYRILLIC SMALL LETTER ES
+ (#xF2 ?\u0442) ;; CYRILLIC SMALL LETTER TE
+ (#xF3 ?\u0443) ;; CYRILLIC SMALL LETTER U
+ (#xF4 ?\u0444) ;; CYRILLIC SMALL LETTER EF
+ (#xF5 ?\u0445) ;; CYRILLIC SMALL LETTER HA
+ (#xF6 ?\u0446) ;; CYRILLIC SMALL LETTER TSE
+ (#xF7 ?\u0447) ;; CYRILLIC SMALL LETTER CHE
+ (#xF8 ?\u0448) ;; CYRILLIC SMALL LETTER SHA
+ (#xF9 ?\u0449) ;; CYRILLIC SMALL LETTER SHCHA
+ (#xFA ?\u044A) ;; CYRILLIC SMALL LETTER HARD SIGN
+ (#xFB ?\u044B) ;; CYRILLIC SMALL LETTER YERU
+ (#xFC ?\u044C) ;; CYRILLIC SMALL LETTER SOFT SIGN
+ (#xFD ?\u044D) ;; CYRILLIC SMALL LETTER E
+ (#xFE ?\u044E) ;; CYRILLIC SMALL LETTER YU
+ (#xFF ?\u044F)) ;; CYRILLIC SMALL LETTER YA
+ "Microsoft's Code Page 1251, for Russian, Bulgarian, Serbian and others. "
+ '(mnemonic "CyrW"
+ documentation
+ "This ASCII-compatible encoding is unfortunately not compatible at
the code point level with the KOI8 family of encodings, but it
provides several widely-used punctuation and quotation marks that
KOI-8R and its relatives don't, and has become widely used. "
- aliases (cp1251))))
+ aliases (cp1251)))
(set-language-info-alist
"Bulgarian" '((coding-system windows-1251)
Index: lisp/mule/general-late.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/general-late.el,v
retrieving revision 1.3
diff -u -u -r1.3 general-late.el
--- lisp/mule/general-late.el 2007/07/23 14:20:10 1.3
+++ lisp/mule/general-late.el 2007/08/25 18:30:12
@@ -29,18 +29,19 @@
;; the language-specific code a chance to create its coding systems.
(setq posix-charset-to-coding-system-hash
- (eval-when-compile
- (let ((res (make-hash-table :test 'equal)))
- ;; We want both normal and internal coding systems in order
- ;; to pick up coding system aliases.
- (dolist (coding-system (coding-system-list 'both-normal-and-internal) res)
- (setq coding-system
- (symbol-name coding-system))
- (unless (or (string-match #r"\(-unix\|-mac\|-dos\)$" coding-system)
- (string-match #r"^\(internal\|mswindows\)" coding-system))
- (puthash
- (replace-in-string (downcase coding-system) "[^a-z0-9]" "")
- (coding-system-name (intern coding-system)) res)))))
+ (loop
+ ;; We want both normal and internal coding systems in order
+ ;; to pick up coding system aliases.
+ for coding-system in (coding-system-list 'every)
+ with res = (make-hash-table :test #'equal)
+ do
+ (setq coding-system (symbol-name coding-system))
+ (unless (or (string-match #r"\(-unix\|-mac\|-dos\)$" coding-system)
+ (string-match #r"^\(internal\|mswindows\)" coding-system))
+ (puthash
+ (replace-in-string (downcase coding-system) "[^a-z0-9]" "")
+ (coding-system-name (intern coding-system)) res))
+ finally return res)
;; In a thoughtless act of cultural imperialism, move English, German
;; and Japanese to the front of language-info-alist to make start-up a
Index: lisp/mule/japanese.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/japanese.el,v
retrieving revision 1.13
diff -u -u -r1.13 japanese.el
--- lisp/mule/japanese.el 2007/07/22 22:03:49 1.13
+++ lisp/mule/japanese.el 2007/08/25 18:30:13
@@ -424,50 +424,54 @@
"japan"
"ja"
)
-
- (native-coding-system
- ;; first, see if an explicit encoding was given.
- (lambda (locale)
- (let ((case-fold-search t))
- (cond
- ;; many unix versions
- ((string-match "\\.euc" locale) 'euc-jp)
- ((string-match "\\.sjis" locale) 'shift-jis)
-
- ;; X11R6 (CJKV p. 471)
- ((string-match "\\.jis7" locale) 'jis7)
- ((string-match "\\.jis8" locale) 'jis8)
- ((string-match "\\.mscode" locale) 'shift-jis)
- ((string-match "\\.pjis" locale) 'iso-2022-jp)
- ((string-match "\\.ujis" locale) 'euc-jp)
-
- ;; other names in X11R6 locale.alias
- ((string-match "\\.ajec" locale) 'euc-jp)
- ((string-match "-euc" locale) 'euc-jp)
- ((string-match "\\.iso-2022-jp" locale) 'iso-2022-jp)
- ((string-match "\\.jis" locale) 'jis7) ;; or just jis?
- )))
-
- ;; aix (CJKV p. 465)
- (lambda (locale)
- (when (eq system-type 'aix)
- (cond
- ((string-match "^Ja_JP" locale) 'shift-jis)
- ((string-match "^ja_JP" locale) 'euc-jp))))
-
- ;; other X11R6 locale.alias
- (lambda (locale)
- (cond
- ((string-match "^Jp_JP" locale) 'euc-jp)
- ((and (eq system-type 'hpux) (eq locale "japanese"))
- 'shift-jis)))
-
- ;; fallback
- euc-jp)
-
;; (input-method . "japanese")
(features japan-util)
(sample-text . "Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B")
(documentation . t)))
+
+;; Set the native-coding-system separately so the lambdas get compiled. (Not
+;; a huge speed improvement, but this code is called at startup, and every
+;; little helps there.)
+(set-language-info "Japanese"
+ 'native-coding-system
+ (list
+ ;; first, see if an explicit encoding was given.
+ (lambda (locale)
+ (let ((case-fold-search t))
+ (cond
+ ;; many unix versions
+ ((string-match "\\.euc" locale) 'euc-jp)
+ ((string-match "\\.sjis" locale) 'shift-jis)
+
+ ;; X11R6 (CJKV p. 471)
+ ((string-match "\\.jis7" locale) 'jis7)
+ ((string-match "\\.jis8" locale) 'jis8)
+ ((string-match "\\.mscode" locale) 'shift-jis)
+ ((string-match "\\.pjis" locale) 'iso-2022-jp)
+ ((string-match "\\.ujis" locale) 'euc-jp)
+
+ ;; other names in X11R6 locale.alias
+ ((string-match "\\.ajec" locale) 'euc-jp)
+ ((string-match "-euc" locale) 'euc-jp)
+ ((string-match "\\.iso-2022-jp" locale) 'iso-2022-jp)
+ ((string-match "\\.jis" locale) 'jis7) ;; or just jis?
+ )))
+
+ ;; aix (CJKV p. 465)
+ (lambda (locale)
+ (when (eq system-type 'aix)
+ (cond
+ ((string-match "^Ja_JP" locale) 'shift-jis)
+ ((string-match "^ja_JP" locale) 'euc-jp))))
+
+ ;; other X11R6 locale.alias
+ (lambda (locale)
+ (cond
+ ((string-match "^Jp_JP" locale) 'euc-jp)
+ ((and (eq system-type 'hpux) (eq locale "japanese"))
+ 'shift-jis)))
+
+ ;; fallback
+ 'euc-jp))
;;; japanese.el ends here
Index: lisp/mule/latin.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/latin.el,v
retrieving revision 1.8
diff -u -u -r1.8 latin.el
--- lisp/mule/latin.el 2007/08/01 13:53:40 1.8
+++ lisp/mule/latin.el 2007/08/25 18:30:13
@@ -588,7 +588,7 @@
(string (char-syntax (make-char 'latin-iso8859-1 i)))
syntax-table))
-;; Case. #### Bug: this doesn't handle I WITH DOT ABOVE.
+;; Case. The Turkish case idiosyncracy is handled with its language environment.
(setup-case-pairs
'latin-iso8859-9
'((#xC0 #xE0) ;; A WITH GRAVE
@@ -618,6 +618,16 @@
(#xDC #xFC) ;; U WITH DIAERESIS
(#xDE #xFE))) ;; S WITH CEDILLA
+;; LATIN CAPITAL LETTER I WITH DOT ABOVE
+(put-case-table 'downcase
+ (make-char 'latin-iso8859-9 #xdd)
+ ?i (standard-case-table))
+
+;; LATIN SMALL LETTER DOTLESS I
+(put-case-table 'upcase
+ (make-char 'latin-iso8859-9 #xfd)
+ ?I (standard-case-table))
+
(make-coding-system
'iso-8859-9 'iso2022 "ISO-8859-9 (Latin-5)"
'(charset-g0 ascii
@@ -724,5 +734,188 @@
(documentation . ,(format "\
This language environment supports %s. " name)))
'("European"))))
+
+;; The case table for Turkish is special:
+(set-language-info "Turkish"
+ 'setup-function
+ (lambda ()
+ ;; The lowercase version of I is dotless i
+ (put-case-table-pair ?I ?\u0131 (standard-case-table))
+ ;; The uppercase version of i is I with dot
+ (put-case-table-pair ?\u0130 ?i (standard-case-table))))
+
+(set-language-info "Turkish"
+ 'exit-function
+ (lambda ()
+ ;; Restore the normal case mappings for the characters.
+ (put-case-table-pair ?I ?i (standard-case-table))))
+
+(make-8-bit-coding-system
+ 'macintosh
+ '((#x80 ?\u00C4) ;; LATIN CAPITAL LETTER A WITH DIAERESIS
+ (#x81 ?\u00C5) ;; LATIN CAPITAL LETTER A WITH RING ABOVE
+ (#x82 ?\u00C7) ;; LATIN CAPITAL LETTER C WITH CEDILLA
+ (#x83 ?\u00C9) ;; LATIN CAPITAL LETTER E WITH ACUTE
+ (#x84 ?\u00D1) ;; LATIN CAPITAL LETTER N WITH TILDE
+ (#x85 ?\u00D6) ;; LATIN CAPITAL LETTER O WITH DIAERESIS
+ (#x86 ?\u00DC) ;; LATIN CAPITAL LETTER U WITH DIAERESIS
+ (#x87 ?\u00E1) ;; LATIN SMALL LETTER A WITH ACUTE
+ (#x88 ?\u00E0) ;; LATIN SMALL LETTER A WITH GRAVE
+ (#x89 ?\u00E2) ;; LATIN SMALL LETTER A WITH CIRCUMFLEX
+ (#x8A ?\u00E4) ;; LATIN SMALL LETTER A WITH DIAERESIS
+ (#x8B ?\u00E3) ;; LATIN SMALL LETTER A WITH TILDE
+ (#x8C ?\u00E5) ;; LATIN SMALL LETTER A WITH RING ABOVE
+ (#x8D ?\u00E7) ;; LATIN SMALL LETTER C WITH CEDILLA
+ (#x8E ?\u00E9) ;; LATIN SMALL LETTER E WITH ACUTE
+ (#x8F ?\u00E8) ;; LATIN SMALL LETTER E WITH GRAVE
+ (#x90 ?\u00EA) ;; LATIN SMALL LETTER E WITH CIRCUMFLEX
+ (#x91 ?\u00EB) ;; LATIN SMALL LETTER E WITH DIAERESIS
+ (#x92 ?\u00ED) ;; LATIN SMALL LETTER I WITH ACUTE
+ (#x93 ?\u00EC) ;; LATIN SMALL LETTER I WITH GRAVE
+ (#x94 ?\u00EE) ;; LATIN SMALL LETTER I WITH CIRCUMFLEX
+ (#x95 ?\u00EF) ;; LATIN SMALL LETTER I WITH DIAERESIS
+ (#x96 ?\u00F1) ;; LATIN SMALL LETTER N WITH TILDE
+ (#x97 ?\u00F3) ;; LATIN SMALL LETTER O WITH ACUTE
+ (#x98 ?\u00F2) ;; LATIN SMALL LETTER O WITH GRAVE
+ (#x99 ?\u00F4) ;; LATIN SMALL LETTER O WITH CIRCUMFLEX
+ (#x9A ?\u00F6) ;; LATIN SMALL LETTER O WITH DIAERESIS
+ (#x9B ?\u00F5) ;; LATIN SMALL LETTER O WITH TILDE
+ (#x9C ?\u00FA) ;; LATIN SMALL LETTER U WITH ACUTE
+ (#x9D ?\u00F9) ;; LATIN SMALL LETTER U WITH GRAVE
+ (#x9E ?\u00FB) ;; LATIN SMALL LETTER U WITH CIRCUMFLEX
+ (#x9F ?\u00FC) ;; LATIN SMALL LETTER U WITH DIAERESIS
+ (#xA0 ?\u2020) ;; DAGGER
+ (#xA1 ?\u00B0) ;; DEGREE SIGN
+ (#xA2 ?\u00A2) ;; CENT SIGN
+ (#xA3 ?\u00A3) ;; POUND SIGN
+ (#xA4 ?\u00A7) ;; SECTION SIGN
+ (#xA5 ?\u2022) ;; BULLET
+ (#xA6 ?\u00B6) ;; PILCROW SIGN
+ (#xA7 ?\u00DF) ;; LATIN SMALL LETTER SHARP S
+ (#xA8 ?\u00AE) ;; REGISTERED SIGN
+ (#xA9 ?\u00A9) ;; COPYRIGHT SIGN
+ (#xAA ?\u2122) ;; TRADE MARK SIGN
+ (#xAB ?\u00B4) ;; ACUTE ACCENT
+ (#xAC ?\u00A8) ;; DIAERESIS
+ (#xAD ?\u2260) ;; NOT EQUAL TO
+ (#xAE ?\u00C6) ;; LATIN CAPITAL LETTER AE
+ (#xAF ?\u00D8) ;; LATIN CAPITAL LETTER O WITH STROKE
+ (#xB0 ?\u221E) ;; INFINITY
+ (#xB1 ?\u00B1) ;; PLUS-MINUS SIGN
+ (#xB2 ?\u2264) ;; LESS-THAN OR EQUAL TO
+ (#xB3 ?\u2265) ;; GREATER-THAN OR EQUAL TO
+ (#xB4 ?\u00A5) ;; YEN SIGN
+ (#xB5 ?\u00B5) ;; MICRO SIGN
+ (#xB6 ?\u2202) ;; PARTIAL DIFFERENTIAL
+ (#xB7 ?\u2211) ;; N-ARY SUMMATION
+ (#xB8 ?\u220F) ;; N-ARY PRODUCT
+ (#xB9 ?\u03C0) ;; GREEK SMALL LETTER PI
+ (#xBA ?\u222B) ;; INTEGRAL
+ (#xBB ?\u00AA) ;; FEMININE ORDINAL INDICATOR
+ (#xBC ?\u00BA) ;; MASCULINE ORDINAL INDICATOR
+ (#xBD ?\u03A9) ;; GREEK CAPITAL LETTER OMEGA
+ (#xBE ?\u00E6) ;; LATIN SMALL LETTER AE
+ (#xBF ?\u00F8) ;; LATIN SMALL LETTER O WITH STROKE
+ (#xC0 ?\u00BF) ;; INVERTED QUESTION MARK
+ (#xC1 ?\u00A1) ;; INVERTED EXCLAMATION MARK
+ (#xC2 ?\u00AC) ;; NOT SIGN
+ (#xC3 ?\u221A) ;; SQUARE ROOT
+ (#xC4 ?\u0192) ;; LATIN SMALL LETTER F WITH HOOK
+ (#xC5 ?\u2248) ;; ALMOST EQUAL TO
+ (#xC6 ?\u2206) ;; INCREMENT
+ (#xC7 ?\u00AB) ;; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
+ (#xC8 ?\u00BB) ;; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
+ (#xC9 ?\u2026) ;; HORIZONTAL ELLIPSIS
+ (#xCA ?\u00A0) ;; NO-BREAK SPACE
+ (#xCB ?\u00C0) ;; LATIN CAPITAL LETTER A WITH GRAVE
+ (#xCC ?\u00C3) ;; LATIN CAPITAL LETTER A WITH TILDE
+ (#xCD ?\u00D5) ;; LATIN CAPITAL LETTER O WITH TILDE
+ (#xCE ?\u0152) ;; LATIN CAPITAL LIGATURE OE
+ (#xCF ?\u0153) ;; LATIN SMALL LIGATURE OE
+ (#xD0 ?\u2013) ;; EN DASH
+ (#xD1 ?\u2014) ;; EM DASH
+ (#xD2 ?\u201C) ;; LEFT DOUBLE QUOTATION MARK
+ (#xD3 ?\u201D) ;; RIGHT DOUBLE QUOTATION MARK
+ (#xD4 ?\u2018) ;; LEFT SINGLE QUOTATION MARK
+ (#xD5 ?\u2019) ;; RIGHT SINGLE QUOTATION MARK
+ (#xD6 ?\u00F7) ;; DIVISION SIGN
+ (#xD7 ?\u25CA) ;; LOZENGE
+ (#xD8 ?\u00FF) ;; LATIN SMALL LETTER Y WITH DIAERESIS
+ (#xD9 ?\u0178) ;; LATIN CAPITAL LETTER Y WITH DIAERESIS
+ (#xDA ?\u2044) ;; FRACTION SLASH
+ (#xDB ?\u20AC) ;; EURO SIGN
+ (#xDC ?\u2039) ;; SINGLE LEFT-POINTING ANGLE QUOTATION MARK
+ (#xDD ?\u203A) ;; SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
+ (#xDE ?\uFB01) ;; LATIN SMALL LIGATURE FI
+ (#xDF ?\uFB02) ;; LATIN SMALL LIGATURE FL
+ (#xE0 ?\u2021) ;; DOUBLE DAGGER
+ (#xE1 ?\u00B7) ;; MIDDLE DOT
+ (#xE2 ?\u201A) ;; SINGLE LOW-9 QUOTATION MARK
+ (#xE3 ?\u201E) ;; DOUBLE LOW-9 QUOTATION MARK
+ (#xE4 ?\u2030) ;; PER MILLE SIGN
+ (#xE5 ?\u00C2) ;; LATIN CAPITAL LETTER A WITH CIRCUMFLEX
+ (#xE6 ?\u00CA) ;; LATIN CAPITAL LETTER E WITH CIRCUMFLEX
+ (#xE7 ?\u00C1) ;; LATIN CAPITAL LETTER A WITH ACUTE
+ (#xE8 ?\u00CB) ;; LATIN CAPITAL LETTER E WITH DIAERESIS
+ (#xE9 ?\u00C8) ;; LATIN CAPITAL LETTER E WITH GRAVE
+ (#xEA ?\u00CD) ;; LATIN CAPITAL LETTER I WITH ACUTE
+ (#xEB ?\u00CE) ;; LATIN CAPITAL LETTER I WITH CIRCUMFLEX
+ (#xEC ?\u00CF) ;; LATIN CAPITAL LETTER I WITH DIAERESIS
+ (#xED ?\u00CC) ;; LATIN CAPITAL LETTER I WITH GRAVE
+ (#xEE ?\u00D3) ;; LATIN CAPITAL LETTER O WITH ACUTE
+ (#xEF ?\u00D4) ;; LATIN CAPITAL LETTER O WITH CIRCUMFLEX
+ (#xF0 ?\uF8FF) ;; Apple logo
+ (#xF1 ?\u00D2) ;; LATIN CAPITAL LETTER O WITH GRAVE
+ (#xF2 ?\u00DA) ;; LATIN CAPITAL LETTER U WITH ACUTE
+ (#xF3 ?\u00DB) ;; LATIN CAPITAL LETTER U WITH CIRCUMFLEX
+ (#xF4 ?\u00D9) ;; LATIN CAPITAL LETTER U WITH GRAVE
+ (#xF5 ?\u0131) ;; LATIN SMALL LETTER DOTLESS I
+ (#xF6 ?\u02C6) ;; MODIFIER LETTER CIRCUMFLEX ACCENT
+ (#xF7 ?\u02DC) ;; SMALL TILDE
+ (#xF8 ?\u00AF) ;; MACRON
+ (#xF9 ?\u02D8) ;; BREVE
+ (#xFA ?\u02D9) ;; DOT ABOVE
+ (#xFB ?\u02DA) ;; RING ABOVE
+ (#xFC ?\u00B8) ;; CEDILLA
+ (#xFD ?\u02DD) ;; DOUBLE ACUTE ACCENT
+ (#xFE ?\u02DB) ;; OGONEK
+ (#xFF ?\u02C7)) ;; CARON
+ "The Macintosh encoding for Western Europe and the Americas"
+ '(mnemonic "MR"
+ documentation "MacRoman, MIME name macintosh"
+ aliases (cp10000 MacRoman)))
+
+(make-8-bit-coding-system
+ 'windows-1252
+ '((#x80 ?\u20AC) ;; EURO SIGN
+ (#x82 ?\u201A) ;; SINGLE LOW-9 QUOTATION MARK
+ (#x83 ?\u0192) ;; LATIN SMALL LETTER F WITH HOOK
+ (#x84 ?\u201E) ;; DOUBLE LOW-9 QUOTATION MARK
+ (#x85 ?\u2026) ;; HORIZONTAL ELLIPSIS
+ (#x86 ?\u2020) ;; DAGGER
+ (#x87 ?\u2021) ;; DOUBLE DAGGER
+ (#x88 ?\u02C6) ;; MODIFIER LETTER CIRCUMFLEX ACCENT
+ (#x89 ?\u2030) ;; PER MILLE SIGN
+ (#x8A ?\u0160) ;; LATIN CAPITAL LETTER S WITH CARON
+ (#x8B ?\u2039) ;; SINGLE LEFT-POINTING ANGLE QUOTATION MARK
+ (#x8C ?\u0152) ;; LATIN CAPITAL LIGATURE OE
+ (#x8E ?\u017D) ;; LATIN CAPITAL LETTER Z WITH CARON
+ (#x91 ?\u2018) ;; LEFT SINGLE QUOTATION MARK
+ (#x92 ?\u2019) ;; RIGHT SINGLE QUOTATION MARK
+ (#x93 ?\u201C) ;; LEFT DOUBLE QUOTATION MARK
+ (#x94 ?\u201D) ;; RIGHT DOUBLE QUOTATION MARK
+ (#x95 ?\u2022) ;; BULLET
+ (#x96 ?\u2013) ;; EN DASH
+ (#x97 ?\u2014) ;; EM DASH
+ (#x98 ?\u02DC) ;; SMALL TILDE
+ (#x99 ?\u2122) ;; TRADE MARK SIGN
+ (#x9A ?\u0161) ;; LATIN SMALL LETTER S WITH CARON
+ (#x9B ?\u203A) ;; SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
+ (#x9C ?\u0153) ;; LATIN SMALL LIGATURE OE
+ (#x9E ?\u017E) ;; LATIN SMALL LETTER Z WITH CARON
+ (#x9F ?\u0178));; LATIN CAPITAL LETTER Y WITH DIAERESIS
+ "Microsoft's extension of iso-8859-1 for Western Europe and the Americas. "
+ '(mnemonic "cp1252"
+ aliases (cp1252)))
;;; latin.el ends here
Index: lisp/mule/mule-cmds.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/mule-cmds.el,v
retrieving revision 1.34
diff -u -u -r1.34 mule-cmds.el
--- lisp/mule/mule-cmds.el 2007/08/07 23:09:21 1.34
+++ lisp/mule/mule-cmds.el 2007/08/25 18:30:14
@@ -679,7 +679,7 @@
(let ((func (get-language-info current-language-environment
'exit-function)))
(run-hooks 'exit-language-environment-hook)
- (if (fboundp func) (funcall func))))
+ (if (functionp func) (funcall func))))
(setq current-language-environment language-name)
(let ((default-eol-type (coding-system-eol-type
default-buffer-file-coding-system)))
@@ -757,7 +757,7 @@
(require (car required-features))
(setq required-features (cdr required-features))))
(let ((func (get-language-info language-name 'setup-function)))
- (if (fboundp func)
+ (if (functionp func)
(funcall func)))
;; Fit the charsets preferences in unicode conversions for the
@@ -1021,9 +1021,9 @@
;; auto-language-alist deleted. We have a more sophisticated system,
;; with the locales stored in the language data.
-;; Initialised with an eval-when-compile in mule/general-late.el, which is
-;; compiled after all the language support--and, thus, minority Chinese
-;; coding systems and so on--has been loaded.
+;; Initialised in mule/general-late.el, which is compiled after all the
+;; language support--and, thus, minority Chinese coding systems and so
+;; on--has been loaded.
(defvar posix-charset-to-coding-system-hash nil
"A map from the POSIX locale charset versions of the defined coding
systems' names, with all alpha-numeric characters removed, to the actual
Index: lisp/mule/mule-coding.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/mule-coding.el,v
retrieving revision 1.24
diff -u -u -r1.24 mule-coding.el
--- lisp/mule/mule-coding.el 2007/08/07 23:09:22 1.24
+++ lisp/mule/mule-coding.el 2007/08/25 18:30:14
@@ -197,9 +197,8 @@
Analogous to `define-translation-table', but updates
`translation-hash-table-vector' and the table is for use in the CCL
`lookup-integer' and `lookup-character' functions."
- (unless (and (symbolp symbol)
- (hash-table-p table))
- (error "Bad args to define-translation-hash-table"))
+ (check-argument-type #'symbolp symbol)
+ (check-argument-type #'hash-table-p table)
(let ((len (length translation-hash-table-vector))
(id 0)
done)
@@ -523,6 +522,19 @@
(append decode-table nil)
(second decode-program-parts))))
+(defun make-8-bit-choose-category (decode-table)
+ "Given DECODE-TABLE, return an appropriate coding category.
+DECODE-TABLE is a 256-entry vector describing the mapping from octets on
+disk to XEmacs characters for some fixed-width 8-bit coding system. "
+ (check-argument-type #'vectorp decode-table)
+ (check-argument-range (length decode-table) #x100 #x100)
+ (block category
+ (loop
+ for i from #x80 to #xBF
+ do (unless (= i (aref decode-table i))
+ (return-from category 'no-conversion)))
+ 'iso-8-1))
+
;;;###autoload
(defun make-8-bit-coding-system (name unicode-map &optional description props)
"Make and return a fixed-width 8-bit CCL coding system named NAME.
@@ -600,12 +612,12 @@
description
(plist-put (plist-put props 'decode decode-program)
'encode encode-program)))
- (coding-system-put name 'category 'iso-8-1)
+ (coding-system-put name 'category
+ (make-8-bit-choose-category decode-table))
(loop for alias in aliases
do (define-coding-system-alias alias name))
result))
-;;;###autoload
(define-compiler-macro make-8-bit-coding-system (&whole form name unicode-map
&optional description props)
@@ -671,7 +683,8 @@
'encode-table-sym
(symbol-value 'encode-table-sym)))
',encode-program))))
- (coding-system-put ',name 'category 'iso-8-1)
+ (coding-system-put ',name 'category ',
+ (make-8-bit-choose-category decode-table))
,(macroexpand `(loop for alias in ',aliases
do (define-coding-system-alias alias
',name)))
Index: lisp/mule/mule-win32-init.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/mule/mule-win32-init.el,v
retrieving revision 1.1
diff -u -u -r1.1 mule-win32-init.el
--- lisp/mule/mule-win32-init.el 2003/02/20 08:19:35 1.1
+++ lisp/mule/mule-win32-init.el 2007/08/25 18:30:14
@@ -116,68 +116,83 @@
locale user-default
code-page oem))
-(let ((cplist
- '(("EBCDIC" 037 "EBCDIC")
- ("OEM" 437 "MS-DOS United States")
- ("EBCDIC" 500 "EBCDIC \"500V1\"")
- ("OEM" 708 "Arabic (ASMO 708)")
- ("OEM" 709 "Arabic (ASMO 449+, BCON V4)")
- ("OEM" 710 "Arabic (Transparent Arabic)")
- ("OEM" 720 "Arabic (Transparent ASMO)")
- ("OEM" 737 "Greek (formerly 437G)")
- ("OEM" 775 "Baltic")
- ("OEM" 850 "MS-DOS Multilingual (Latin I)")
- ("OEM" 852 "MS-DOS Slavic (Latin II)")
- ("OEM" 855 "IBM Cyrillic (primarily Russian)")
- ("OEM" 857 "IBM Turkish")
- ("OEM" 860 "MS-DOS Portuguese")
- ("OEM" 861 "MS-DOS Icelandic")
- ("OEM" 862 "Hebrew")
- ("OEM" 863 "MS-DOS Canadian-French")
- ("OEM" 864 "Arabic")
- ("OEM" 865 "MS-DOS Nordic")
- ("OEM" 866 "MS-DOS Russian")
- ("OEM" 869 "IBM Modern Greek")
- ("Ansi/OEM" 874 "Thai")
- ("EBCDIC" 875 "EBCDIC")
- ("Ansi/OEM" 932 "Japanese")
- ("Ansi/OEM" 936 "Chinese (PRC, Singapore)")
- ("Ansi/OEM" 949 "Korean")
- ("Ansi/OEM" 950 "Chinese (Taiwan; Hong Kong SAR, PRC)")
- ("EBCDIC" 1026 "EBCDIC")
- ("ANSI" 1200 "Unicode (BMP of ISO 10646)")
- ("ANSI" 1250 "Windows 3.1 Eastern European")
- ("ANSI" 1251 "Windows 3.1 Cyrillic")
- ("ANSI" 1252 "Windows 3.1 US (ANSI)")
- ("ANSI" 1253 "Windows 3.1 Greek")
- ("ANSI" 1254 "Windows 3.1 Turkish")
- ("ANSI" 1255 "Hebrew")
- ("ANSI" 1256 "Arabic")
- ("ANSI" 1257 "Baltic")
- ("ANSI" 1258 "VietNam")
- ("Ansi/OEM" 1361 "Korean (Johab)")
- ("Mac" 10000 "Macintosh Roman")
- ("Mac" 10001 "Macintosh Japanese")
- ("Mac" 10006 "Macintosh Greek I")
- ("Mac" 10007 "Macintosh Cyrillic")
- ("Mac" 10029 "Macintosh Latin 2")
- ("Mac" 10079 "Macintosh Icelandic")
- ("Mac" 10081 "Macintosh Turkish"))))
- (dolist (cpprops cplist)
- (let ((ansioem (first cpprops))
- (cp (second cpprops))
- (name (third cpprops)))
- (make-coding-system
- (intern (format "windows-%s" cp))
- 'mswindows-multibyte
- (format "MS Windows code page %s (%s, %s)" cp ansioem name)
- `(mnemonic
- ,(format "MSW-%s" cp)
- code-page ,cp
- documentation
- ,(format
- "MS Windows Multibyte -- code page %s (%s, %s).
+(loop
+ for (ansioem cp category name)
+ in '(("EBCDIC" 037 no-conversion "EBCDIC")
+ ("OEM" 437 no-conversion "MS-DOS United States")
+ ("EBCDIC" 500 no-conversion "EBCDIC \"500V1\"")
+ ;; This is ISO-8859-6.
+ ;; ("OEM" 708 "Arabic (ASMO 708)")
+ ("OEM" 709 no-conversion "Arabic (ASMO 449+, BCON V4)")
+ ("OEM" 710 no-conversion "Arabic (Transparent Arabic)")
+ ("OEM" 720 no-conversion "Arabic (Transparent ASMO)")
+ ("OEM" 737 no-conversion "Greek (formerly 437G)")
+ ("OEM" 775 no-conversion "Baltic")
+ ("OEM" 850 no-conversion "MS-DOS Multilingual (Latin I)")
+ ("OEM" 852 no-conversion "MS-DOS Slavic (Latin II)")
+ ("OEM" 855 no-conversion "IBM Cyrillic (primarily Russian)")
+ ("OEM" 857 no-conversion "IBM Turkish")
+ ("OEM" 860 no-conversion "MS-DOS Portuguese")
+ ("OEM" 861 no-conversion "MS-DOS Icelandic")
+ ("OEM" 862 no-conversion "Hebrew")
+ ("OEM" 863 no-conversion "MS-DOS Canadian-French")
+ ("OEM" 864 no-conversion "Arabic")
+ ("OEM" 865 no-conversion "MS-DOS Nordic")
+ ; ("OEM" 866 no-conversion "MS-DOS Russian")
+ ("OEM" 869 no-conversion "IBM Modern Greek")
+ ("Ansi/OEM" 874 no-conversion "Thai")
+ ("EBCDIC" 875 no-conversion "EBCDIC")
+ ("Ansi/OEM" 932 shift_jis "Japanese")
+ ("Ansi/OEM" 936 iso_8_2 "Chinese (PRC, Singapore)")
+ ("Ansi/OEM" 949 iso_8_2 "Korean")
+ ("Ansi/OEM" 950 big5 "Chinese (Taiwan; Hong Kong SAR, PRC)")
+ ("EBCDIC" 1026 no-conversion "EBCDIC")
+
+ ;; This code page doesn't work. See
+ ;; http://blogs.msdn.com/michkap/archive/2005/08/01/446475.aspx
+ ; ("ANSI" 1200 utf-16-little-endian "Unicode (BMP of ISO 10646)")
+
+ ("ANSI" 1250 no-conversion "Windows 3.1 Eastern European")
+
+ ;; We implement this ourselves, and keeping the same implementation
+ ;; across platforms means behaviour is a bit more consistent.
+ ; ("ANSI" 1251 no-conversion "Windows 3.1 Cyrillic")
+ ; ("ANSI" 1252 no-conversion "Windows 3.1 US (ANSI)")
+
+ ; ("ANSI" 1253 no-conversion "Windows 3.1 Greek")
+ ("ANSI" 1254 no-conversion "Windows 3.1 Turkish")
+ ("ANSI" 1255 no-conversion "Hebrew")
+ ("ANSI" 1256 no-conversion "Arabic")
+ ("ANSI" 1257 no-conversion "Baltic")
+ ("ANSI" 1258 no-conversion "VietNam")
+ ;; #### Is this category right? I don't have Lunde to hand, and the
+ ;; online information on Johab is scant.
+ ("Ansi/OEM" 1361 iso_8_2 "Korean (Johab)")
+ ("Mac" 10000 no-conversion "Macintosh Roman")
+ ("Mac" 10001 shift_jis "Macintosh Japanese")
+ ("Mac" 10006 no-conversion "Macintosh Greek I")
+ ("Mac" 10007 no-conversion "Macintosh Cyrillic")
+ ("Mac" 10029 no-conversion "Macintosh Latin 2")
+ ("Mac" 10079 no-conversion "Macintosh Icelandic")
+ ("Mac" 10081 no-conversion "Macintosh Turkish"))
+ do
+ (make-coding-system
+ (intern (format "windows-%s" cp))
+ 'mswindows-multibyte
+ (format "MS Windows code page %s (%s, %s)" cp ansioem name)
+ `(mnemonic
+ ,(format "MSW-%s" cp)
+ code-page ,cp
+ documentation
+ ,(format
+ "MS Windows Multibyte -- code page %s (%s, %s).
+
This implements the encoding specified by code page %s.
For more information on code pages, see `mswindows-charset-code-page'."
- cp ansioem name cp))))))
+ cp ansioem name cp)))
+ (define-coding-system-alias
+ (intern (format "cp%s" cp))
+ (intern (format "windows-%s" cp)))
+ (coding-system-put (intern (format "windows-%s" cp)) 'category category))
+
--
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
Re: [QUERY] Avoid autoconf warning about datarootdir
17 years, 4 months
Michael Sperber
"Jerry James" <loganjerry(a)gmail.com> writes:
> Hi Mike,
>
> On 8/27/07, Michael Sperber <sperber(a)informatik.uni-tuebingen.de> wrote:
>>
>> 2007-08-27 Mike Sperber <mike(a)xemacs.org>
>>
>> * config.values.in (datarootdir): Add.
>>
>> --
>> Cheers =8-} Mike
>> Friede, Völkerverständigung und überhaupt blabla
>>
>> Index: lib-src/config.values.in
>> ===================================================================
>> RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/config.values.in,v
>> retrieving revision 1.25
>> diff -u -r1.25 config.values.in
>> --- lib-src/config.values.in 11 Jul 2006 23:36:21 -0000 1.25
>> +++ lib-src/config.values.in 27 Aug 2007 10:25:38 -0000
>> @@ -120,6 +120,7 @@
>> configuration "@configuration@"
>> configure_input "@configure_input@"
>> datadir "@datadir@"
>> +dadarootdir "@datarootdir@"
>
> Shouldn't that be:
>
> +datarootdir "@datarootdir@"
>
> ?
Yep. I've fixed this. Thanks!
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[Packages (jde)] Fix bug with finding data root in XEmacs
17 years, 4 months
Bryan Shell
2007-08-20 Bryan Shell <bryan.shell(a)gmail.com>
* jde-util.el (jde-find-jde-data-directory): Return the right
directory for XEmacs instead of the jde-root all the time
--- jde-util.el 2007-08-20 19:28:15.000000000 -0400
+++ /usr/share/xemacs/xemacs-packages/lisp/jde/jde-util.el
2006-03-06 06:58:37.000000000 -0500
@@ -177,8 +177,8 @@
(let ((directory-sep-char ?/))
(if (featurep 'xemacs)
(let ((dir (locate-data-directory "jde")))
- (if dir dir (jde-root)))
- (jde-root))))
+ (if dir dir (jde-root))))
+ (jde-root)))
(defun jde-temp-directory ()
"Get the location used by the host system to store temporary files."
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[PATCH] xemacs-21.5-clean: fix error in Emacs Timeline URL in internals manual
17 years, 4 months
Adrian Aichner
This incorrect URL did not result in a link checking error, hence the
long time to find this error.
Adrian
xemacs-21.5-clean ChangeLog patch:
Diff command: cvs -q diff -U 0
Files affected: man/ChangeLog
Index: man/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/ChangeLog,v
retrieving revision 1.357
diff -u -U0 -r1.357 ChangeLog
--- man/ChangeLog 27 Jun 2007 12:19:08 -0000 1.357
+++ man/ChangeLog 24 Aug 2007 22:24:16 -0000
@@ -0,0 +1,6 @@
+2007-08-25 Adrian Aichner <adrian(a)xemacs.org>
+
+ * internals/internals.texi (Through Version 18): Fix error in
+ Emacs Timeline URL.
+ * internals/internals.texi (Better Rendering Support -- Configuration with the Interim Patches):
+
xemacs-21.5-clean source patch:
Diff command: cvs -f -z3 -q diff -u -w -N
Files affected: man/internals/internals.texi
===================================================================
RCS
Index: man/internals/internals.texi
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/internals/internals.texi,v
retrieving revision 1.81
diff -u -w -r1.81 internals.texi
--- man/internals/internals.texi 21 May 2007 11:40:03 -0000 1.81
+++ man/internals/internals.texi 24 Aug 2007 22:21:00 -0000
@@ -1240,7 +1240,7 @@
collaboration, referring to it as "Gosling Emacs".
At this point we pick up with a time line of events. (A broader timeline
-is available at @uref{http://http://www.jwz.org/doc/emacs-timeline.html,
+is available at @uref{http://www.jwz.org/doc/emacs-timeline.html,
``Emacs Timeline''}.)
@strong{NOTE}: Sometimes there are two release dates listed below. In
@@ -27913,7 +27913,7 @@
@end example
Order is important; Japanese fonts will support English, but Sazanami's
Roman characters are not very pretty compared to the Bitstream font.
-@strong{Note:} @emph{This is untested, but should work in theory.}
+@strong{NOTE}: @emph{This is untested, but should work in theory.}
@end itemize
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[C] xemacsweb: link fixes
17 years, 4 months
Adrian Aichner
COMMIT
xemacsweb ChangeLog patch:
Diff command: cvs -q diff -U 0
Files affected: Download/ChangeLog
Index: Download/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacsweb/Download/ChangeLog,v
retrieving revision 1.189
diff -u -U0 -r1.189 ChangeLog
--- Download/ChangeLog 20 Aug 2007 19:25:14 -0000 1.189
+++ Download/ChangeLog 24 Aug 2007 20:31:02 -0000
@@ -0,0 +1,5 @@
+2007-08-24 Adrian Aichner <adrian(a)xemacs.org>
+
+ * index.content: Specify file name before fragment specifier.
+ * optLibs.content: Update freewnn project link.
+
xemacsweb source patch:
Diff command: cvs -f -z3 -q diff -u -w -N
Files affected: Download/optLibs.content
===================================================================
RCS Download/index.content
===================================================================
RCS
Index: Download/index.content
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacsweb/Download/index.content,v
retrieving revision 1.77
diff -u -w -r1.77 index.content
--- Download/index.content 18 Aug 2007 15:14:32 -0000 1.77
+++ Download/index.content 24 Aug 2007 20:29:45 -0000
@@ -63,7 +63,7 @@
<li><p><b>For Windows 95, 98, NT, 2000, XP:</b> You can get
the current stable version of XEmacs InnoSetup install kit (<a
href="<!-- _GP_
- relPath(qq{Download/win32/#InnoSetup-Download})
+ relPath(qq{Download/win32/index.html#InnoSetup-Download})
-->">Install Now!</a>), but there are a variety of <a
href="<!-- _GP_ relPath(qq{Download/win32/}) -->">versions of
XEmacs and styles of installer available</a>. These include
Index: Download/optLibs.content
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacsweb/Download/optLibs.content,v
retrieving revision 1.37
diff -u -w -r1.37 optLibs.content
--- Download/optLibs.content 17 Oct 2005 21:44:20 -0000 1.37
+++ Download/optLibs.content 24 Aug 2007 20:29:45 -0000
@@ -239,7 +239,7 @@
<a href="http://ftp.xemacs.org/pub/xemacs/aux/FreeWnn-Server-1.10.tar.gz">Fr... />
<a href="http://ftp.xemacs.org/pub/xemacs/aux/Wnn4.2.tar.gz">Wnn4.2.tar.gz</... />
<a href="http://www.omronsoft.co.jp/SP/pcunix/wnn/">http://www.omronsoft.co.jp/SP/pcunix/wnn/</a> (commercial version)<br />
- <a href="http://www.freewnn.org/">http://www.freewnn.org/</a><br />
+ <a href="http://freewnn.sourceforge.jp/">http://freewnn.sourceforge.jp/</a><br />
configure flag: <tt>--with-wnn</tt></p>
<p>The Wnn sites are in Japanese. Here is a site in English with some
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[AC21.5] Remove mc_free
17 years, 4 months
Marcus Crestani
APPROVE COMMIT 21.5
With the new garabge collector, objects cannot be freed explicitly
anymore (the garbage collector does all this work anyway). This patch
removes all calls to mc_free.
src/ChangeLog addition:
2007-08-15 Marcus Crestani <crestani(a)xemacs.org>
* buffer.c (Fkill_buffer):
* console-tty.c (free_tty_console_struct):
* device-gtk.c (free_gtk_device_struct):
* device-msw.c (mswindows_delete_device):
* device-msw.c (msprinter_delete_device):
* device-x.c (free_x_device_struct):
* device-x.c (x_delete_device):
* dynarr.c (Dynarr_lisp_realloc):
* dynarr.c (Dynarr_free):
* elhash.c:
* elhash.c (finalize_hash_table):
* elhash.c (resize_hash_table):
* elhash.c (pdump_reorganize_hash_table):
* extents.c (gap_array_delete_marker):
* frame-gtk.c (gtk_delete_frame):
* frame-msw.c (mswindows_delete_frame):
* frame-x.c (x_delete_frame):
* glyphs.c (check_for_ignored_expose):
* mc-alloc.c (mc_realloc_1):
* mc-alloc.h:
* objects-tty.c (tty_finalize_color_instance):
* objects-tty.c (tty_finalize_font_instance):
* objects-tty.c (console_type_create_objects_tty):
* syntax.c:
* syntax.c (uninit_buffer_syntax_cache):
* vdb.c (Ftest_vdb): Remove all calls to mc_free.
mcfree-xemacs-21.5 source patch:
Diff command: cvs -q diff -u
Files affected: src/vdb.c
===================================================================
RCS src/syntax.c
===================================================================
RCS src/objects-tty.c
===================================================================
RCS src/mc-alloc.h
===================================================================
RCS src/mc-alloc.c
===================================================================
RCS src/glyphs.c
===================================================================
RCS src/frame-x.c
===================================================================
RCS src/frame-msw.c
===================================================================
RCS src/frame-gtk.c
===================================================================
RCS src/extents.c
===================================================================
RCS src/elhash.c
===================================================================
RCS src/dynarr.c
===================================================================
RCS src/device-x.c
===================================================================
RCS src/device-msw.c
===================================================================
RCS src/device-gtk.c
===================================================================
RCS src/console-tty.c
===================================================================
RCS src/buffer.c
===================================================================
RCS
Index: src/buffer.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/buffer.c,v
retrieving revision 1.77
diff -u -r1.77 buffer.c
--- src/buffer.c 22 Nov 2006 02:20:34 -0000 1.77
+++ src/buffer.c 15 Aug 2007 10:54:35 -0000
@@ -1348,7 +1348,9 @@
}
uninit_buffer_markers (b);
+#ifndef NEW_GC
uninit_buffer_syntax_cache (b);
+#endif /* not NEW_GC */
kill_buffer_local_variables (b);
Index: src/console-tty.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/console-tty.c,v
retrieving revision 1.35
diff -u -r1.35 console-tty.c
--- src/console-tty.c 24 Aug 2006 21:21:36 -0000 1.35
+++ src/console-tty.c 15 Aug 2007 10:54:35 -0000
@@ -219,9 +219,7 @@
xfree (tty_con->term_entry_buffer, char *);
tty_con->term_entry_buffer = NULL;
}
-#ifdef NEW_GC
- mc_free (tty_con);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (tty_con, struct tty_console *);
#endif /* not NEW_GC */
CONSOLE_TTY_DATA (con) = NULL;
Index: src/device-gtk.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/device-gtk.c,v
retrieving revision 1.16
diff -u -r1.16 device-gtk.c
--- src/device-gtk.c 25 Nov 2005 01:41:58 -0000 1.16
+++ src/device-gtk.c 15 Aug 2007 10:54:35 -0000
@@ -359,15 +359,13 @@
/* closing an X connection */
/************************************************************************/
+#ifndef NEW_GC
static void
free_gtk_device_struct (struct device *d)
{
-#ifdef NEW_GC
- mc_free (d->device_data);
-#else /* not NEW_GC */
xfree (d->device_data, void *);
-#endif /* not NEW_GC */
}
+#endif /* not NEW_GC */
static void
gtk_delete_device (struct device *d)
Index: src/device-msw.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/device-msw.c,v
retrieving revision 1.60
diff -u -r1.60 device-msw.c
--- src/device-msw.c 25 Nov 2005 01:41:58 -0000 1.60
+++ src/device-msw.c 15 Aug 2007 10:54:35 -0000
@@ -300,9 +300,7 @@
#endif
DeleteDC (DEVICE_MSWINDOWS_HCDC (d));
-#ifdef NEW_GC
- mc_free (d->device_data);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (d->device_data, void *);
#endif /* not NEW_GC */
}
@@ -576,9 +574,7 @@
DEVICE_MSPRINTER_DEVMODE (d) = Qnil;
}
-#ifdef NEW_GC
- mc_free (d->device_data);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (d->device_data, void *);
#endif /* not NEW_GC */
}
Index: src/device-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/device-x.c,v
retrieving revision 1.69
diff -u -r1.69 device-x.c
--- src/device-x.c 28 Nov 2006 21:20:37 -0000 1.69
+++ src/device-x.c 15 Aug 2007 10:54:35 -0000
@@ -939,15 +939,13 @@
/* closing an X connection */
/************************************************************************/
+#ifndef NEW_GC
static void
free_x_device_struct (struct device *d)
{
-#ifdef NEW_GC
- mc_free (d->device_data);
-#else /* not NEW_GC */
xfree (d->device_data, void *);
-#endif /* not NEW_GC */
}
+#endif /* not NEW_GC */
static void
x_delete_device (struct device *d)
@@ -990,7 +988,9 @@
#endif
}
+#ifndef NEW_GC
free_x_device_struct (d);
+#endif /* not NEW_GC */
}
Index: src/dynarr.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/dynarr.c,v
retrieving revision 1.15
diff -u -r1.15 dynarr.c
--- src/dynarr.c 20 Mar 2006 21:20:28 -0000 1.15
+++ src/dynarr.c 15 Aug 2007 10:54:35 -0000
@@ -162,13 +162,10 @@
Dynarr_lisp_realloc (Dynarr *dy, int new_size)
{
void *new_base = alloc_lrecord_array (dy->elsize, new_size, dy->lisp_imp);
- void *old_base = dy->base;
if (dy->base)
memcpy (new_base, dy->base,
(dy->max < new_size ? dy->max : new_size) * dy->elsize);
dy->base = new_base;
- if (old_base)
- mc_free (old_base);
}
void *
@@ -266,16 +263,12 @@
#ifdef NEW_GC
if (dy->base && !DUMPEDP (dy->base))
{
- if (dy->lisp_imp)
- mc_free (dy->base);
- else
+ if (!dy->lisp_imp)
xfree (dy->base, void *);
}
if(!DUMPEDP (dy))
{
- if (dy->lisp_imp)
- mc_free (dy);
- else
+ if (!dy->lisp_imp)
xfree (dy, Dynarr *);
}
#else /* not NEW_GC */
Index: src/elhash.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/elhash.c,v
retrieving revision 1.46
diff -u -r1.46 elhash.c
--- src/elhash.c 22 Jul 2007 22:04:12 -0000 1.46
+++ src/elhash.c 15 Aug 2007 10:54:35 -0000
@@ -398,28 +398,16 @@
write_fmt_string (printcharfun, " 0x%x>", ht->header.uid);
}
+#ifndef NEW_GC
static void
-free_hentries (
-#if defined (NEW_GC) && !defined (ERROR_CHECK_STRUCTURES)
- htentry *UNUSED (hentries),
-#else
- htentry *hentries,
-#endif
+free_hentries (htentry *hentries,
#ifdef ERROR_CHECK_STRUCTURES
size_t size
-#else /* not (NEW_GC && ! ERROR_CHECK_STRUCTURES) */
+#else /* not ERROR_CHECK_STRUCTURES) */
size_t UNUSED (size)
-#endif /* not (NEW_GC && ! ERROR_CHECK_STRUCTURES) */
+#endif /* not ERROR_CHECK_STRUCTURES) */
)
{
-#ifdef NEW_GC
-#ifdef ERROR_CHECK_STRUCTURES
- htentry *e, *sentinel;
-
- for (e = hentries, sentinel = e + size; e < sentinel; e++)
- mc_free (e);
-#endif
-#else /* not NEW_GC */
#ifdef ERROR_CHECK_STRUCTURES
/* Ensure a crash if other code uses the discarded entries afterwards. */
htentry *e, *sentinel;
@@ -430,10 +418,8 @@
if (!DUMPEDP (hentries))
xfree (hentries, htentry *);
-#endif /* not NEW_GC */
}
-#ifndef NEW_GC
static void
finalize_hash_table (void *header, int for_disksave)
{
@@ -1071,7 +1057,9 @@
*probe = *e;
}
+#ifndef NEW_GC
free_hentries (old_entries, old_size);
+#endif /* not NEW_GC */
}
/* After a hash table has been saved to disk and later restored by the
@@ -1101,9 +1089,7 @@
memcpy (ht->hentries, new_entries, ht->size * sizeof (htentry));
-#ifdef NEW_GC
- mc_free (new_entries);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (new_entries, htentry *);
#endif /* not NEW_GC */
}
Index: src/extents.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/extents.c,v
retrieving revision 1.66
diff -u -r1.66 extents.c
--- src/extents.c 21 Jun 2006 17:30:36 -0000 1.66
+++ src/extents.c 15 Aug 2007 10:54:37 -0000
@@ -720,9 +720,7 @@
prev->next = p->next;
else
ga->markers = p->next;
-#ifdef NEW_GC
- mc_free (m);
-#else /* not NEW_GC */
+#ifndef NEW_GC
m->next = gap_array_marker_freelist;
m->pos = 0xDEADBEEF; /* -559038737 base 10 */
gap_array_marker_freelist = m;
Index: src/frame-gtk.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/frame-gtk.c,v
retrieving revision 1.23
diff -u -r1.23 frame-gtk.c
--- src/frame-gtk.c 12 Nov 2006 13:40:08 -0000 1.23
+++ src/frame-gtk.c 15 Aug 2007 10:54:37 -0000
@@ -1354,9 +1354,7 @@
if (FRAME_GTK_GEOM_FREE_ME_PLEASE (f))
xfree (FRAME_GTK_GEOM_FREE_ME_PLEASE (f), char *);
-#ifdef NEW_GC
- mc_free (f->frame_data);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (f->frame_data, void *);
#endif /* not NEW_GC */
f->frame_data = 0;
Index: src/frame-msw.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/frame-msw.c,v
retrieving revision 1.59
diff -u -r1.59 frame-msw.c
--- src/frame-msw.c 25 Nov 2005 01:42:02 -0000 1.59
+++ src/frame-msw.c 15 Aug 2007 10:54:37 -0000
@@ -353,9 +353,7 @@
#endif
ReleaseDC (FRAME_MSWINDOWS_HANDLE (f), FRAME_MSWINDOWS_DC (f));
DestroyWindow (FRAME_MSWINDOWS_HANDLE (f));
-#ifdef NEW_GC
- mc_free (f->frame_data);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (f->frame_data, void *);
#endif /* not NEW_GC */
}
Index: src/frame-x.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/frame-x.c,v
retrieving revision 1.76
diff -u -r1.76 frame-x.c
--- src/frame-x.c 12 Nov 2006 13:40:08 -0000 1.76
+++ src/frame-x.c 15 Aug 2007 10:54:37 -0000
@@ -2686,9 +2686,7 @@
if (f->frame_data)
{
-#ifdef NEW_GC
- mc_free (f->frame_data);
-#else /* not NEW_GC */
+#ifndef NEW_GC
xfree (f->frame_data, void *);
#endif /* not NEW_GC */
f->frame_data = 0;
Index: src/glyphs.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/glyphs.c,v
retrieving revision 1.55
diff -u -r1.55 glyphs.c
--- src/glyphs.c 25 Nov 2005 01:42:04 -0000 1.55
+++ src/glyphs.c 15 Aug 2007 10:54:38 -0000
@@ -4576,9 +4576,7 @@
if (ei == f->subwindow_exposures_tail)
f->subwindow_exposures_tail = prev;
-#ifdef NEW_GC
- mc_free (ei);
-#else /* not NEW_GC */
+#ifndef NEW_GC
Blocktype_free (the_expose_ignore_blocktype, ei);
#endif /* not NEW_GC */
return 1;
Index: src/mc-alloc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/mc-alloc.c,v
retrieving revision 1.10
diff -u -r1.10 mc-alloc.c
--- src/mc-alloc.c 26 Mar 2006 15:24:26 -0000 1.10
+++ src/mc-alloc.c 15 Aug 2007 10:54:38 -0000
@@ -1576,15 +1576,6 @@
}
-/* Frees the cell pointed to by ptr. */
-void
-mc_free (void *UNUSED (ptr))
-{
- /* Manual frees are not allowed with asynchronous finalization */
- return;
-}
-
-
/* Changes the size of the cell pointed to by ptr.
Returns the new address of the new cell with new size. */
void *
@@ -1603,12 +1594,10 @@
#ifdef ALLOC_TYPE_STATS
inc_lrecord_stats (size, (struct lrecord_header *) result);
#endif /* not ALLOC_TYPE_STATS */
- /* mc_free (ptr); not needed, will be collected next gc */
return result;
}
else
{
- /* mc_free (ptr); not needed, will be collected next gc */
return 0;
}
}
Index: src/mc-alloc.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/mc-alloc.h,v
retrieving revision 1.6
diff -u -r1.6 mc-alloc.h
--- src/mc-alloc.h 26 Mar 2006 15:24:27 -0000 1.6
+++ src/mc-alloc.h 15 Aug 2007 10:54:38 -0000
@@ -49,12 +49,6 @@
dynamic arrays use this function. */
void *mc_alloc_array (size_t size, EMACS_INT elemcount);
-/* Free the object pointed to by ptr and make its memory re-usable
- again. The memory must have been returned by a previous call to
- mc_alloc(). This can be used to free memory explicitly, outside a
- garbage collection. */
-void mc_free (void *ptr);
-
/* Modify the size of the memory block pointed to by ptr. Return the
address of the new block of given size. The content of the memory
block will be unchanged to the minimum of the old and new sizes: if
Index: src/objects-tty.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/objects-tty.c,v
retrieving revision 1.19
diff -u -r1.19 objects-tty.c
--- src/objects-tty.c 22 Feb 2007 16:19:44 -0000 1.19
+++ src/objects-tty.c 15 Aug 2007 10:54:38 -0000
@@ -218,16 +218,14 @@
{
}
+#ifndef NEW_GC
static void
tty_finalize_color_instance (Lisp_Color_Instance *c)
{
if (c->data)
-#ifdef NEW_GC
- mc_free (c->data);
-#else /* not NEW_GC */
xfree (c->data, void *);
-#endif /* not NEW_GC */
}
+#endif /* not NEW_GC */
static int
tty_color_instance_equal (Lisp_Color_Instance *c1,
@@ -315,16 +313,14 @@
{
}
+#ifndef NEW_GC
static void
tty_finalize_font_instance (Lisp_Font_Instance *f)
{
if (f->data)
-#ifdef NEW_GC
- mc_free (f->data);
-#else /* not NEW_GC */
xfree (f->data, void *);
-#endif /* not NEW_GC */
}
+#endif /* not NEW_GC */
static Lisp_Object
tty_font_list (Lisp_Object UNUSED (pattern), Lisp_Object UNUSED (device),
@@ -421,7 +417,9 @@
CONSOLE_HAS_METHOD (tty, initialize_color_instance);
CONSOLE_HAS_METHOD (tty, mark_color_instance);
CONSOLE_HAS_METHOD (tty, print_color_instance);
+#ifndef NEW_GC
CONSOLE_HAS_METHOD (tty, finalize_color_instance);
+#endif /* not NEW_GC */
CONSOLE_HAS_METHOD (tty, color_instance_equal);
CONSOLE_HAS_METHOD (tty, color_instance_hash);
CONSOLE_HAS_METHOD (tty, valid_color_name_p);
@@ -430,7 +428,9 @@
CONSOLE_HAS_METHOD (tty, initialize_font_instance);
CONSOLE_HAS_METHOD (tty, mark_font_instance);
CONSOLE_HAS_METHOD (tty, print_font_instance);
+#ifndef NEW_GC
CONSOLE_HAS_METHOD (tty, finalize_font_instance);
+#endif /* not NEW_GC */
CONSOLE_HAS_METHOD (tty, font_list);
#ifdef MULE
CONSOLE_HAS_METHOD (tty, font_spec_matches_charset);
Index: src/syntax.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/syntax.c,v
retrieving revision 1.31
diff -u -r1.31 syntax.c
--- src/syntax.c 23 Aug 2006 19:57:50 -0000 1.31
+++ src/syntax.c 15 Aug 2007 10:54:38 -0000
@@ -537,18 +537,16 @@
reset_buffer_syntax_cache_range (cache, cache->object, 0);
}
+#ifndef NEW_GC
/* finalize the syntax cache for BUF */
void
uninit_buffer_syntax_cache (struct buffer *buf)
{
-#ifdef NEW_GC
- mc_free (buf->syntax_cache);
-#else /* not NEW_GC */
xfree (buf->syntax_cache, struct syntax_cache *);
-#endif /* not NEW_GC */
buf->syntax_cache = 0;
}
+#endif /* not NEW_GC */
/* extent-specific APIs used in extents.c and insdel.c */
Index: src/vdb.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/vdb.c,v
retrieving revision 1.2
diff -u -r1.2 vdb.c
--- src/vdb.c 26 Mar 2006 14:05:30 -0000 1.2
+++ src/vdb.c 15 Aug 2007 10:54:38 -0000
@@ -132,7 +132,6 @@
fprintf (stderr, "WRONG page fault at %x\n",
(int) Dynarr_at (page_fault_table, count - 1));
Dynarr_free (page_fault_table);
- mc_free (p);
return Qnil;
}
--
Marcus
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[C] [R21.4] xemacs-21.5-clean: Sync font-lock-add-keywords and font-lock-remove-keywords from GNU Emacs
17 years, 4 months
Adrian Aichner
Hi Vin, here is the patch again.
I was able to find it quickly by use of
M-x gnus-article-refer-article
on the message-id I quoted in my followup mail.
Let me know if this works for you.
Best regards!
Adrian
COMMIT
RECOMMEND 21.4
Many unbundled lisp libraries don't work out-of-the-box due to these
missing functions.
I've had these locally added to my 21.4 build for years.
It's time we close this compatibility gap.
oddmuse.el works out of the box for me with this patch.
Adrian
xemacs-21.5-clean ChangeLog patch:
Diff command: cvs -q diff -U 0
Files affected: lisp/ChangeLog
Index: lisp/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/ChangeLog,v
retrieving revision 1.766
diff -u -U0 -r1.766 ChangeLog
--- lisp/ChangeLog 1 Nov 2006 21:35:35 -0000 1.766
+++ lisp/ChangeLog 1 Nov 2006 23:13:52 -0000
@@ -0,0 +1,10 @@
+2006-11-02 Adrian Aichner <adrian(a)xemacs.org>
+
+ * font-lock.el: Sync font-lock-add-keywords and
+ font-lock-remove-keywords from GNU Emacs.
+ * font-lock.el (font-lock-keywords-alist): New.
+ * font-lock.el (font-lock-removed-keywords-alist): New.
+ * font-lock.el (font-lock-add-keywords): New.
+ * font-lock.el (font-lock-update-removed-keyword-alist): New.
+ * font-lock.el (font-lock-remove-keywords): New.
+
xemacs-21.5-clean source patch:
Diff command: cvs -f -z3 -q diff -u -w -N
Files affected: lisp/font-lock.el
Index: lisp/font-lock.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/font-lock.el,v
retrieving revision 1.30
diff -u -w -r1.30 font-lock.el
--- lisp/font-lock.el 4 Feb 2006 01:56:06 -0000 1.30
+++ lisp/font-lock.el 1 Nov 2006 23:10:11 -0000
@@ -449,6 +449,32 @@
Be very careful composing regexps for this list; the wrong pattern can
dramatically slow things down!
")
+
+(defvar font-lock-keywords-alist nil
+ "Alist of additional `font-lock-keywords' elements for major modes.
+
+Each element has the form (MODE KEYWORDS . HOW).
+`font-lock-set-defaults' adds the elements in the list KEYWORDS to
+`font-lock-keywords' when Font Lock is turned on in major mode MODE.
+
+If HOW is nil, KEYWORDS are added at the beginning of
+`font-lock-keywords'. If it is `set', they are used to replace the
+value of `font-lock-keywords'. If HOW is any other non-nil value,
+they are added at the end.
+
+This is normally set via `font-lock-add-keywords' and
+`font-lock-remove-keywords'.")
+
+(defvar font-lock-removed-keywords-alist nil
+ "Alist of `font-lock-keywords' elements to be removed for major modes.
+
+Each element has the form (MODE . KEYWORDS). `font-lock-set-defaults'
+removes the elements in the list KEYWORDS from `font-lock-keywords'
+when Font Lock is turned on in major mode MODE.
+
+This is normally set via `font-lock-add-keywords' and
+`font-lock-remove-keywords'.")
+
;;;###autoload
(make-variable-buffer-local 'font-lock-keywords)
@@ -868,6 +894,188 @@
(setq font-lock-maximum-decoration t)
(font-lock-recompute-variables)))
+(defun font-lock-add-keywords (mode keywords &optional how)
+ "Add highlighting KEYWORDS for MODE.
+
+MODE should be a symbol, the major mode command name, such as `c-mode'
+or nil. If nil, highlighting keywords are added for the current buffer.
+KEYWORDS should be a list; see the variable `font-lock-keywords'.
+By default they are added at the beginning of the current highlighting list.
+If optional argument HOW is `set', they are used to replace the current
+highlighting list. If HOW is any other non-nil value, they are added at the
+end of the current highlighting list.
+
+For example:
+
+ (font-lock-add-keywords 'c-mode
+ '((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 font-lock-warning-face prepend)
+ (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . font-lock-keyword-face)))
+
+adds two fontification patterns for C mode, to fontify `FIXME:' words, even in
+comments, and to fontify `and', `or' and `not' words as keywords.
+
+The above procedure will only add the keywords for C mode, not
+for modes derived from C mode. To add them for derived modes too,
+pass nil for MODE and add the call to c-mode-hook.
+
+For example:
+
+ (add-hook 'c-mode-hook
+ (lambda ()
+ (font-lock-add-keywords nil
+ '((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 font-lock-warning-face prepend)
+ (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" .
+ font-lock-keyword-face)))))
+
+The above procedure may fail to add keywords to derived modes if
+some involved major mode does not follow the standard conventions.
+File a bug report if this happens, so the major mode can be corrected.
+
+Note that some modes have specialized support for additional patterns, e.g.,
+see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types',
+`objc-font-lock-extra-types' and `java-font-lock-extra-types'."
+ (cond (mode
+ ;; If MODE is non-nil, add the KEYWORDS and HOW spec to
+ ;; `font-lock-keywords-alist' so `font-lock-set-defaults' uses them.
+ (let ((spec (cons keywords how)) cell)
+ (if (setq cell (assq mode font-lock-keywords-alist))
+ (if (eq how 'set)
+ (setcdr cell (list spec))
+ (setcdr cell (append (cdr cell) (list spec))))
+ (push (list mode spec) font-lock-keywords-alist)))
+ ;; Make sure that `font-lock-removed-keywords-alist' does not
+ ;; contain the new keywords.
+ (font-lock-update-removed-keyword-alist mode keywords how))
+ (t
+ ;; Otherwise set or add the keywords now.
+ ;; This is a no-op if it has been done already in this buffer
+ ;; for the correct major mode.
+ (font-lock-set-defaults)
+ (let ((was-compiled (eq (car font-lock-keywords) t)))
+ ;; Bring back the user-level (uncompiled) keywords.
+ (if was-compiled
+ (setq font-lock-keywords (cadr font-lock-keywords)))
+ ;; Now modify or replace them.
+ (if (eq how 'set)
+ (setq font-lock-keywords keywords)
+ (font-lock-remove-keywords nil keywords) ;to avoid duplicates
+ (let ((old (if (eq (car-safe font-lock-keywords) t)
+ (cdr font-lock-keywords)
+ font-lock-keywords)))
+ (setq font-lock-keywords (if how
+ (append old keywords)
+ (append keywords old)))))
+ ;; If the keywords were compiled before, compile them again.
+ (if was-compiled
+ (setq font-lock-keywords
+ (font-lock-compile-keywords font-lock-keywords)))))))
+
+(defun font-lock-update-removed-keyword-alist (mode keywords how)
+ "Update `font-lock-removed-keywords-alist' when adding new KEYWORDS to MODE."
+ ;; When font-lock is enabled first all keywords in the list
+ ;; `font-lock-keywords-alist' are added, then all keywords in the
+ ;; list `font-lock-removed-keywords-alist' are removed. If a
+ ;; keyword was once added, removed, and then added again it must be
+ ;; removed from the removed-keywords list. Otherwise the second add
+ ;; will not take effect.
+ (let ((cell (assq mode font-lock-removed-keywords-alist)))
+ (if cell
+ (if (eq how 'set)
+ ;; A new set of keywords is defined. Forget all about
+ ;; our old keywords that should be removed.
+ (setq font-lock-removed-keywords-alist
+ (delq cell font-lock-removed-keywords-alist))
+ ;; Delete all previously removed keywords.
+ (dolist (kword keywords)
+ (setcdr cell (delete kword (cdr cell))))
+ ;; Delete the mode cell if empty.
+ (if (null (cdr cell))
+ (setq font-lock-removed-keywords-alist
+ (delq cell font-lock-removed-keywords-alist)))))))
+
+;; Written by Anders Lindgren <andersl(a)andersl.com>.
+;;
+;; Case study:
+;; (I) The keywords are removed from a major mode.
+;; In this case the keyword could be local (i.e. added earlier by
+;; `font-lock-add-keywords'), global, or both.
+;;
+;; (a) In the local case we remove the keywords from the variable
+;; `font-lock-keywords-alist'.
+;;
+;; (b) The actual global keywords are not known at this time.
+;; All keywords are added to `font-lock-removed-keywords-alist',
+;; when font-lock is enabled those keywords are removed.
+;;
+;; Note that added keywords are taken out of the list of removed
+;; keywords. This ensure correct operation when the same keyword
+;; is added and removed several times.
+;;
+;; (II) The keywords are removed from the current buffer.
+(defun font-lock-remove-keywords (mode keywords)
+ "Remove highlighting KEYWORDS for MODE.
+
+MODE should be a symbol, the major mode command name, such as `c-mode'
+or nil. If nil, highlighting keywords are removed for the current buffer.
+
+To make the removal apply to modes derived from MODE as well,
+pass nil for MODE and add the call to MODE-hook. This may fail
+for some derived modes if some involved major mode does not
+follow the standard conventions. File a bug report if this
+happens, so the major mode can be corrected."
+ (cond (mode
+ ;; Remove one keyword at the time.
+ (dolist (keyword keywords)
+ (let ((top-cell (assq mode font-lock-keywords-alist)))
+ ;; If MODE is non-nil, remove the KEYWORD from
+ ;; `font-lock-keywords-alist'.
+ (when top-cell
+ (dolist (keyword-list-how-pair (cdr top-cell))
+ ;; `keywords-list-how-pair' is a cons with a list of
+ ;; keywords in the car top-cell and the original how
+ ;; argument in the cdr top-cell.
+ (setcar keyword-list-how-pair
+ (delete keyword (car keyword-list-how-pair))))
+ ;; Remove keyword list/how pair when the keyword list
+ ;; is empty and how doesn't specify `set'. (If it
+ ;; should be deleted then previously deleted keywords
+ ;; would appear again.)
+ (let ((cell top-cell))
+ (while (cdr cell)
+ (if (and (null (car (car (cdr cell))))
+ (not (eq (cdr (car (cdr cell))) 'set)))
+ (setcdr cell (cdr (cdr cell)))
+ (setq cell (cdr cell)))))
+ ;; Final cleanup, remove major mode cell if last keyword
+ ;; was deleted.
+ (if (null (cdr top-cell))
+ (setq font-lock-keywords-alist
+ (delq top-cell font-lock-keywords-alist))))
+ ;; Remember the keyword in case it is not local.
+ (let ((cell (assq mode font-lock-removed-keywords-alist)))
+ (if cell
+ (unless (member keyword (cdr cell))
+ (nconc cell (list keyword)))
+ (push (cons mode (list keyword))
+ font-lock-removed-keywords-alist))))))
+ (t
+ ;; Otherwise remove it immediately.
+ (font-lock-set-defaults)
+ (let ((was-compiled (eq (car font-lock-keywords) t)))
+ ;; Bring back the user-level (uncompiled) keywords.
+ (if was-compiled
+ (setq font-lock-keywords (cadr font-lock-keywords)))
+
+ ;; Edit them.
+ (setq font-lock-keywords (copy-sequence font-lock-keywords))
+ (dolist (keyword keywords)
+ (setq font-lock-keywords
+ (delete keyword font-lock-keywords)))
+
+ ;; If the keywords were compiled before, compile them again.
+ (if was-compiled
+ (setq font-lock-keywords
+ (font-lock-compile-keywords font-lock-keywords)))))))
;;;;;;;;;;;;;;;;;;;;;; actual code ;;;;;;;;;;;;;;;;;;;;;;
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches
[C] xemacs-21.5-clean: Update download sites in Japan
17 years, 4 months
Adrian Aichner
COMMIT
xemacs-21.5-clean ChangeLog patch:
Diff command: cvs -q diff -U 0
Files affected: lisp/ChangeLog
Index: lisp/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/ChangeLog,v
retrieving revision 1.829
diff -u -U0 -r1.829 ChangeLog
--- lisp/ChangeLog 18 Aug 2007 16:33:29 -0000 1.829
+++ lisp/ChangeLog 20 Aug 2007 22:28:39 -0000
@@ -0,0 +1,6 @@
+2007-08-21 Adrian Aichner <adrian(a)xemacs.org>
+
+ * package-get.el (package-get-download-sites): Update download
+ sites in Japan.
+ * package-get.el (package-get-pre-release-download-sites): Ditto.
+
xemacs-21.5-clean source patch:
Diff command: cvs -f -z3 -q diff -u -w -N
Files affected: lisp/package-get.el
===================================================================
RCS
Index: lisp/package-get.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/package-get.el,v
retrieving revision 1.81
diff -u -w -r1.81 package-get.el
--- lisp/package-get.el 18 Aug 2007 13:38:11 -0000 1.81
+++ lisp/package-get.el 20 Aug 2007 22:27:44 -0000
@@ -237,11 +237,9 @@
("Ireland (ie.xemacs.org)" "ftp.ie.xemacs.org" "mirrors/ftp.xemacs.org/pub/xemacs/packages")
("Ireland (heanet.ie)" "ftp.heanet.ie" "mirrors/ftp.xemacs.org/packages")
("Italy (it.xemacs.org)" "ftp.it.xemacs.org" "unix/packages/XEMACS/packages")
- ("Japan (aist.go.jp)" "ring.aist.go.jp" "pub/text/xemacs/packages")
- ("Japan (asahi-net.or.jp)" "ring.asahi-net.or.jp" "pub/text/xemacs/packages")
("Japan (dti.ad.jp)" "ftp.dti.ad.jp" "pub/unix/editor/xemacs/packages")
; ("Japan (jaist.ac.jp)" "ftp.jaist.ac.jp" "pub/GNU/xemacs/packages")
-; ("Japan (jp.xemacs.org)" "ftp.jp.xemacs.org" "pub/GNU/xemacs/packages")
+ ("Japan (jp.xemacs.org)" "ftp.jp.xemacs.org" "pub/text/xemacs/packages")
; ("Japan (nucba.ac.jp)" "mirror.nucba.ac.jp" "mirror/xemacs/packages")
("Korea (kr.xemacs.org)" "ftp.kr.xemacs.org" "pub/tools/emacs/xemacs/packages")
("Netherlands (nl.xemacs.org)" "ftp.nl.xemacs.org" "pub/xemacs/ftp/packages")
@@ -319,16 +317,12 @@
"mirrors/ftp.xemacs.org/beta/experimental/packages")
("Italy Pre-Releases (it.xemacs.org)" "ftp.it.xemacs.org"
"unix/packages/XEMACS/beta/experimental/packages")
- ("Japan Pre-Releases (aist.go.jp)" "ring.aist.go.jp"
- "pub/text/xemacs/beta/experimental/packages")
- ("Japan Pre-Releases (asahi-net.or.jp)" "ring.asahi-net.or.jp"
- "pub/text/xemacs/beta/experimental/packages")
("Japan Pre-Releases (dti.ad.jp)" "ftp.dti.ad.jp"
"pub/unix/editor/xemacs/beta/experimental/packages")
; ("Japan Pre-Releases (jaist.ac.jp)" "ftp.jaist.ac.jp"
; "pub/GNU/xemacs/beta/experimental/packages")
-; ("Japan Pre-Releases (jp.xemacs.org)" "ftp.jp.xemacs.org"
-; "pub/GNU/xemacs/beta/experimental/packages")
+ ("Japan Pre-Releases (jp.xemacs.org)" "ftp.jp.xemacs.org"
+ "pub/text/xemacs/beta/experimental/packages")
("Korea (kr.xemacs.org)" "ftp.kr.xemacs.org"
"pub/tools/emacs/xemacs/beta/experimental/packages")
("Netherlands (nl.xemacs.org)" "ftp.nl.xemacs.org"
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches