changeset 48812:60a4a6de5633

(current-language-environment-custom-type): Return a sorted list.
author Markus Rost <rost@math.uni-bielefeld.de>
date Thu, 12 Dec 2002 00:27:36 +0000
parents 0e87fa6109bb
children 47c6ac3517f8
files lisp/international/mule-cmds.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule-cmds.el	Wed Dec 11 23:32:41 2002 +0000
+++ b/lisp/international/mule-cmds.el	Thu Dec 12 00:27:36 2002 +0000
@@ -1490,9 +1490,11 @@
 (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'.