17052
|
1 ;;; mule-cmds.el --- Commands for mulitilingual environment
|
|
2
|
|
3 ;; Copyright (C) 1995 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
|
|
5
|
|
6 ;; Keywords: mule, multilingual
|
|
7
|
|
8 ;; This file is part of GNU Emacs.
|
|
9
|
|
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
11 ;; it under the terms of the GNU General Public License as published by
|
|
12 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
13 ;; any later version.
|
|
14
|
|
15 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 ;; GNU General Public License for more details.
|
|
19
|
|
20 ;; You should have received a copy of the GNU General Public License
|
17071
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
23 ;; Boston, MA 02111-1307, USA.
|
17052
|
24
|
|
25 ;;; Code:
|
|
26
|
|
27 ;;; MULE related key bindings and menus.
|
|
28
|
|
29 (defvar mule-keymap (make-sparse-keymap "MULE")
|
|
30 "Keymap for MULE (Multilingual environment) specific commands.")
|
|
31 (fset 'mule-prefix mule-keymap)
|
|
32
|
|
33 ;; Keep "C-x C-k ..." for mule specific commands.
|
|
34 (define-key ctl-x-map "\C-k" 'mule-prefix)
|
|
35
|
|
36 (define-key global-map [menu-bar mule] (cons "Mule" mule-keymap))
|
|
37
|
|
38 (setq menu-bar-final-items (cons 'mule menu-bar-final-items))
|
|
39
|
|
40 (defvar mule-describe-language-support-map
|
|
41 (make-sparse-keymap "Describe Language Support"))
|
|
42 (fset 'mule-describe-language-support-prefix
|
|
43 mule-describe-language-support-map)
|
|
44
|
|
45 (define-key mule-keymap "m" 'toggle-enable-multibyte-characters)
|
|
46 (define-key mule-keymap "f" 'set-buffer-file-coding-system)
|
|
47 (define-key mule-keymap "t" 'set-terminal-coding-system)
|
|
48 (define-key mule-keymap "k" 'set-keyboard-coding-system)
|
|
49 (define-key mule-keymap "p" 'set-current-process-coding-system)
|
|
50 (define-key mule-keymap "i" 'select-input-method)
|
|
51
|
|
52 (define-key help-map "\C-L" 'describe-language-support)
|
|
53 (define-key help-map "\C-\\" 'describe-input-method)
|
|
54 (define-key help-map "C" 'describe-current-coding-system)
|
|
55 (define-key help-map "h" 'view-hello-file)
|
|
56
|
|
57 (define-key mule-keymap [set-process-coding-system]
|
|
58 '(" ... of process" . set-current-process-coding-system))
|
|
59 (define-key mule-keymap [set-keyboard-coding-system]
|
|
60 '(" ... of keyboard" . set-keyboard-coding-system))
|
|
61 (define-key mule-keymap [set-terminal-coding-system]
|
|
62 '(" ... of terminal" . set-terminal-coding-system))
|
|
63 (define-key mule-keymap [set-buffer-file-coding-system]
|
|
64 '(" ... of visiting file" . set-buffer-file-coding-system))
|
|
65 (define-key mule-keymap [separator-mule]
|
|
66 '("Setting coding systems"))
|
|
67 (define-key mule-keymap [describe-current-coding-system]
|
|
68 '("Describe current coding systems" . describe-current-coding-system))
|
|
69 (define-key mule-keymap [describe-language-support]
|
|
70 '("Describe language support" . mule-describe-language-support-prefix))
|
|
71 (define-key mule-keymap [view-hello-file]
|
|
72 '("Show many languages" . view-hello-file))
|
|
73 (define-key mule-keymap [describe-input-method]
|
|
74 '("Describe input method" . describe-input-method))
|
|
75 (define-key mule-keymap [select-input-method]
|
|
76 '("Select input method" . select-input-method))
|
|
77 (define-key mule-keymap [toggle-input-method]
|
|
78 '("Toggle input method" . toggle-input-method))
|
|
79 (define-key mule-keymap [toggle-mule]
|
|
80 '("Toggle MULE" . toggle-enable-multibyte-characters))
|
|
81
|
|
82 ;; These are meaningless when running under X.
|
|
83 (put 'set-keyboard-coding-system 'menu-enable
|
|
84 '(null window-system))
|
|
85 (put 'set-terminal-coding-system 'menu-enable
|
|
86 '(null window-system))
|
|
87
|
|
88
|
|
89 ;; This should be a single character key binding because users use it
|
|
90 ;; very frequently while editing multilingual text. Now we can use
|
|
91 ;; only two such keys: "\C-\\" and "\C-^", but the latter is not
|
|
92 ;; convenient because it requires shifting on most keyboards. An
|
|
93 ;; alternative is "\C-\]" which is now bound to `abort-recursive-edit'
|
|
94 ;; but it won't be used that frequently.
|
|
95 (define-key global-map "\C-\\" 'toggle-input-method)
|
|
96
|
|
97 (defun toggle-enable-multibyte-characters (&optional arg)
|
|
98 "Change whether this buffer enables multibyte characters.
|
|
99 With arg, make them enable iff arg is positive."
|
|
100 (interactive "P")
|
|
101 (setq enable-multibyte-characters
|
|
102 (if (null arg) (null enable-multibyte-characters)
|
|
103 (> (prefix-numeric-value arg) 0)))
|
|
104 (force-mode-line-update))
|
|
105
|
|
106 (defun view-hello-file ()
|
|
107 "Display the HELLO file which list up many languages and characters."
|
|
108 (interactive)
|
|
109 (find-file-read-only (expand-file-name "HELLO" data-directory)))
|
|
110
|
|
111
|
|
112 ;;; Language support staffs.
|
|
113
|
|
114 (defvar primary-language "English"
|
|
115 "Name of a user's primary language.
|
|
116 Emacs provide various language supports based on this variable.")
|
|
117
|
|
118 (defvar language-info-alist nil
|
|
119 "Alist of language names vs the corresponding information of various kind.
|
|
120 Each element looks like:
|
|
121 (LANGUAGE-NAME . ((KEY . INFO) ...))
|
|
122 where LANGUAGE-NAME is a string,
|
|
123 KEY is a symbol denoting the kind of information,
|
|
124 INFO is any Lisp object which contains the actual information related
|
|
125 to KEY.")
|
|
126
|
|
127 (defun get-language-info (language-name key)
|
|
128 "Return the information for LANGUAGE-NAME of the kind KEY.
|
|
129 LANGUAGE-NAME is a string.
|
|
130 KEY is a symbol denoting the kind of required information."
|
|
131 (let ((lang-slot (assoc language-name language-info-alist)))
|
|
132 (if lang-slot
|
|
133 (cdr (assq key (cdr lang-slot))))))
|
|
134
|
|
135 ;; Return a lambda form which calls `describe-language-support' with
|
|
136 ;; argument LANG.
|
|
137 (defun build-describe-language-support-function (lang)
|
|
138 `(lambda ()
|
|
139 (interactive)
|
|
140 (describe-language-support ,lang)))
|
|
141
|
|
142 (defun set-language-info (language-name key info)
|
|
143 "Set for LANGUAGE-NAME the information INFO under KEY.
|
|
144 LANGUAGE-NAME is a string
|
|
145 KEY is a symbol denoting the kind of information.
|
|
146 INFO is any Lisp object which contains the actual information.
|
|
147
|
|
148 Currently, the following KEYs are used by Emacs:
|
|
149 charset: list of symbols whose values are charsets specific to the language.
|
|
150 coding-system: list of coding systems specific to the langauge.
|
|
151 setup-function: see the documentation of `set-language-envrionment'.
|
|
152 tutorial: a tutorial file name written in the language.
|
|
153 sample-text: one line short text containing characters of the language.
|
|
154 documentation: a docstring describing how the language is supported,
|
|
155 or a fuction to call to describe it,
|
|
156 or t which means call `describe-language-support' to describe it.
|
|
157 input-method: alist of input method names for the language vs information
|
|
158 for activating them. Use `register-input-method' (which see)
|
|
159 to add a new input method to the alist.
|
|
160
|
|
161 Emacs will use more KEYs in the future. To avoid the conflition, users
|
|
162 should use prefix \"user-\" in the name of KEY."
|
|
163 (let (lang-slot key-slot)
|
|
164 (setq lang-slot (assoc language-name language-info-alist))
|
|
165 (if (null lang-slot) ; If no slot for the language, add it.
|
|
166 (setq lang-slot (list language-name)
|
|
167 language-info-alist (cons lang-slot language-info-alist)))
|
|
168 (setq key-slot (assq key lang-slot))
|
|
169 (if (null key-slot) ; If no slot for the key, add it.
|
|
170 (progn
|
|
171 (setq key-slot (list key))
|
|
172 (setcdr lang-slot (cons key-slot (cdr lang-slot)))))
|
|
173 (setcdr key-slot info)
|
|
174 ;; Setup menu.
|
|
175 (if (eq key 'documentation)
|
|
176 (define-key mule-describe-language-support-map
|
|
177 (vector (intern language-name))
|
|
178 (cons language-name
|
|
179 (build-describe-language-support-function language-name))))
|
|
180 ))
|
|
181
|
|
182 (defun set-language-info-alist (language-name alist)
|
|
183 "Set for LANGUAGE-NAME the information in ALIST.
|
|
184 ALIST is an alist of KEY and INFO. See the documentation of
|
|
185 `set-langauge-info' for the meanings of KEY and INFO."
|
|
186 (while alist
|
|
187 (set-language-info language-name (car (car alist)) (cdr (car alist)))
|
|
188 (setq alist (cdr alist))))
|
|
189
|
|
190 (defun read-language-name (key prompt &optional initial-input)
|
|
191 "Read language name which has information for KEY, prompting with PROMPT."
|
|
192 (let* ((completion-ignore-case t)
|
|
193 (name (completing-read prompt
|
|
194 language-info-alist
|
|
195 (function (lambda (elm) (assq key elm)))
|
|
196 t
|
|
197 initial-input)))
|
|
198 ;; In spite of the documentation, completing-read returns null
|
|
199 ;; string instead of nil if input is null.
|
|
200 (and (> (length name) 0) name)))
|
|
201
|
|
202 ;;; Multilingual input methods.
|
|
203
|
|
204 (defvar current-input-method nil
|
|
205 "The current input method for multilingual text.
|
|
206 The value is a cons of language name and input method name.
|
|
207 If nil, it means no input method is activated now.")
|
|
208 (make-variable-buffer-local 'current-input-method)
|
|
209 (put 'current-input-method 'permanent-local t)
|
|
210
|
|
211 (defvar current-input-method-title nil
|
|
212 "Title string of the current input method shown in mode line.
|
|
213 Every input method should set this an appropriate value when activated.")
|
|
214 (make-variable-buffer-local 'current-input-method-title)
|
|
215 (put 'current-input-method-title 'permanent-local t)
|
|
216
|
|
217 (defvar default-input-method nil
|
|
218 "Default input method.
|
|
219 The default input method is the one activated automatically by the command
|
|
220 `toggle-input-method' (\\[toggle-input-method]).
|
|
221 The value is a cons of language name and input method name.")
|
|
222
|
|
223 (defvar default-input-method-title nil
|
|
224 "Title string of the default input method.")
|
|
225
|
|
226 (defvar previous-input-method nil
|
|
227 "Input method selected previously.
|
|
228 This is the one selected before the current input method is selected.
|
|
229 See also the documentation of `default-input-method'.")
|
|
230
|
|
231 (defvar inactivate-current-input-method-function nil
|
|
232 "Function to call for inactivating the current input method.
|
|
233 Every input method should set this to an appropriate value when activated.
|
|
234 This function is called with no argument.")
|
|
235 (make-variable-buffer-local 'inactivate-current-input-method-function)
|
|
236 (put 'inactivate-current-input-method-function 'permanent-local t)
|
|
237
|
|
238 (defvar describe-current-input-method-function nil
|
|
239 "Function to call for describing the current input method.
|
|
240 This function is called with no argument.")
|
|
241 (make-variable-buffer-local 'describe-current-input-method-function)
|
|
242 (put 'describe-current-input-method-function 'permanent-local t)
|
|
243
|
|
244 (defun register-input-method (language-name input-method)
|
|
245 "Register INPUT-METHOD as an input method of LANGUAGE-NAME.
|
|
246 LANGUAGE-NAME is a string.
|
|
247 INPUT-METHOD is a list of the form:
|
|
248 (METHOD-NAME ACTIVATE-FUNC ARG ...)
|
|
249 where METHOD-NAME is the name of this method,
|
|
250 ACTIVATE-FUNC is the function to call for activating this method.
|
|
251 Arguments for the function are METHOD-NAME and ARGs."
|
|
252 (let ((slot (get-language-info language-name 'input-method))
|
|
253 method-slot)
|
|
254 (if (null slot)
|
|
255 (set-language-info language-name 'input-method (list input-method))
|
|
256 (setq method-slot (assoc (car input-method) slot))
|
|
257 (if method-slot
|
|
258 (setcdr method-slot (cdr input-method))
|
|
259 (set-language-info language-name 'input-method
|
|
260 (cons input-method slot))))))
|
|
261
|
|
262 (defun read-language-and-input-method-name ()
|
|
263 "Read a language names and the corresponding input method from a minibuffer.
|
|
264 Return a cons of those names."
|
|
265 (let ((language-name (read-language-name
|
|
266 'input-method
|
|
267 "Language: "
|
|
268 (if previous-input-method
|
|
269 (cons (car previous-input-method) 0)))))
|
|
270 (if (null language-name)
|
|
271 (error "No input method for the specified language"))
|
|
272 (let* ((completion-ignore-case t)
|
|
273 (key-slot
|
|
274 (assq 'input-method
|
|
275 (cdr (assoc language-name language-info-alist))))
|
|
276 (method-name
|
|
277 (completing-read "Input method: " (cdr key-slot) nil t
|
|
278 (if (and previous-input-method
|
|
279 (string= language-name
|
|
280 (car previous-input-method)))
|
|
281 (cons (cdr previous-input-method) 0)))))
|
|
282 ;; In spite of the documentation, completing-read returns
|
|
283 ;; null string instead of nil if input is null.
|
|
284 (if (= (length method-name) 0)
|
|
285 (error "No input method specified"))
|
|
286 (list language-name method-name))))
|
|
287
|
|
288 (defun set-default-input-method (language-name method-name)
|
|
289 "Set the default input method to METHOD-NAME for inputting LANGUAGE-NAME.
|
|
290 The default input method is the one activated automatically by the command
|
|
291 `toggle-input-method' (\\[toggle-input-method]).
|
|
292 This doesn't affect the currently activated input method."
|
|
293 (interactive (read-language-and-input-method-name))
|
|
294 (let* ((key-slot (get-language-info language-name 'input-method))
|
|
295 (method-slot (assoc method-name key-slot)))
|
|
296 (if (null method-slot)
|
|
297 (error "No input method `%s' for %s" method-name language-name))
|
|
298 (setq default-input-method (cons language-name method-name))))
|
|
299
|
|
300 (defun select-input-method (language-name method-name)
|
|
301 "Select and activate input method METHOD-NAME for inputting LANGUAGE-NAME.
|
|
302 The information for activating METHOD-NAME is stored
|
|
303 in `language-info-alist' under the key 'input-method.
|
|
304 The format of the information has the form:
|
|
305 ((METHOD-NAME ACTIVATE-FUNC ARG ...) ...)
|
|
306 where ACTIVATE-FUNC is a function to call for activating this method.
|
|
307 Arguments for the function are METHOD-NAME and ARGs."
|
|
308 (interactive (read-language-and-input-method-name))
|
|
309 (let* ((key-slot (get-language-info language-name 'input-method))
|
|
310 (method-slot (assoc method-name key-slot)))
|
|
311 (if (null method-slot)
|
|
312 (error "No input method `%s' for %s" method-name language-name))
|
|
313 (if current-input-method
|
|
314 (progn
|
|
315 (if (not (equal previous-input-method current-input-method))
|
|
316 (setq previous-input-method current-input-method))
|
|
317 (funcall inactivate-current-input-method-function)))
|
|
318 (setq method-slot (cdr method-slot))
|
|
319 (apply (car method-slot) method-name (cdr method-slot))
|
|
320 (setq default-input-method
|
|
321 (setq current-input-method (cons language-name method-name)))
|
|
322 (setq default-input-method-title current-input-method-title)
|
|
323 (setq current-input-method default-input-method)))
|
|
324
|
|
325 (defun toggle-input-method (&optional arg)
|
|
326 "Toggle whether a multilingual input method is activated in this buffer.
|
|
327 With arg, activate an input method specified interactively.
|
|
328 Without arg, the method being activated is the one selected most recently,
|
|
329 but if no input method has ever been selected, select one interactively."
|
|
330 (interactive "P")
|
|
331 (if arg
|
|
332 (call-interactively 'select-input-method)
|
|
333 (if (null current-input-method)
|
|
334 (if default-input-method
|
|
335 (select-input-method (car default-input-method)
|
|
336 (cdr default-input-method))
|
|
337 (call-interactively 'select-input-method))
|
|
338 (funcall inactivate-current-input-method-function)
|
|
339 (setq current-input-method nil))))
|
|
340
|
|
341 (defun describe-input-method ()
|
|
342 "Describe the current input method."
|
|
343 (interactive)
|
|
344 (if current-input-method
|
|
345 (if (and (symbolp describe-current-input-method-function)
|
|
346 (fboundp describe-current-input-method-function))
|
|
347 (funcall describe-current-input-method-function)
|
|
348 (message "No way to describe the current input method `%s'"
|
|
349 (cdr current-input-method))
|
|
350 (ding))
|
|
351 (message "No input method is activated now")
|
|
352 (ding)))
|
|
353
|
|
354 (defun read-multilingual-string (prompt &optional initial-input
|
|
355 language-name method-name)
|
|
356 "Read a multilingual string from minibuffer, prompting with string PROMPT.
|
|
357 The input method selected last time is activated in minibuffer.
|
|
358 If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
|
|
359 Optional 3rd and 4th arguments LANGUAGE-NAME and METHOD-NAME specify
|
|
360 the input method to be activated instead of the one selected last time."
|
|
361 (let ((minibuffer-setup-hook '(toggle-input-method))
|
|
362 (default-input-method default-input-method))
|
|
363 (if (and language-name method-name)
|
|
364 (set-default-input-method language-name method-name))
|
|
365 (read-string prompt initial-input)))
|
|
366
|
|
367 ;; Variables to control behavior of input methods. All input methods
|
|
368 ;; should react to these variables.
|
|
369
|
|
370 (defvar input-method-tersely-flag nil
|
|
371 "*If this flag is non-nil, input method works rather tersely.
|
|
372
|
|
373 For instance, Quail input method does not show guidance buffer while
|
|
374 inputting at minibuffer if this flag is t.")
|
|
375
|
|
376 (defvar input-method-activate-hook nil
|
|
377 "Normal hook run just after an input method is activated.")
|
|
378
|
|
379 (defvar input-method-inactivate-hook nil
|
|
380 "Normal hook run just after an input method is inactivated.")
|
|
381
|
|
382 (defvar input-method-after-insert-chunk-hook nil
|
|
383 "Normal hook run just after an input method insert some chunk of text.")
|
|
384
|
|
385
|
|
386 ;;; Language specific setup functions.
|
|
387 (defun set-language-environment (language-name)
|
|
388 "Setup a user's environment for LANGUAGE-NAME.
|
|
389
|
|
390 To setup, a fucntion returned by:
|
|
391 (get-language-info LANGUAGE-NAME 'setup-function)
|
|
392 is called."
|
|
393 (interactive (list (read-language-name 'setup-function "Language: ")))
|
|
394 (let (func)
|
|
395 (if (or (null language-name)
|
|
396 (null (setq func
|
|
397 (get-language-info language-name 'setup-function))))
|
|
398 (error "No way to setup environment for the specified language"))
|
|
399 (funcall func)))
|
|
400
|
|
401 ;; Print all arguments with `princ', then print "\n".
|
|
402 (defsubst princ-list (&rest args)
|
|
403 (while args (princ (car args)) (setq args (cdr args)))
|
|
404 (princ "\n"))
|
|
405
|
|
406 (defun describe-language-support (language-name)
|
|
407 "Show documentation about how Emacs supports LANGUAGE-NAME."
|
|
408 (interactive (list (read-language-name 'documentation "Language: ")))
|
|
409 (let (doc)
|
|
410 (if (or (null language-name)
|
|
411 (null (setq doc
|
|
412 (get-language-info language-name 'documentation))))
|
|
413 (error "No documentation for the specified language"))
|
|
414 (with-output-to-temp-buffer "*Help*"
|
|
415 (if (not (eq doc t))
|
|
416 (cond ((stringp doc)
|
|
417 (princ doc))
|
|
418 ((and (symbolp doc) (fboundp doc))
|
|
419 (funcall doc))
|
|
420 (t
|
|
421 (error "Invalid documentation data for %s" language-name)))
|
|
422 (princ-list "List of items specific to "
|
|
423 language-name
|
|
424 " environment")
|
|
425 (princ "-----------------------------------------------------------\n")
|
|
426 (let ((str (get-language-info language-name 'sample-text)))
|
|
427 (if (stringp str)
|
|
428 (progn
|
|
429 (princ "<sample text>\n")
|
|
430 (princ-list " " str))))
|
|
431 (princ "<input methods>\n")
|
|
432 (let ((l (get-language-info language-name 'input-method)))
|
|
433 (while l
|
|
434 (princ-list " " (car (car l)))
|
|
435 (setq l (cdr l))))
|
|
436 (princ "<character sets>\n")
|
|
437 (let ((l (get-language-info language-name 'charset)))
|
|
438 (if (null l)
|
|
439 (princ-list " nothing specific to " language-name)
|
|
440 (while l
|
|
441 (princ-list " " (car l)
|
|
442 (format ":%3d:\n\t" (charset-id (car l)))
|
|
443 (charset-description (car l)))
|
|
444 (setq l (cdr l)))))
|
|
445 (princ "<coding systems>\n")
|
|
446 (let ((l (get-language-info language-name 'coding-system)))
|
|
447 (if (null l)
|
|
448 (princ-list " nothing specific to " language-name)
|
|
449 (while l
|
|
450 (princ-list " " (car l) ":\n\t"
|
|
451 (coding-system-docstring (car l)))
|
|
452 (setq l (cdr l)))))))))
|
|
453
|
|
454 ;;; Charset property
|
|
455
|
|
456 (defsubst get-charset-property (charset propname)
|
|
457 "Return the value of CHARSET's PROPNAME property.
|
|
458 This is the last value stored with
|
|
459 `(put-charset-property CHARSET PROPNAME VALUE)'."
|
|
460 (plist-get (charset-plist charset) propname))
|
|
461
|
|
462 (defsubst put-charset-property (charset propname value)
|
|
463 "Store CHARSETS's PROPNAME property with value VALUE.
|
|
464 It can be retrieved with `(get-charset-property CHARSET PROPNAME)'."
|
|
465 (set-charset-plist charset
|
|
466 (plist-put (charset-plist charset) propname value)))
|
|
467
|
|
468 ;;; Character code property
|
|
469 (put 'char-code-property-table 'char-table-extra-slots 0)
|
|
470
|
|
471 (defvar char-code-property-table
|
|
472 (make-char-table 'char-code-property-table)
|
|
473 "Char-table containing a property list of each character code.
|
|
474
|
|
475 See also the documentation of `get-char-code-property' and
|
|
476 `put-char-code-property'")
|
|
477
|
|
478 (defun get-char-code-property (char propname)
|
|
479 "Return the value of CHAR's PROPNAME property in `char-code-property-table'."
|
|
480 (let ((plist (aref char-code-property-table char)))
|
|
481 (if (listp plist)
|
|
482 (car (cdr (memq propname plist))))))
|
|
483
|
|
484 (defun put-char-code-property (char propname value)
|
|
485 "Store CHAR's PROPNAME property with VALUE in `char-code-property-table'.
|
|
486 It can be retrieved with `(get-char-code-property CHAR PROPNAME)'."
|
|
487 (let ((plist (aref char-code-property-table char)))
|
|
488 (if plist
|
|
489 (let ((slot (memq propname plist)))
|
|
490 (if slot
|
|
491 (setcar (cdr slot) value)
|
|
492 (nconc plist (list propname value))))
|
|
493 (aset char-code-property-table char (list propname value)))))
|
|
494
|
|
495 ;;; mule-cmds.el ends here
|