aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-03-18 23:16:27 +0000
committerKenichi Handa1997-03-18 23:16:27 +0000
commitf98e279785ef095a98f9bc2664e99b26e4b7dfa7 (patch)
tree0a4b4fdbac0e166a8d71d7c8a86c31916b8b05b6
parentea3fb7d263c4e616c5b69dc8e052a475f767dd3d (diff)
downloademacs-f98e279785ef095a98f9bc2664e99b26e4b7dfa7.tar.gz
emacs-f98e279785ef095a98f9bc2664e99b26e4b7dfa7.zip
(make-char): Documented.
(charset-plist): Return quoted list even if CHARSET is supplied by symbol.
-rw-r--r--lisp/international/mule.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 7e40f1ad056..53e0ab2d90d 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -184,13 +184,19 @@ PLIST (property list) may contain any type of information a user
184 184
185(defmacro charset-plist (charset) 185(defmacro charset-plist (charset)
186 (if (quoted-symbol-p charset) 186 (if (quoted-symbol-p charset)
187 (aref (charset-info (nth 1 charset)) 14) 187 `(aref ,(charset-info (nth 1 charset)) 14)
188 `(aref (charset-info ,charset) 14))) 188 `(aref (charset-info ,charset) 14)))
189 189
190(defun set-charset-plist (charset plist) 190(defun set-charset-plist (charset plist)
191 (aset (charset-info charset) 14 plist)) 191 (aset (charset-info charset) 14 plist))
192 192
193(defmacro make-char (charset &optional c1 c2) 193(defmacro make-char (charset &optional c1 c2)
194 "Return a character of CHARSET and position-codes CODE1 and CODE2.
195CODE1 and CODE2 are optional, but if you don't supply
196 sufficient position-codes, return a generic character which stands for
197all characters or group of characters in the character sets.
198A generic character can be an argument of `modify-syntax-entry' and
199`modify-category-entry'."
194 (if (quoted-symbol-p charset) 200 (if (quoted-symbol-p charset)
195 `(make-char-internal ,(charset-id (nth 1 charset)) ,c1 ,c2) 201 `(make-char-internal ,(charset-id (nth 1 charset)) ,c1 ,c2)
196 `(make-char-internal (charset-id ,charset) ,c1 ,c2))) 202 `(make-char-internal (charset-id ,charset) ,c1 ,c2)))