Mercurial > hg > xemacs-beta
changeset 4292:0194a744d2d3
[xemacs-hg @ 2007-11-28 21:17:45 by aidan]
When creating variant language environments, specify
tutorial-coding-system.
author | aidan |
---|---|
date | Wed, 28 Nov 2007 21:17:55 +0000 |
parents | fcc999c434bc |
children | bea04dade8af |
files | lisp/ChangeLog lisp/mule/mule-cmds.el |
diffstat | 2 files changed, 18 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Nov 27 23:18:25 2007 +0000 +++ b/lisp/ChangeLog Wed Nov 28 21:17:55 2007 +0000 @@ -1,3 +1,9 @@ +2007-11-28 Aidan Kehoe <kehoea@parhasard.net> + + * mule/mule-cmds.el (create-variant-language-environment): + Set tutorial-coding-system to correspond to the original coding + system when creating the variant language environment. + 2007-11-27 Aidan Kehoe <kehoea@parhasard.net> * bytecomp.el (byte-compile-file-form-custom-declare-variable):
--- a/lisp/mule/mule-cmds.el Tue Nov 27 23:18:25 2007 +0000 +++ b/lisp/mule/mule-cmds.el Wed Nov 28 21:17:55 2007 +0000 @@ -1099,13 +1099,18 @@ (destructive-plist-to-alist (plist-put (plist-put - (plist-put (alist-to-plist (cdr langenv)) - 'native-coding-system - coding-system) - 'coding-system (cons coding-system - (cdr (assoc 'coding-system (cdr langenv))))) - 'coding-priority (cons coding-system - (cdr (assq 'coding-priority (cdr langenv)))))))) + (plist-put + (plist-put (alist-to-plist (cdr langenv)) 'native-coding-system + coding-system) + 'coding-system (cons coding-system + (cdr (assoc 'coding-system (cdr langenv))))) + 'coding-priority (cons coding-system + (cdr (assq 'coding-priority (cdr langenv))))) + ;; The tutorial coding system is important; otherwise the tutorial file + ;; gets loaded in the variant coding system. + 'tutorial-coding-system + (or (car-safe (cdr-safe (assoc 'tutorial-coding-system (cdr langenv)))) + (car-safe (cdr-safe (assoc 'coding-system (cdr langenv))))))))) (defun get-language-environment-from-locale (locale) "Convert LOCALE into a language environment.