aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-05-20 02:17:50 +0000
committerChong Yidong2009-05-20 02:17:50 +0000
commit4b77f8a33fb4124bef3b22f616bd7e1440f590f4 (patch)
tree85e4cc4b09015be57fcaaada19184fe27e014ebc
parent089c16bf150f554b34295ccd40cbd6398ae27b4c (diff)
downloademacs-4b77f8a33fb4124bef3b22f616bd7e1440f590f4.tar.gz
emacs-4b77f8a33fb4124bef3b22f616bd7e1440f590f4.zip
* international/encoded-kb.el (encoded-kbd-setup-display): Change
DISPLAY arg to TERMINAL. * international/mule.el (set-terminal-coding-system) (set-keyboard-coding-system): Change DISPLAY arg to TERMINAL.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/international/encoded-kb.el10
-rw-r--r--lisp/international/mule.el24
3 files changed, 27 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index df4ec143491..4445dd3461f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12009-05-20 Chong Yidong <cyd@stupidchicken.com>
2
3 * international/encoded-kb.el (encoded-kbd-setup-display): Change
4 DISPLAY arg to TERMINAL.
5
6 * international/mule.el (set-terminal-coding-system)
7 (set-keyboard-coding-system): Change DISPLAY arg to TERMINAL.
8
12009-05-19 Alan Mackenzie <acm@muc.de> 92009-05-19 Alan Mackenzie <acm@muc.de>
2 10
3 * progmodes/cc-mode.el (c-extend-and-neutralize-CPP-line): Renamed 11 * progmodes/cc-mode.el (c-extend-and-neutralize-CPP-line): Renamed
diff --git a/lisp/international/encoded-kb.el b/lisp/international/encoded-kb.el
index a2efd390fc6..62fd6f1c17b 100644
--- a/lisp/international/encoded-kb.el
+++ b/lisp/international/encoded-kb.el
@@ -351,11 +351,13 @@ The following key sequence may cause multilingual text insertion."
351 nil))) 351 nil)))
352 352
353;;;###autoload 353;;;###autoload
354(defun encoded-kbd-setup-display (display) 354(defun encoded-kbd-setup-display (terminal)
355 "Set up a `input-decode-map' for `keyboard-coding-system' on DISPLAY. 355 "Set up a `input-decode-map' for `keyboard-coding-system' on TERMINAL.
356 356
357DISPLAY may be a display id, a frame, or nil for the selected frame's display." 357TERMINAL may be a terminal id, a frame, or nil for the selected frame's terminal."
358 (let ((frame (if (framep display) display (car (frames-on-display-list display))))) 358 (let ((frame (if (framep terminal)
359 terminal
360 (car (frames-on-display-list terminal)))))
359 (when frame 361 (when frame
360 (with-selected-frame frame 362 (with-selected-frame frame
361 ;; Remove any previous encoded-kb keymap from input-decode-map. 363 ;; Remove any previous encoded-kb keymap from input-decode-map.
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 236b48c9bdb..dc96d21bdbb 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1233,17 +1233,18 @@ to CODING-SYSTEM."
1233This is normally set according to the selected language environment. 1233This is normally set according to the selected language environment.
1234See also the command `set-terminal-coding-system'.") 1234See also the command `set-terminal-coding-system'.")
1235 1235
1236(defun set-terminal-coding-system (coding-system &optional display) 1236(defun set-terminal-coding-system (coding-system &optional terminal)
1237 "Set coding system of terminal output to CODING-SYSTEM. 1237 "Set coding system of terminal output to CODING-SYSTEM.
1238All text output to DISPLAY will be encoded 1238All text output to TERMINAL will be encoded
1239with the specified coding system. 1239with the specified coding system.
1240 1240
1241For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]. 1241For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems].
1242The default is determined by the selected language environment 1242The default is determined by the selected language environment
1243or by the previous use of this command. 1243or by the previous use of this command.
1244 1244
1245DISPLAY may be a display id, a frame, or nil for the selected frame's display. 1245TERMINAL may be a terminal object, a frame, or nil for the
1246The setting has no effect on graphical displays." 1246selected frame's terminal. The setting has no effect on
1247graphical terminals."
1247 (interactive 1248 (interactive
1248 (list (let ((default (if (and (not (terminal-coding-system)) 1249 (list (let ((default (if (and (not (terminal-coding-system))
1249 default-terminal-coding-system) 1250 default-terminal-coding-system)
@@ -1257,7 +1258,7 @@ The setting has no effect on graphical displays."
1257 (setq coding-system default-terminal-coding-system)) 1258 (setq coding-system default-terminal-coding-system))
1258 (if coding-system 1259 (if coding-system
1259 (setq default-terminal-coding-system coding-system)) 1260 (setq default-terminal-coding-system coding-system))
1260 (set-terminal-coding-system-internal coding-system display) 1261 (set-terminal-coding-system-internal coding-system terminal)
1261 (redraw-frame (selected-frame))) 1262 (redraw-frame (selected-frame)))
1262 1263
1263(defvar default-keyboard-coding-system nil 1264(defvar default-keyboard-coding-system nil
@@ -1265,8 +1266,8 @@ The setting has no effect on graphical displays."
1265This is normally set according to the selected language environment. 1266This is normally set according to the selected language environment.
1266See also the command `set-keyboard-coding-system'.") 1267See also the command `set-keyboard-coding-system'.")
1267 1268
1268(defun set-keyboard-coding-system (coding-system &optional display) 1269(defun set-keyboard-coding-system (coding-system &optional terminal)
1269 "Set coding system for keyboard input on DISPLAY to CODING-SYSTEM. 1270 "Set coding system for keyboard input on TERMINAL to CODING-SYSTEM.
1270In addition, this command calls `encoded-kbd-setup-display' to set up the 1271In addition, this command calls `encoded-kbd-setup-display' to set up the
1271translation of keyboard input events to the specified coding system. 1272translation of keyboard input events to the specified coding system.
1272 1273
@@ -1274,8 +1275,9 @@ For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems].
1274The default is determined by the selected language environment 1275The default is determined by the selected language environment
1275or by the previous use of this command. 1276or by the previous use of this command.
1276 1277
1277DISPLAY may be a display id, a frame, or nil for the selected frame's display. 1278TERMINAL may be a terminal object, a frame, or nil for the
1278The setting has no effect on graphical displays." 1279selected frame's terminal. The setting has no effect on
1280graphical terminals."
1279 (interactive 1281 (interactive
1280 (list (let ((default (if (and (not (keyboard-coding-system)) 1282 (list (let ((default (if (and (not (keyboard-coding-system))
1281 default-keyboard-coding-system) 1283 default-keyboard-coding-system)
@@ -1293,9 +1295,9 @@ The setting has no effect on graphical displays."
1293 (not (coding-system-get coding-system :ascii-compatible-p)) 1295 (not (coding-system-get coding-system :ascii-compatible-p))
1294 (not (coding-system-get coding-system :suitable-for-keyboard))) 1296 (not (coding-system-get coding-system :suitable-for-keyboard)))
1295 (error "%s is not suitable for keyboard" coding-system)) 1297 (error "%s is not suitable for keyboard" coding-system))
1296 (set-keyboard-coding-system-internal coding-system display) 1298 (set-keyboard-coding-system-internal coding-system terminal)
1297 (setq keyboard-coding-system coding-system) 1299 (setq keyboard-coding-system coding-system)
1298 (encoded-kbd-setup-display display)) 1300 (encoded-kbd-setup-display terminal))
1299 1301
1300(defcustom keyboard-coding-system nil 1302(defcustom keyboard-coding-system nil
1301 "Specify coding system for keyboard input. 1303 "Specify coding system for keyboard input.