Mercurial > hg > xemacs-beta
diff lisp/mule/mule-cmds.el @ 4145:edb00a8b4eff
[xemacs-hg @ 2007-08-26 20:00:29 by aidan]
Generally make the language environments and coding systems a little more sane.
author | aidan |
---|---|
date | Sun, 26 Aug 2007 20:00:42 +0000 |
parents | b4f4e0cc90f1 |
children | 0194a744d2d3 |
line wrap: on
line diff
--- a/lisp/mule/mule-cmds.el Sat Aug 25 21:51:21 2007 +0000 +++ b/lisp/mule/mule-cmds.el Sun Aug 26 20:00:42 2007 +0000 @@ -679,7 +679,7 @@ (let ((func (get-language-info current-language-environment 'exit-function))) (run-hooks 'exit-language-environment-hook) - (if (fboundp func) (funcall func)))) + (if (functionp func) (funcall func)))) (setq current-language-environment language-name) (let ((default-eol-type (coding-system-eol-type default-buffer-file-coding-system))) @@ -757,7 +757,7 @@ (require (car required-features)) (setq required-features (cdr required-features)))) (let ((func (get-language-info language-name 'setup-function))) - (if (fboundp func) + (if (functionp func) (funcall func))) ;; Fit the charsets preferences in unicode conversions for the @@ -1021,9 +1021,9 @@ ;; auto-language-alist deleted. We have a more sophisticated system, ;; with the locales stored in the language data. -;; Initialised with an eval-when-compile in mule/general-late.el, which is -;; compiled after all the language support--and, thus, minority Chinese -;; coding systems and so on--has been loaded. +;; Initialised in mule/general-late.el, which is compiled after all the +;; language support--and, thus, minority Chinese coding systems and so +;; on--has been loaded. (defvar posix-charset-to-coding-system-hash nil "A map from the POSIX locale charset versions of the defined coding systems' names, with all alpha-numeric characters removed, to the actual