diff options
| author | Dave Love | 2001-02-11 17:07:35 +0000 |
|---|---|---|
| committer | Dave Love | 2001-02-11 17:07:35 +0000 |
| commit | 521d4010c2dc7bc21960e5b72de45c396d52b61e (patch) | |
| tree | 6fe5c9ed13c4c00c2c79a67b9071be42e234208f | |
| parent | 5449c31799932a013262d8d38824e111ee7a4c7f (diff) | |
| download | emacs-521d4010c2dc7bc21960e5b72de45c396d52b61e.tar.gz emacs-521d4010c2dc7bc21960e5b72de45c396d52b61e.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/international/ccl.el | 1 | ||||
| -rw-r--r-- | lisp/international/mule.el | 64 |
4 files changed, 42 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d9c85b77d49..d82b3796fa7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2001-02-11 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * international/mule.el: Doc and message fixes. | ||
| 4 | |||
| 1 | 2001-02-11 Kenichi Handa <handa@etl.go.jp> | 5 | 2001-02-11 Kenichi Handa <handa@etl.go.jp> |
| 2 | 6 | ||
| 3 | * faces.el (mode-line): Set :line-width property to -1. | 7 | * faces.el (mode-line): Set :line-width property to -1. |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 4df8d59b175..85dd701a32d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2001-02-11 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * message.el (message-signature-file): Fix doc, :type. | ||
| 4 | |||
| 1 | 2001-02-08 Dave Love <fx@gnu.org> | 5 | 2001-02-08 Dave Love <fx@gnu.org> |
| 2 | 6 | ||
| 3 | * rfc2047.el (rfc2047-fold-region): Don't forward-char at EOB. | 7 | * rfc2047.el (rfc2047-fold-region): Don't forward-char at EOB. |
diff --git a/lisp/international/ccl.el b/lisp/international/ccl.el index 1eb11dfedf4..b7725791732 100644 --- a/lisp/international/ccl.el +++ b/lisp/international/ccl.el | |||
| @@ -1437,6 +1437,7 @@ ARRAY := `[' integer ... `]' | |||
| 1437 | TRANSLATE := | 1437 | TRANSLATE := |
| 1438 | (translate-character REG(table) REG(charset) REG(codepoint)) | 1438 | (translate-character REG(table) REG(charset) REG(codepoint)) |
| 1439 | | (translate-character SYMBOL REG(charset) REG(codepoint)) | 1439 | | (translate-character SYMBOL REG(charset) REG(codepoint)) |
| 1440 | ;; SYMBOL must refer to a table defined by `define-translation-table'. | ||
| 1440 | MAP := | 1441 | MAP := |
| 1441 | (iterate-multiple-map REG REG MAP-IDs) | 1442 | (iterate-multiple-map REG REG MAP-IDs) |
| 1442 | | (map-multiple REG REG (MAP-SET)) | 1443 | | (map-multiple REG REG (MAP-SET)) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index b2320c88b26..8c65b2da78e 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -100,9 +100,8 @@ Return t if file exists." | |||
| 100 | 100 | ||
| 101 | ;; API (Application Program Interface) for charsets. | 101 | ;; API (Application Program Interface) for charsets. |
| 102 | 102 | ||
| 103 | ;; Return t if OBJ is a quoted symbol | ||
| 104 | ;; and the symbol is the name of a standard charset. | ||
| 105 | (defsubst charset-quoted-standard-p (obj) | 103 | (defsubst charset-quoted-standard-p (obj) |
| 104 | "Return t if OBJ is a quoted symbol, and is the name of a standard charset." | ||
| 106 | (and (listp obj) (eq (car obj) 'quote) | 105 | (and (listp obj) (eq (car obj) 'quote) |
| 107 | (symbolp (car-safe (cdr obj))) | 106 | (symbolp (car-safe (cdr obj))) |
| 108 | (let ((vector (get (car-safe (cdr obj)) 'charset))) | 107 | (let ((vector (get (car-safe (cdr obj)) 'charset))) |
| @@ -271,7 +270,7 @@ If CODE1 or CODE2 are invalid (out of range), this function signals an error." | |||
| 271 | (make-char-internal (charset-id charset) code1 code2)) | 270 | (make-char-internal (charset-id charset) code1 code2)) |
| 272 | 271 | ||
| 273 | (put 'make-char 'byte-compile | 272 | (put 'make-char 'byte-compile |
| 274 | (function | 273 | (function |
| 275 | (lambda (form) | 274 | (lambda (form) |
| 276 | (let ((charset (nth 1 form))) | 275 | (let ((charset (nth 1 form))) |
| 277 | (if (charset-quoted-standard-p charset) | 276 | (if (charset-quoted-standard-p charset) |
| @@ -291,7 +290,7 @@ Now we have the variable `charset-list'." | |||
| 291 | 290 | ||
| 292 | (defsubst generic-char-p (char) | 291 | (defsubst generic-char-p (char) |
| 293 | "Return t if and only if CHAR is a generic character. | 292 | "Return t if and only if CHAR is a generic character. |
| 294 | See also the documentation of make-char." | 293 | See also the documentation of `make-char'." |
| 295 | (and (>= char 0400) | 294 | (and (>= char 0400) |
| 296 | (let ((l (split-char char))) | 295 | (let ((l (split-char char))) |
| 297 | (and (or (= (nth 1 l) 0) (eq (nth 2 l) 0)) | 296 | (and (or (= (nth 1 l) 0) (eq (nth 2 l) 0)) |
| @@ -312,7 +311,7 @@ and CODE-POINT to a chracter. Currently not supported and just ignored." | |||
| 312 | (make-char 'latin-iso8859-1 code-point)) | 311 | (make-char 'latin-iso8859-1 code-point)) |
| 313 | ((< code-point #x2500) | 312 | ((< code-point #x2500) |
| 314 | (setq code-point (- code-point #x0100)) | 313 | (setq code-point (- code-point #x0100)) |
| 315 | (make-char 'mule-unicode-0100-24ff | 314 | (make-char 'mule-unicode-0100-24ff |
| 316 | (+ (/ code-point 96) 32) (+ (% code-point 96) 32))) | 315 | (+ (/ code-point 96) 32) (+ (% code-point 96) 32))) |
| 317 | ((< code-point #x3400) | 316 | ((< code-point #x3400) |
| 318 | (setq code-point (- code-point #x2500)) | 317 | (setq code-point (- code-point #x2500)) |
| @@ -365,7 +364,7 @@ code-point in CCS. Currently not supported and just ignored." | |||
| 365 | ;; following format: | 364 | ;; following format: |
| 366 | ;; [TYPE MNEMONIC DOC-STRING PLIST FLAGS] | 365 | ;; [TYPE MNEMONIC DOC-STRING PLIST FLAGS] |
| 367 | ;; We call this vector as coding-spec. See comments in src/coding.c | 366 | ;; We call this vector as coding-spec. See comments in src/coding.c |
| 368 | ;; for more detail. | 367 | ;; for more detail. |
| 369 | 368 | ||
| 370 | (defconst coding-spec-type-idx 0) | 369 | (defconst coding-spec-type-idx 0) |
| 371 | (defconst coding-spec-mnemonic-idx 1) | 370 | (defconst coding-spec-mnemonic-idx 1) |
| @@ -381,7 +380,7 @@ code-point in CCS. Currently not supported and just ignored." | |||
| 381 | ;; o coding-category | 380 | ;; o coding-category |
| 382 | ;; | 381 | ;; |
| 383 | ;; The value is a coding category the coding system belongs to. The | 382 | ;; The value is a coding category the coding system belongs to. The |
| 384 | ;; function `make-coding-system' sets this value automatically | 383 | ;; function `make-coding-system' sets this value automatically |
| 385 | ;; unless its argument PROPERTIES specifies this property. | 384 | ;; unless its argument PROPERTIES specifies this property. |
| 386 | ;; | 385 | ;; |
| 387 | ;; o alias-coding-systems | 386 | ;; o alias-coding-systems |
| @@ -404,8 +403,8 @@ code-point in CCS. Currently not supported and just ignored." | |||
| 404 | ;; o valid-codes (meaningful only for a coding system based on CCL) | 403 | ;; o valid-codes (meaningful only for a coding system based on CCL) |
| 405 | 404 | ||
| 406 | 405 | ||
| 407 | ;; Return coding-spec of CODING-SYSTEM | ||
| 408 | (defsubst coding-system-spec (coding-system) | 406 | (defsubst coding-system-spec (coding-system) |
| 407 | "Return coding-spec of CODING-SYSTEM." | ||
| 409 | (get (check-coding-system coding-system) 'coding-system)) | 408 | (get (check-coding-system coding-system) 'coding-system)) |
| 410 | 409 | ||
| 411 | (defun coding-system-type (coding-system) | 410 | (defun coding-system-type (coding-system) |
| @@ -496,8 +495,8 @@ coding system whose eol-type is N." | |||
| 496 | (and (not (> (downcase c1) (downcase c2))) | 495 | (and (not (> (downcase c1) (downcase c2))) |
| 497 | (< c1 c2))))))) | 496 | (< c1 c2))))))) |
| 498 | 497 | ||
| 499 | ;; Add CODING-SYSTEM to coding-system-list while keeping it sorted. | ||
| 500 | (defun add-to-coding-system-list (coding-system) | 498 | (defun add-to-coding-system-list (coding-system) |
| 499 | "Add CODING-SYSTEM to `coding-system-list' while keeping it sorted." | ||
| 501 | (if (or (null coding-system-list) | 500 | (if (or (null coding-system-list) |
| 502 | (coding-system-lessp coding-system (car coding-system-list))) | 501 | (coding-system-lessp coding-system (car coding-system-list))) |
| 503 | (setq coding-system-list (cons coding-system coding-system-list)) | 502 | (setq coding-system-list (cons coding-system coding-system-list)) |
| @@ -550,8 +549,8 @@ formats (e.g. iso-latin-1-unix, koi8-r-dos)." | |||
| 550 | safe-chars)))) | 549 | safe-chars)))) |
| 551 | 550 | ||
| 552 | 551 | ||
| 553 | ;; Make subsidiary coding systems (eol-type variants) of CODING-SYSTEM. | ||
| 554 | (defun make-subsidiary-coding-system (coding-system) | 552 | (defun make-subsidiary-coding-system (coding-system) |
| 553 | "Make subsidiary coding systems (eol-type variants) of CODING-SYSTEM." | ||
| 555 | (let ((coding-spec (coding-system-spec coding-system)) | 554 | (let ((coding-spec (coding-system-spec coding-system)) |
| 556 | (subsidiaries (vector (intern (format "%s-unix" coding-system)) | 555 | (subsidiaries (vector (intern (format "%s-unix" coding-system)) |
| 557 | (intern (format "%s-dos" coding-system)) | 556 | (intern (format "%s-dos" coding-system)) |
| @@ -655,7 +654,7 @@ Value is a list of transformed arguments." | |||
| 655 | properties | 654 | properties |
| 656 | eol-type) | 655 | eol-type) |
| 657 | "Define a new coding system CODING-SYSTEM (symbol). | 656 | "Define a new coding system CODING-SYSTEM (symbol). |
| 658 | Remaining arguments are TYPE, MNEMONIC, DOC-STRING, FLAGS (optional), | 657 | Remaining arguments are TYPE, MNEMONIC, DOC-STRING, FLAGS (optional), |
| 659 | and PROPERTIES (optional) which construct a coding-spec of CODING-SYSTEM | 658 | and PROPERTIES (optional) which construct a coding-spec of CODING-SYSTEM |
| 660 | in the following format: | 659 | in the following format: |
| 661 | [TYPE MNEMONIC DOC-STRING PLIST FLAGS] | 660 | [TYPE MNEMONIC DOC-STRING PLIST FLAGS] |
| @@ -666,7 +665,7 @@ TYPE is an integer value indicating the type of the coding system as follows: | |||
| 666 | 2: ISO-2022 including many variants, | 665 | 2: ISO-2022 including many variants, |
| 667 | 3: Big5 used mainly on Chinese PC, | 666 | 3: Big5 used mainly on Chinese PC, |
| 668 | 4: private, CCL programs provide encoding/decoding algorithm, | 667 | 4: private, CCL programs provide encoding/decoding algorithm, |
| 669 | 5: Raw-text, which means that text contains random 8-bit codes. | 668 | 5: Raw-text, which means that text contains random 8-bit codes. |
| 670 | 669 | ||
| 671 | MNEMONIC is a character to be displayed on mode line for the coding system. | 670 | MNEMONIC is a character to be displayed on mode line for the coding system. |
| 672 | 671 | ||
| @@ -717,10 +716,10 @@ following properties are recognized: | |||
| 717 | 716 | ||
| 718 | The value is a function to call after some text is inserted and | 717 | The value is a function to call after some text is inserted and |
| 719 | decoded by the coding system itself and before any functions in | 718 | decoded by the coding system itself and before any functions in |
| 720 | `after-insert-functions' are called. The arguments to this | 719 | `after-insert-functions' are called. The argument of this |
| 721 | function is the same as those of a function in | 720 | function is the same as for a function in |
| 722 | `after-insert-functions', i.e. LENGTH of a text while putting point | 721 | `after-insert-file-functions', i.e. LENGTH of the text inserted, |
| 723 | at the head of the text to be decoded | 722 | with point at the head of the text to be decoded. |
| 724 | 723 | ||
| 725 | o pre-write-conversion | 724 | o pre-write-conversion |
| 726 | 725 | ||
| @@ -729,17 +728,18 @@ following properties are recognized: | |||
| 729 | called, and before the text is encoded by the coding system itself. | 728 | called, and before the text is encoded by the coding system itself. |
| 730 | The arguments to this function is the same as those of a function | 729 | The arguments to this function is the same as those of a function |
| 731 | in `write-region-annotate-functions', i.e. FROM and TO specifying | 730 | in `write-region-annotate-functions', i.e. FROM and TO specifying |
| 732 | region of a text. | 731 | a region of text. |
| 733 | 732 | ||
| 734 | o translation-table-for-decode | 733 | o translation-table-for-decode |
| 735 | 734 | ||
| 736 | The value is a translation table to be applied on decoding. See | 735 | The value is a translation table to be applied on decoding. See |
| 737 | the function `make-translation-table' for the format of translation | 736 | the function `make-translation-table' for the format of translation |
| 738 | table. | 737 | table. This is not applicable to type 4 (CCL-based) coding systems. |
| 739 | 738 | ||
| 740 | o translation-table-for-encode | 739 | o translation-table-for-encode |
| 741 | 740 | ||
| 742 | The value is a translation table to be applied on encoding. | 741 | The value is a translation table to be applied on encoding. This is |
| 742 | not applicable to type 4 (CCL-based) coding systems. | ||
| 743 | 743 | ||
| 744 | o safe-chars | 744 | o safe-chars |
| 745 | 745 | ||
| @@ -748,12 +748,12 @@ following properties are recognized: | |||
| 748 | overrides the specification of safe-charsets. | 748 | overrides the specification of safe-charsets. |
| 749 | 749 | ||
| 750 | o safe-charsets | 750 | o safe-charsets |
| 751 | 751 | ||
| 752 | The value is a list of charsets safely supported by the coding | 752 | The value is a list of charsets safely supported by the coding |
| 753 | system. The value t means that all charsets Emacs handles are | 753 | system. The value t means that all charsets Emacs handles are |
| 754 | supported. Even if some charset is not in this list, it doesn't | 754 | supported. Even if some charset is not in this list, it doesn't |
| 755 | mean that the charset can't be encoded in the coding system, | 755 | mean that the charset can't be encoded in the coding system; |
| 756 | instead, it just means that some other receiver of a text encoded | 756 | it just means that some other receiver of text encoded |
| 757 | in the coding system won't be able to handle that charset. | 757 | in the coding system won't be able to handle that charset. |
| 758 | 758 | ||
| 759 | o mime-charset | 759 | o mime-charset |
| @@ -825,7 +825,7 @@ a value of `safe-charsets' in PLIST." | |||
| 825 | (if (or (not (integerp type)) (< type 0) (> type 5)) | 825 | (if (or (not (integerp type)) (< type 0) (> type 5)) |
| 826 | (error "TYPE argument must be 0..5")) | 826 | (error "TYPE argument must be 0..5")) |
| 827 | (if (or (not (integerp mnemonic)) (<= mnemonic ? ) (> mnemonic 127)) | 827 | (if (or (not (integerp mnemonic)) (<= mnemonic ? ) (> mnemonic 127)) |
| 828 | (error "MNEMONIC argument must be an ASCII printable character.")) | 828 | (error "MNEMONIC argument must be an ASCII printable character")) |
| 829 | (aset coding-spec coding-spec-type-idx type) | 829 | (aset coding-spec coding-spec-type-idx type) |
| 830 | (aset coding-spec coding-spec-mnemonic-idx mnemonic) | 830 | (aset coding-spec coding-spec-mnemonic-idx mnemonic) |
| 831 | (aset coding-spec coding-spec-doc-string-idx | 831 | (aset coding-spec coding-spec-doc-string-idx |
| @@ -1101,7 +1101,7 @@ or by the previous use of this command." | |||
| 1101 | (not (terminal-coding-system))) | 1101 | (not (terminal-coding-system))) |
| 1102 | (setq coding-system default-terminal-coding-system)) | 1102 | (setq coding-system default-terminal-coding-system)) |
| 1103 | (if coding-system | 1103 | (if coding-system |
| 1104 | (setq default-terminal-coding-system coding-system)) | 1104 | (setq default-terminal-coding-system coding-system)) |
| 1105 | (set-terminal-coding-system-internal coding-system) | 1105 | (set-terminal-coding-system-internal coding-system) |
| 1106 | (redraw-frame (selected-frame))) | 1106 | (redraw-frame (selected-frame))) |
| 1107 | 1107 | ||
| @@ -1164,7 +1164,7 @@ For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]." | |||
| 1164 | "zCoding-system for output from the process: \nzCoding-system for input to the process: ") | 1164 | "zCoding-system for output from the process: \nzCoding-system for input to the process: ") |
| 1165 | (let ((proc (get-buffer-process (current-buffer)))) | 1165 | (let ((proc (get-buffer-process (current-buffer)))) |
| 1166 | (if (null proc) | 1166 | (if (null proc) |
| 1167 | (error "no process") | 1167 | (error "No process") |
| 1168 | (check-coding-system decoding) | 1168 | (check-coding-system decoding) |
| 1169 | (check-coding-system encoding) | 1169 | (check-coding-system encoding) |
| 1170 | (set-process-coding-system proc decoding encoding))) | 1170 | (set-process-coding-system proc decoding encoding))) |
| @@ -1202,8 +1202,8 @@ This setting is effective for the next communication only." | |||
| 1202 | (setq next-selection-coding-system coding-system)) | 1202 | (setq next-selection-coding-system coding-system)) |
| 1203 | 1203 | ||
| 1204 | (defun set-coding-priority (arg) | 1204 | (defun set-coding-priority (arg) |
| 1205 | "Set priority of coding categories according to LIST. | 1205 | "Set priority of coding categories according to ARG. |
| 1206 | LIST is a list of coding categories ordered by priority." | 1206 | ARG is a list of coding categories ordered by priority." |
| 1207 | (let ((l arg) | 1207 | (let ((l arg) |
| 1208 | (current-list (copy-sequence coding-category-list))) | 1208 | (current-list (copy-sequence coding-category-list))) |
| 1209 | ;; Check the validity of ARG while deleting coding categories in | 1209 | ;; Check the validity of ARG while deleting coding categories in |
| @@ -1354,9 +1354,8 @@ function by default." | |||
| 1354 | 1354 | ||
| 1355 | (setq set-auto-coding-function 'set-auto-coding) | 1355 | (setq set-auto-coding-function 'set-auto-coding) |
| 1356 | 1356 | ||
| 1357 | ;; Set buffer-file-coding-system of the current buffer after some text | ||
| 1358 | ;; is inserted. | ||
| 1359 | (defun after-insert-file-set-buffer-file-coding-system (inserted) | 1357 | (defun after-insert-file-set-buffer-file-coding-system (inserted) |
| 1358 | "Set `buffer-file-coding-system' of current buffer after text is inserted." | ||
| 1360 | (if last-coding-system-used | 1359 | (if last-coding-system-used |
| 1361 | (let ((coding-system | 1360 | (let ((coding-system |
| 1362 | (find-new-buffer-file-coding-system last-coding-system-used)) | 1361 | (find-new-buffer-file-coding-system last-coding-system-used)) |
| @@ -1578,6 +1577,8 @@ See also the variable `nonascii-translation-table'." | |||
| 1578 | 1577 | ||
| 1579 | (defun define-translation-table (symbol &rest args) | 1578 | (defun define-translation-table (symbol &rest args) |
| 1580 | "Define SYMBOL as a name of translation table made by ARGS. | 1579 | "Define SYMBOL as a name of translation table made by ARGS. |
| 1580 | Also set up information so that the table can be used for translations | ||
| 1581 | in a CCL program. | ||
| 1581 | 1582 | ||
| 1582 | If the first element of ARGS is a char-table of which purpose is | 1583 | If the first element of ARGS is a char-table of which purpose is |
| 1583 | translation-table, just define SYMBOL as the name of it. | 1584 | translation-table, just define SYMBOL as the name of it. |
| @@ -1586,8 +1587,9 @@ In the other case, ARGS are the same as arguments to the function | |||
| 1586 | `make-translation-table' (which see). | 1587 | `make-translation-table' (which see). |
| 1587 | 1588 | ||
| 1588 | This function sets properties `translation-table' and | 1589 | This function sets properties `translation-table' and |
| 1589 | `translation-table-id' of SYMBOL to the created table itself and | 1590 | `translation-table-id' of SYMBOL to the created table itself and the |
| 1590 | identification number of the table respectively." | 1591 | identification number of the table respectively. It also registers |
| 1592 | the table in `translation-table-vector'." | ||
| 1591 | (let ((table (if (and (char-table-p (car args)) | 1593 | (let ((table (if (and (char-table-p (car args)) |
| 1592 | (eq (char-table-subtype (car args)) | 1594 | (eq (char-table-subtype (car args)) |
| 1593 | 'translation-table)) | 1595 | 'translation-table)) |