;;; Code:
-(defconst ccl-command-table
+(defgroup ccl nil
+ "CCL (Code Conversion Language) compiler."
+ :prefix "ccl-"
+ :group 'i18n)
+
+(defcustom ccl-command-table
[if branch loop break repeat write-repeat write-read-repeat
read read-if read-branch write call end
read-multibyte-character write-multibyte-character
unify-character
iterate-multiple-map translate-multiple-map translate-single-map]
- "*Vector of CCL commands (symbols).")
+ "*Vector of CCL commands (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
;; Put a property to each symbol of CCL commands for the compiler.
(let (op (i 0) (len (length ccl-command-table)))
(put op 'ccl-compile-function (intern (format "ccl-compile-%s" op)))
(setq i (1+ i))))
-(defconst ccl-code-table
+(defcustom ccl-code-table
[set-register
set-short-const
set-const
read-jump-cond-expr-register
ex-cmd
]
- "*Vector of CCL compiled codes (symbols).")
+ "*Vector of CCL compiled codes (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
-(defconst ccl-extended-code-table
+(defcustom ccl-extended-code-table
[read-multibyte-character
write-multibyte-character
unify-character
translate-multiple-map
translate-single-map
]
- "Vector of CCL extended compiled codes (symbols).")
+ "Vector of CCL extended compiled codes (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
;; Put a property to each symbol of CCL codes for the disassembler.
(let (code (i 0) (len (length ccl-code-table)))
(put (car l) 'jump-flag t)
(setq l (cdr l))))
-(defconst ccl-register-table
+(defcustom ccl-register-table
[r0 r1 r2 r3 r4 r5 r6 r7]
- "*Vector of CCL registers (symbols).")
+ "*Vector of CCL registers (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
;; Put a property to indicate register number to each symbol of CCL.
;; registers.
(put reg 'ccl-register-number i)
(setq i (1+ i))))
-(defconst ccl-arith-table
+(defcustom ccl-arith-table
[+ - * / % & | ^ << >> <8 >8 // nil nil nil
< > == <= >= != de-sjis en-sjis]
- "*Vector of CCL arithmetic/logical operators (symbols).")
+ "*Vector of CCL arithmetic/logical operators (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
;; Put a property to each symbol of CCL operators for the compiler.
(let (arith (i 0) (len (length ccl-arith-table)))
(if arith (put arith 'ccl-arith-code i))
(setq i (1+ i))))
-(defconst ccl-assign-arith-table
+(defcustom ccl-assign-arith-table
[+= -= *= /= %= &= |= ^= <<= >>= <8= >8= //=]
- "*Vector of CCL assignment operators (symbols).")
+ "*Vector of CCL assignment operators (symbols)."
+ :type '(vector (repeat :inline t symbol))
+ :group 'ccl)
;; Put a property to each symbol of CCL assignment operators for the compiler.
(let (arith (i 0) (len (length ccl-assign-arith-table)))
(provide 'iso-acc)
-(defvar iso-accents-insert-offset nonascii-insert-offset
- "*Offset added by ISO Accents mode to character codes 0200 and above.")
+(defgroup iso-acc nil
+ "Minor mode providing electric accent keys."
+ :prefix "iso-accents-"
+ :group 'i18n)
+
+(defcustom iso-accents-insert-offset nonascii-insert-offset
+ "*Offset added by ISO Accents mode to character codes 0200 and above."
+ :type 'integer
+ :group 'iso-acc)
(defvar iso-languages
'(("catalan"
(defvar iso-accents-list nil
"Association list for ISO accent combinations, for the chosen language.")
-(defvar iso-accents-mode nil
+(defcustom iso-accents-mode nil
"*Non-nil enables ISO Accents mode.
Setting this variable makes it local to the current buffer.
-See the function `iso-accents-mode'.")
+See the function `iso-accents-mode'."
+ :type 'boolean
+ :group 'iso-acc)
(make-variable-buffer-local 'iso-accents-mode)
-(defvar iso-accents-enable '(?' ?` ?^ ?\" ?~ ?/)
+(defcustom iso-accents-enable '(?' ?` ?^ ?\" ?~ ?/)
"*List of accent keys that become prefixes in ISO Accents mode.
The default is (?' ?` ?^ ?\" ?~ ?/), which contains all the supported
accent keys. If you set this variable to a list in which some of those
Note that if you specify a language with `iso-accents-customize',
that can also turn off certain prefixes (whichever ones are not needed in
-the language you choose).")
+the language you choose)."
+ :type '(repeat character)
+ :group 'iso-acc)
(defun iso-accents-accent-key (prompt)
"Modify the following character by adding an accent to it."