diff options
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 16 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 5 |
3 files changed, 26 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 03a23d7bdc2..16d6cd9207a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2002-02-12 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 2 | |||
| 3 | * menu-bar.el (menu-bar-options-save): Only save | ||
| 4 | `current-language-environment' and `default-input-method' when | ||
| 5 | marked as customized. | ||
| 6 | |||
| 7 | * international/mule-cmds.el | ||
| 8 | (setup-specified-language-environment): Mark | ||
| 9 | `current-language-environment' as customized. | ||
| 10 | (set-input-method): Mark | ||
| 11 | `default-input-method' as customized when called interactively. | ||
| 12 | (toggle-input-method): Ditto. | ||
| 13 | |||
| 1 | 2002-02-11 Colin Walters <walters@verbum.org> | 14 | 2002-02-11 Colin Walters <walters@verbum.org> |
| 2 | 15 | ||
| 3 | * ibuffer.el (ibuffer-switch-format): Supply required argument for | 16 | * ibuffer.el (ibuffer-switch-format): Supply required argument for |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 918076672b8..37bcddfef4e 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1103,7 +1103,10 @@ To deactivate it programmatically, use \\[inactivate-input-method]." | |||
| 1103 | (if default "Select input method (default %s): " "Select input method: ") | 1103 | (if default "Select input method (default %s): " "Select input method: ") |
| 1104 | default t)))) | 1104 | default t)))) |
| 1105 | (activate-input-method input-method) | 1105 | (activate-input-method input-method) |
| 1106 | (setq default-input-method input-method)) | 1106 | (setq default-input-method input-method) |
| 1107 | (when (interactive-p) | ||
| 1108 | (customize-mark-as-set 'default-input-method)) | ||
| 1109 | default-input-method) | ||
| 1107 | 1110 | ||
| 1108 | (defun toggle-input-method (&optional arg) | 1111 | (defun toggle-input-method (&optional arg) |
| 1109 | "Enable or disable multilingual text input method for the current buffer. | 1112 | "Enable or disable multilingual text input method for the current buffer. |
| @@ -1134,8 +1137,11 @@ and enable that one. The default is the most recent input method specified | |||
| 1134 | (if default "Input method (default %s): " "Input method: " ) | 1137 | (if default "Input method (default %s): " "Input method: " ) |
| 1135 | default t)) | 1138 | default t)) |
| 1136 | default)) | 1139 | default)) |
| 1137 | (or default-input-method | 1140 | (unless default-input-method |
| 1138 | (setq default-input-method current-input-method))))) | 1141 | (prog1 |
| 1142 | (setq default-input-method current-input-method) | ||
| 1143 | (when (interactive-p) | ||
| 1144 | (customize-mark-as-set 'default-input-method))))))) | ||
| 1139 | 1145 | ||
| 1140 | (defun describe-input-method (input-method) | 1146 | (defun describe-input-method (input-method) |
| 1141 | "Describe input method INPUT-METHOD." | 1147 | "Describe input method INPUT-METHOD." |
| @@ -1297,7 +1303,9 @@ This hook is mainly used for canceling the effect of | |||
| 1297 | (or (not (eq last-command-event 'Default)) | 1303 | (or (not (eq last-command-event 'Default)) |
| 1298 | (setq last-command-event 'English)) | 1304 | (setq last-command-event 'English)) |
| 1299 | (setq language-name (symbol-name last-command-event))) | 1305 | (setq language-name (symbol-name last-command-event))) |
| 1300 | (set-language-environment language-name) | 1306 | (prog1 |
| 1307 | (set-language-environment language-name) | ||
| 1308 | (customize-mark-as-set 'current-language-environment)) | ||
| 1301 | (error "Bogus calling sequence")))) | 1309 | (error "Bogus calling sequence")))) |
| 1302 | 1310 | ||
| 1303 | (defcustom current-language-environment "English" | 1311 | (defcustom current-language-environment "English" |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 4c8c2a5c2eb..5ae7de6b978 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -569,6 +569,7 @@ Do the same for the keys of the same name." | |||
| 569 | case-fold-search truncate-lines show-paren-mode | 569 | case-fold-search truncate-lines show-paren-mode |
| 570 | transient-mark-mode global-font-lock-mode | 570 | transient-mark-mode global-font-lock-mode |
| 571 | display-time-mode auto-compression-mode | 571 | display-time-mode auto-compression-mode |
| 572 | current-language-environment default-input-method | ||
| 572 | ;; Saving `text-mode-hook' is somewhat questionable, | 573 | ;; Saving `text-mode-hook' is somewhat questionable, |
| 573 | ;; as we might get more than we bargain for, if | 574 | ;; as we might get more than we bargain for, if |
| 574 | ;; other code may has added hooks as well. | 575 | ;; other code may has added hooks as well. |
| @@ -579,10 +580,6 @@ Do the same for the keys of the same name." | |||
| 579 | (and (get elt 'customized-value) | 580 | (and (get elt 'customized-value) |
| 580 | (customize-mark-to-save elt) | 581 | (customize-mark-to-save elt) |
| 581 | (setq need-save t))) | 582 | (setq need-save t))) |
| 582 | ;; These are set with other functions. | ||
| 583 | (dolist (elt '(current-language-environment default-input-method)) | ||
| 584 | (when (customize-mark-to-save elt) | ||
| 585 | (setq need-save t))) | ||
| 586 | ;; Save if we changed anything. | 583 | ;; Save if we changed anything. |
| 587 | (when need-save | 584 | (when need-save |
| 588 | (custom-save-all)))) | 585 | (custom-save-all)))) |