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
af70074f
Commit
af70074f
authored
Feb 13, 2012
by
Stefan Monnier
Browse files
* src/keymap.c (Fsingle_key_description): Handle char ranges.
parent
3d2af193
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/keymap.c
src/keymap.c
+8
-2
No files found.
src/ChangeLog
View file @
af70074f
2012-02-13 Stefan Monnier <monnier@iro.umontreal.ca>
* keymap.c (Fsingle_key_description): Handle char ranges.
2012-02-12 Chong Yidong <cyd@gnu.org>
* xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here,
...
...
src/keymap.c
View file @
af70074f
...
...
@@ -2270,9 +2270,15 @@ around function keys and event symbols. */)
if
(
CONSP
(
key
)
&&
lucid_event_type_list_p
(
key
))
key
=
Fevent_convert_list
(
key
);
if
(
CONSP
(
key
)
&&
INTEGERP
(
XCAR
(
key
))
&&
INTEGERP
(
XCDR
(
key
)))
/* An interval from a map-char-table. */
return
concat3
(
Fsingle_key_description
(
XCAR
(
key
),
no_angles
),
build_string
(
".."
),
Fsingle_key_description
(
XCDR
(
key
),
no_angles
));
key
=
EVENT_HEAD
(
key
);
if
(
INTEGERP
(
key
))
/* Normal character */
if
(
INTEGERP
(
key
))
/* Normal character
.
*/
{
char
tem
[
KEY_DESCRIPTION_SIZE
],
*
p
;
...
...
@@ -2280,7 +2286,7 @@ around function keys and event symbols. */)
*
p
=
0
;
return
make_specified_string
(
tem
,
-
1
,
p
-
tem
,
1
);
}
else
if
(
SYMBOLP
(
key
))
/* Function key or event-symbol */
else
if
(
SYMBOLP
(
key
))
/* Function key or event-symbol
.
*/
{
if
(
NILP
(
no_angles
))
{
...
...
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