Mercurial > emacs
comparison lisp/international/mule.el @ 88562:30c5971edc3c
Doc fixes.
(charset-list, generic-char-p, set-coding-priority): Make
obsolete.
(coding-system-get): Try to convert old-style symbol to keyword.
(define-charset): Purecopy strings in property list.
(define-coding-system): Purecopy docstring.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 17 May 2002 20:17:04 +0000 |
parents | 936dca068940 |
children | fc23956c9f9b |
comparison
equal
deleted
inserted
replaced
88561:e63aa0be6e95 | 88562:30c5971edc3c |
---|---|
187 (cons :name (cons name (cons :docstring (cons docstring props))))) | 187 (cons :name (cons name (cons :docstring (cons docstring props))))) |
188 (or (plist-get props :short-name) | 188 (or (plist-get props :short-name) |
189 (plist-put props :short-name (symbol-name name))) | 189 (plist-put props :short-name (symbol-name name))) |
190 (or (plist-get props :long-name) | 190 (or (plist-get props :long-name) |
191 (plist-put props :long-name (plist-get props :short-name))) | 191 (plist-put props :long-name (plist-get props :short-name))) |
192 ;; We can probably get a worthwhile amount in purespace. | |
193 (setq props | |
194 (mapcar (lambda (elt) | |
195 (if (stringp elt) | |
196 (purecopy elt) | |
197 elt)) | |
198 props)) | |
192 (setcdr (assq :plist attrs) props) | 199 (setcdr (assq :plist attrs) props) |
193 | 200 |
194 (apply 'define-charset-internal name (mapcar 'cdr attrs)))) | 201 (apply 'define-charset-internal name (mapcar 'cdr attrs)))) |
195 | 202 |
196 | 203 |
593 (setq i (1+ i))) | 600 (setq i (1+ i))) |
594 (setcdr (assq :flags spec-attrs) bits)))) | 601 (setcdr (assq :flags spec-attrs) bits)))) |
595 | 602 |
596 ;; Add :name and :docstring properties to PROPS. | 603 ;; Add :name and :docstring properties to PROPS. |
597 (setq props | 604 (setq props |
598 (cons :name (cons name (cons :docstring (cons docstring props))))) | 605 (cons :name (cons name (cons :docstring (cons (purecopy docstring) |
606 props))))) | |
599 (setcdr (assq :plist common-attrs) props) | 607 (setcdr (assq :plist common-attrs) props) |
600 | 608 |
601 (apply 'define-coding-system-internal | 609 (apply 'define-coding-system-internal |
602 name (mapcar 'cdr (append common-attrs spec-attrs))))) | 610 name (mapcar 'cdr (append common-attrs spec-attrs))))) |
603 | 611 |