comparison lisp/international/mule.el @ 90269:0f622530c46c

(autoload-coding-system): Install the same function as in HEAD.
author Kenichi Handa <handa@m17n.org>
date Thu, 19 Jan 2006 07:16:47 +0000
parents d88caeac70d7
children b3b869baa1c3
comparison
equal deleted inserted replaced
90268:d88caeac70d7 90269:0f622530c46c
1124 (numberp eol) (>= eol 0) (<= eol 2)) 1124 (numberp eol) (>= eol 0) (<= eol 2))
1125 (setq first (coding-system-change-eol-conversion 1125 (setq first (coding-system-change-eol-conversion
1126 first eol))) 1126 first eol)))
1127 first)) 1127 first))
1128 1128
1129 (defun autoload-coding-system (symbol form)
1130 "Define SYMBOL as a coding-system that is defined on demand.
1131
1132 FROM is a form to evaluate to define the coding-system."
1133 (put symbol 'coding-system-define-form form)
1134 (setq coding-system-alist (cons (list (symbol-name symbol))
1135 coding-system-alist))
1136 (dolist (elt '("-unix" "-dos" "-mac"))
1137 (let ((name (concat (symbol-name symbol) elt)))
1138 (put (intern name) 'coding-system-define-form form)
1139 (setq coding-system-alist (cons (list name) coding-system-alist)))))
1140
1129 (defun set-buffer-file-coding-system (coding-system &optional force nomodify) 1141 (defun set-buffer-file-coding-system (coding-system &optional force nomodify)
1130 "Set the file coding-system of the current buffer to CODING-SYSTEM. 1142 "Set the file coding-system of the current buffer to CODING-SYSTEM.
1131 This means that when you save the buffer, it will be converted 1143 This means that when you save the buffer, it will be converted
1132 according to CODING-SYSTEM. For a list of possible values of CODING-SYSTEM, 1144 according to CODING-SYSTEM. For a list of possible values of CODING-SYSTEM,
1133 use \\[list-coding-systems]. 1145 use \\[list-coding-systems].