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
be3bfff1
Commit
be3bfff1
authored
Nov 16, 1994
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(access_keymap, store_in_keymap): Use NATNUMP instead of its expansion.
parent
40c03e12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/keymap.c
src/keymap.c
+2
-5
No files found.
src/keymap.c
View file @
be3bfff1
...
...
@@ -318,9 +318,7 @@ access_keymap (map, idx, t_ok, noinherit)
break
;
case
Lisp_Vector
:
if
(
INTEGERP
(
idx
)
&&
XINT
(
idx
)
>=
0
&&
XINT
(
idx
)
<
XVECTOR
(
binding
)
->
size
)
if
(
NATNUMP
(
idx
)
&&
XFASTINT
(
idx
)
<
XVECTOR
(
binding
)
->
size
)
{
val
=
XVECTOR
(
binding
)
->
contents
[
XINT
(
idx
)];
if
(
noprefix
&&
CONSP
(
val
)
&&
EQ
(
XCONS
(
val
)
->
car
,
Qkeymap
))
...
...
@@ -437,8 +435,7 @@ store_in_keymap (keymap, idx, def)
switch
(
XTYPE
(
elt
))
{
case
Lisp_Vector
:
if
(
INTEGERP
(
idx
)
&&
XINT
(
idx
)
>=
0
&&
XINT
(
idx
)
<
XVECTOR
(
elt
)
->
size
)
if
(
NATNUMP
(
idx
)
&&
XFASTINT
(
idx
)
<
XVECTOR
(
elt
)
->
size
)
{
XVECTOR
(
elt
)
->
contents
[
XFASTINT
(
idx
)]
=
def
;
return
def
;
...
...
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