aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2004-05-18 20:30:43 +0000
committerKaroly Lorentey2004-05-18 20:30:43 +0000
commitf3c9434fad0ae6dfcadf44292df1472a402b5738 (patch)
treeff6e71214e31e12ccb74808f947b23a1f562b277
parent35dfa9b69ea92e3383a5dd325e54fa05e469cc1c (diff)
downloademacs-f3c9434fad0ae6dfcadf44292df1472a402b5738.tar.gz
emacs-f3c9434fad0ae6dfcadf44292df1472a402b5738.zip
Add kludge to prevent overriding keyboard-coding-system customization.
lisp/international/mule-cmds.el (set-locale-environment): Don't set keyboard-coding-system if it is already set (reported by Friedrich Delgado Friedrichs). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-165
-rw-r--r--README.multi-tty4
-rw-r--r--lisp/international/mule-cmds.el8
2 files changed, 11 insertions, 1 deletions
diff --git a/README.multi-tty b/README.multi-tty
index 0c1e4eb2739..091e9675ddf 100644
--- a/README.multi-tty
+++ b/README.multi-tty
@@ -218,6 +218,10 @@ THINGS TO DO
218 settings as Emacs itself. This may lead to bogus results in a 218 settings as Emacs itself. This may lead to bogus results in a
219 multi-locale setup. (E.g., while logging in from a remote client 219 multi-locale setup. (E.g., while logging in from a remote client
220 with a different locale.) 220 with a different locale.)
221 (Update after new bugreport by Friedrich Delgado Friedrichs:
222 (at least) the structs terminal_coding and keyboard_coding in
223 coding.c must be moved to struct display, and the Lisp interface
224 [set-]keyboard-coding-system must be adapted for the change.)
221 225
222** The single-keyboard mode of MULTI_KBOARD is extremely confusing 226** The single-keyboard mode of MULTI_KBOARD is extremely confusing
223 sometimes; Emacs does not respond to stimuli from other keyboards. 227 sometimes; Emacs does not respond to stimuli from other keyboards.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 24664f9fc64..d8683b53ec9 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2400,7 +2400,13 @@ See also `locale-charset-language-names', `locale-language-names',
2400 ;; Set the `keyboard-coding-system' if appropriate (tty 2400 ;; Set the `keyboard-coding-system' if appropriate (tty
2401 ;; only). At least X and MS Windows can generate 2401 ;; only). At least X and MS Windows can generate
2402 ;; multilingual input. 2402 ;; multilingual input.
2403 (unless window-system 2403 (unless (or window-system
2404 keyboard-coding-system)
2405 ;; FIXME: keyboard-coding-system must be removed from the above
2406 ;; condition when multi-tty locale handling is correctly
2407 ;; implemented. Also, unconditionally overriding it with nil
2408 ;; is not a good idea, as it ignores the user's
2409 ;; customization. -- lorentey
2404 (let ((kcs (or coding-system 2410 (let ((kcs (or coding-system
2405 (car (get-language-info language-name 2411 (car (get-language-info language-name
2406 'coding-system))))) 2412 'coding-system)))))