# HG changeset patch # User Dave Love # Date 917468562 0 # Node ID a61e1da49f92918120d02676e21b109e31919ad6 # Parent 06cb71bb7bc5d129d03b4fa3c9c6992fcda3e748 (current-language-environment): Provide :link, :type (choices) and appropriate :get. diff -r 06cb71bb7bc5 -r a61e1da49f92 lisp/international/mule-cmds.el --- a/lisp/international/mule-cmds.el Wed Jan 27 10:12:43 1999 +0000 +++ b/lisp/international/mule-cmds.el Wed Jan 27 20:22:42 1999 +0000 @@ -1124,8 +1124,21 @@ (error "Bogus calling sequence")))) (defcustom current-language-environment "English" - "The last language environment specified with `set-language-environment'." + "The last language environment specified with `set-language-environment'. +This variable should only be set with Customize, which is equivalent +to using `set-language-environment'." + :link '(custom-manual "(emacs)Language Environments") :set (lambda (symbol value) (set-language-environment value)) + :get (lambda (x) + (or (car-safe (assoc-ignore-case + (if (symbolp current-language-environment) + (symbol-name current-language-environment) + current-language-environment) + language-info-alist)) + "English")) + :type (cons 'choice (mapcar (lambda (lang) + (list 'const (car lang))) + language-info-alist)) :initialize 'custom-initialize-default :group 'mule :type 'string)