Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bc89c609
Commit
bc89c609
authored
Aug 14, 2000
by
Gerd Moellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(push_key_description): If C without modifiers is < 32,
make sure to print `C-' before `M-', like in the manual.
parent
6eb6c4c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/keymap.c
src/keymap.c
+8
-4
No files found.
src/keymap.c
View file @
bc89c609
...
...
@@ -1824,8 +1824,12 @@ push_key_description (c, p)
register
unsigned
int
c
;
register
char
*
p
;
{
unsigned
c2
;
/* Clear all the meaningless bits above the meta bit. */
c
&=
meta_modifier
|
~
-
meta_modifier
;
c2
=
c
&
~
(
alt_modifier
|
ctrl_modifier
|
hyper_modifier
|
meta_modifier
|
shift_modifier
|
super_modifier
);
if
(
c
&
alt_modifier
)
{
...
...
@@ -1833,11 +1837,12 @@ push_key_description (c, p)
*
p
++
=
'-'
;
c
-=
alt_modifier
;
}
if
(
c
&
ctrl_modifier
)
if
((
c
&
ctrl_modifier
)
!=
0
||
(
c2
<
' '
&&
c2
!=
27
&&
c2
!=
'\t'
&&
c2
!=
Ctl
(
'M'
)))
{
*
p
++
=
'C'
;
*
p
++
=
'-'
;
c
-
=
ctrl_modifier
;
c
&
=
~
ctrl_modifier
;
}
if
(
c
&
hyper_modifier
)
{
...
...
@@ -1885,8 +1890,7 @@ push_key_description (c, p)
}
else
{
*
p
++
=
'C'
;
*
p
++
=
'-'
;
/* `C-' already added above. */
if
(
c
>
0
&&
c
<=
Ctl
(
'Z'
))
*
p
++
=
c
+
0140
;
else
...
...
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