mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
(current-language-environment-custom-type): Return a sorted list.
This commit is contained in:
parent
649fc2c55b
commit
5a911ab598
@ -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'.
|
||||
|
Loading…
Reference in New Issue
Block a user