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
e4b6f8e3
Commit
e4b6f8e3
authored
Feb 11, 1998
by
Richard M. Stallman
Browse files
(describe_map_tree): Add the maps we have already
handled into SUB_SHADOWS.
parent
a249d3a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/keymap.c
src/keymap.c
+12
-3
No files found.
src/keymap.c
View file @
e4b6f8e3
...
@@ -2386,7 +2386,7 @@ describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl,
...
@@ -2386,7 +2386,7 @@ describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl,
int
transl
;
int
transl
;
int
always_title
;
int
always_title
;
{
{
Lisp_Object
maps
,
seen
,
sub_shadows
;
Lisp_Object
maps
,
orig_maps
,
seen
,
sub_shadows
;
struct
gcpro
gcpro1
,
gcpro2
,
gcpro3
;
struct
gcpro
gcpro1
,
gcpro2
,
gcpro3
;
int
something
=
0
;
int
something
=
0
;
char
*
key_heading
char
*
key_heading
...
@@ -2394,7 +2394,7 @@ describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl,
...
@@ -2394,7 +2394,7 @@ describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl,
key binding
\n
\
key binding
\n
\
--- -------
\n
"
;
--- -------
\n
"
;
maps
=
Faccessible_keymaps
(
startmap
,
prefix
);
orig_maps
=
maps
=
Faccessible_keymaps
(
startmap
,
prefix
);
seen
=
Qnil
;
seen
=
Qnil
;
sub_shadows
=
Qnil
;
sub_shadows
=
Qnil
;
GCPRO3
(
maps
,
seen
,
sub_shadows
);
GCPRO3
(
maps
,
seen
,
sub_shadows
);
...
@@ -2475,7 +2475,16 @@ key binding\n\
...
@@ -2475,7 +2475,16 @@ key binding\n\
sub_shadows
=
Fcons
(
shmap
,
sub_shadows
);
sub_shadows
=
Fcons
(
shmap
,
sub_shadows
);
}
}
describe_map
(
Fcdr
(
elt
),
Fcar
(
elt
),
/* Maps we have already listed in this loop shadow this map. */
for
(
tail
=
orig_maps
;
!
EQ
(
tail
,
maps
);
tail
=
XCDR
(
tail
))
{
Lisp_Object
tem
;
tem
=
Fequal
(
Fcar
(
XCAR
(
tail
)),
prefix
);
if
(
!
NILP
(
tem
))
sub_shadows
=
Fcons
(
XCDR
(
XCAR
(
tail
)),
sub_shadows
);
}
describe_map
(
Fcdr
(
elt
),
prefix
,
transl
?
describe_translation
:
describe_command
,
transl
?
describe_translation
:
describe_command
,
partial
,
sub_shadows
,
&
seen
,
nomenu
);
partial
,
sub_shadows
,
&
seen
,
nomenu
);
...
...
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