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
53654733
Commit
53654733
authored
Jul 04, 2000
by
Gerd Moellmann
Browse files
(get_keyelt): Temporarily inhibit GC while evaluating
a menu filter.
parent
fca68a95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/keymap.c
src/keymap.c
+5
-1
No files found.
src/ChangeLog
View file @
53654733
2000-07-04 Gerd Moellmann <gerd@gnu.org>
* keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
a menu filter.
2000-07-04 Kenichi Handa <handa@etl.go.jp>
* composite.h (make_composition_value_copy): Extern it.
...
...
src/keymap.c
View file @
53654733
...
...
@@ -592,14 +592,18 @@ get_keyelt (object, autoload)
/* If there's a `:filter FILTER', apply FILTER to the
menu-item's definition to get the real definition to
use. */
use. Temporarily inhibit GC while evaluating FILTER,
because not functions calling get_keyelt are prepared
for a GC. */
for
(;
CONSP
(
tem
)
&&
CONSP
(
XCDR
(
tem
));
tem
=
XCDR
(
tem
))
if
(
EQ
(
XCAR
(
tem
),
QCfilter
))
{
int
count
=
inhibit_garbage_collection
();
Lisp_Object
filter
;
filter
=
XCAR
(
XCDR
(
tem
));
filter
=
list2
(
filter
,
list2
(
Qquote
,
object
));
object
=
menu_item_eval_property
(
filter
);
unbind_to
(
count
,
Qnil
);
break
;
}
}
...
...
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