aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-01-31 06:42:01 +0000
committerKenichi Handa2008-01-31 06:42:01 +0000
commita32aad64df910afb931443178a6093b940477f2c (patch)
treea9d9e33ce5250f5cc61d064293b317ac218076a7
parent72000816ad927589466ab55f166a85c7803e2cce (diff)
downloademacs-a32aad64df910afb931443178a6093b940477f2c.tar.gz
emacs-a32aad64df910afb931443178a6093b940477f2c.zip
(make_ctrl_char): If C is a multibyte character, just
return it ORed with ctrl_modifier.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/keyboard.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eac48d83fbb..bef208cc3f9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
2
3 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
4 return it ORed with ctrl_modifier.
5
12008-01-26 Thien-Thi Nguyen <ttn@gnuvola.org> 62008-01-26 Thien-Thi Nguyen <ttn@gnuvola.org>
2 7
3 * fns.c (Fclrhash): Return TABLE. 8 * fns.c (Fclrhash): Return TABLE.
diff --git a/src/keyboard.c b/src/keyboard.c
index 097decb66a7..20ecf203324 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2310,6 +2310,9 @@ make_ctrl_char (c)
2310 /* Save the upper bits here. */ 2310 /* Save the upper bits here. */
2311 int upper = c & ~0177; 2311 int upper = c & ~0177;
2312 2312
2313 if (! ASCII_BYTE_P (c))
2314 return c |= ctrl_modifier;
2315
2313 c &= 0177; 2316 c &= 0177;
2314 2317
2315 /* Everything in the columns containing the upper-case letters 2318 /* Everything in the columns containing the upper-case letters