aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-08-10 04:07:03 +0000
committerKenichi Handa1997-08-10 04:07:03 +0000
commitd6d6d592014c3e4e1bfbbda42d2f920c59e5c2c5 (patch)
treec55c14d42d01bac8bd7f4226edc1e6417660b691
parent36f99a92426fc074e1e974e90d4ebd9a471de300 (diff)
downloademacs-d6d6d592014c3e4e1bfbbda42d2f920c59e5c2c5.tar.gz
emacs-d6d6d592014c3e4e1bfbbda42d2f920c59e5c2c5.zip
(make-coding-system): Add a new FLAGS
elements SAFE. Use it for terminal coding system if some other coding system is specified explicitly. (ignore-relative-composition): Initialize it.
-rw-r--r--lisp/international/mule.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 2e5fb312014..460f04a3ad4 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -355,10 +355,12 @@ TYPE is an integer value indicating the type of coding-system as follows:
355MNEMONIC is a character to be displayed on mode line for the coding-system. 355MNEMONIC is a character to be displayed on mode line for the coding-system.
356DOC-STRING is a documentation string for the coding-system. 356DOC-STRING is a documentation string for the coding-system.
357FLAGS specifies more precise information of each TYPE. 357FLAGS specifies more precise information of each TYPE.
358
358 If TYPE is 2 (ISO-2022), FLAGS should be a list of: 359 If TYPE is 2 (ISO-2022), FLAGS should be a list of:
359 CHARSET0, CHARSET1, CHARSET2, CHARSET3, SHORT-FORM, 360 CHARSET0, CHARSET1, CHARSET2, CHARSET3, SHORT-FORM,
360 ASCII-EOL, ASCII-CNTL, SEVEN, LOCKING-SHIFT, SINGLE-SHIFT, 361 ASCII-EOL, ASCII-CNTL, SEVEN, LOCKING-SHIFT, SINGLE-SHIFT,
361 USE-ROMAN, USE-OLDJIS, NO-ISO6429, INIT-BOL, DESIGNATION-BOL. 362 USE-ROMAN, USE-OLDJIS, NO-ISO6429, INIT-BOL, DESIGNATION-BOL,
363 SAFE.
362 CHARSETn are character sets initially designated to Gn graphic registers. 364 CHARSETn are character sets initially designated to Gn graphic registers.
363 If CHARSETn is nil, Gn is never used. 365 If CHARSETn is nil, Gn is never used.
364 If CHARSETn is t, Gn can be used but nothing designated initially. 366 If CHARSETn is t, Gn can be used but nothing designated initially.
@@ -378,6 +380,9 @@ FLAGS specifies more precise information of each TYPE.
378 to initial at each beginning of line on output. 380 to initial at each beginning of line on output.
379 DESIGNATION-BOL non-nil means designation sequences should be placed 381 DESIGNATION-BOL non-nil means designation sequences should be placed
380 at beginning of line on output. 382 at beginning of line on output.
383 SAFE non-nil means convert unexpected characters to `?' on output.
384 Unexpected characters are what not specified in CHARSETn directly.
385
381 If TYPE is 4 (private), FLAGS should be a cons of CCL programs, 386 If TYPE is 4 (private), FLAGS should be a cons of CCL programs,
382 for encoding and decoding. See the documentation of CCL for more detail." 387 for encoding and decoding. See the documentation of CCL for more detail."
383 388
@@ -786,6 +791,9 @@ without changing their position code(s)."
786 791
787(put 'use-default-ascent 'char-table-extra-slots 0) 792(put 'use-default-ascent 'char-table-extra-slots 0)
788(setq use-default-ascent (make-char-table 'use-default-ascent)) 793(setq use-default-ascent (make-char-table 'use-default-ascent))
794(put 'ignore-relative-composition 'char-table-extra-slots 0)
795(setq ignore-relative-composition
796 (make-char-table 'ignore-relative-composition))
789 797
790;;; 798;;;
791(provide 'mule) 799(provide 'mule)