From: Markus Rost Date: Thu, 12 Dec 2002 00:27:36 +0000 (+0000) Subject: (current-language-environment-custom-type): Return a sorted list. X-Git-Tag: ttn-vms-21-2-B4~12037 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a911ab598c7b67618c00956f0aeef32b84ccb0f;p=emacs.git (current-language-environment-custom-type): Return a sorted list. --- diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 3d824de6b46..ed4e23497d1 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -1490,9 +1490,11 @@ This hook is mainly used for canceling the effect of (defun current-language-environment-custom-type () "Return a custom type for `current-language-environment'. This is based on `language-info-alist'." - (cons 'choice (mapcar (lambda (lang) - (list 'const (car lang))) - language-info-alist))) + (cons 'choice (mapcar + (lambda (lang) + (list 'const (car lang))) + (sort (copy-sequence language-info-alist) + (lambda (x y) (string< (car x) (car y))))))) (defcustom current-language-environment "English" "The last language environment specified with `set-language-environment'.