Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5df39998
Commit
5df39998
authored
May 07, 2007
by
Stefan Monnier
Browse files
(Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
mapping for unibyte strings.
parent
59c58fea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/ChangeLog
src/ChangeLog
+7
-2
src/keymap.c
src/keymap.c
+3
-2
No files found.
src/ChangeLog
View file @
5df39998
2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
* keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
mapping for unibyte strings.
2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
...
...
@@ -62,8 +67,8 @@
2007-04-16 Chong Yidong <cyd@stupidchicken.com>
* dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
Set
garbaged flag in presence of window margins.
* dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
Set
garbaged flag in presence of window margins.
(showing_window_margins_p): New function.
* xdisp.c (cursor_row_p): Only end row on newline if it's a
...
...
src/keymap.c
View file @
5df39998
...
...
@@ -1156,7 +1156,8 @@ binding KEY to DEF is added at the front of KEYMAP. */)
if
(
SYMBOLP
(
def
)
&&
!
EQ
(
Vdefine_key_rebound_commands
,
Qt
))
Vdefine_key_rebound_commands
=
Fcons
(
def
,
Vdefine_key_rebound_commands
);
meta_bit
=
VECTORP
(
key
)
?
meta_modifier
:
0x80
;
meta_bit
=
(
VECTORP
(
key
)
||
STRINGP
(
key
)
&&
STRING_MULTIBYTE
(
key
)
?
meta_modifier
:
0x80
);
if
(
VECTORP
(
def
)
&&
ASIZE
(
def
)
>
0
&&
CONSP
(
AREF
(
def
,
0
)))
{
/* DEF is apparently an XEmacs-style keyboard macro. */
...
...
@@ -1312,7 +1313,7 @@ recognize the default bindings, just as `read-key-sequence' does. */)
c
=
Fevent_convert_list
(
c
);
/* Turn the 8th bit of string chars into a meta modifier. */
if
(
INTEGERP
(
c
)
&&
XINT
(
c
)
&
0x8
0
&&
STRING
P
(
key
))
if
(
STRINGP
(
key
)
&&
XINT
(
c
)
&
0x8
&&
!
STRING
_MULTIBYTE
(
key
))
XSETINT
(
c
,
(
XINT
(
c
)
|
meta_modifier
)
&
~
0x80
);
/* Allow string since binding for `menu-bar-select-buffer'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment