diff options
| author | Dave Love | 1999-01-27 20:22:42 +0000 |
|---|---|---|
| committer | Dave Love | 1999-01-27 20:22:42 +0000 |
| commit | 94d04df6d21b3fdc694a753e5903f8c33ca710df (patch) | |
| tree | 1425b00d57ec046e49479b7689bfe229ade56dcc | |
| parent | d4308a4dc15d289fa0cfbaf0b7944b761bc5069f (diff) | |
| download | emacs-94d04df6d21b3fdc694a753e5903f8c33ca710df.tar.gz emacs-94d04df6d21b3fdc694a753e5903f8c33ca710df.zip | |
(current-language-environment):
Provide :link, :type (choices) and appropriate :get.
| -rw-r--r-- | lisp/international/mule-cmds.el | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index cc72c2580c0..857c91e1f48 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1124,8 +1124,21 @@ This hook is mainly used for canceling the effect of | |||
| 1124 | (error "Bogus calling sequence")))) | 1124 | (error "Bogus calling sequence")))) |
| 1125 | 1125 | ||
| 1126 | (defcustom current-language-environment "English" | 1126 | (defcustom current-language-environment "English" |
| 1127 | "The last language environment specified with `set-language-environment'." | 1127 | "The last language environment specified with `set-language-environment'. |
| 1128 | This variable should only be set with Customize, which is equivalent | ||
| 1129 | to using `set-language-environment'." | ||
| 1130 | :link '(custom-manual "(emacs)Language Environments") | ||
| 1128 | :set (lambda (symbol value) (set-language-environment value)) | 1131 | :set (lambda (symbol value) (set-language-environment value)) |
| 1132 | :get (lambda (x) | ||
| 1133 | (or (car-safe (assoc-ignore-case | ||
| 1134 | (if (symbolp current-language-environment) | ||
| 1135 | (symbol-name current-language-environment) | ||
| 1136 | current-language-environment) | ||
| 1137 | language-info-alist)) | ||
| 1138 | "English")) | ||
| 1139 | :type (cons 'choice (mapcar (lambda (lang) | ||
| 1140 | (list 'const (car lang))) | ||
| 1141 | language-info-alist)) | ||
| 1129 | :initialize 'custom-initialize-default | 1142 | :initialize 'custom-initialize-default |
| 1130 | :group 'mule | 1143 | :group 'mule |
| 1131 | :type 'string) | 1144 | :type 'string) |