comparison lisp/international/mule-cmds.el @ 83125:b545019c77b0

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
author Karoly Lorentey <lorentey@elte.hu>
date Tue, 18 May 2004 20:30:43 +0000
parents df6db683f4f1
children 24e9d5ea9a88
comparison
equal deleted inserted replaced
83124:d153d9579f9b 83125:b545019c77b0
2398 (set-display-table-and-terminal-coding-system language-name)) 2398 (set-display-table-and-terminal-coding-system language-name))
2399 2399
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)))))
2407 (if kcs (set-keyboard-coding-system kcs)))) 2413 (if kcs (set-keyboard-coding-system kcs))))
2408 2414