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
2d6fabfc
Commit
2d6fabfc
authored
Apr 09, 2001
by
Gerd Moellmann
Browse files
(Fplist_get, Fplist_put): Add QUITs.
parent
8d066ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
src/fns.c
src/fns.c
+15
-8
No files found.
src/fns.c
View file @
2d6fabfc
...
...
@@ -1852,8 +1852,8 @@ merge (org_l1, org_l2, pred)
tail
=
tem
;
}
}
DEFUN
(
"plist-get"
,
Fplist_get
,
Splist_get
,
2
,
2
,
0
,
"Extract a value from a property list.
\n
\
PLIST is a property list, which is a list of the form
\n
\
...
...
@@ -1862,16 +1862,22 @@ corresponding to the given PROP, or nil if PROP is not\n\
one of the properties on the list."
)
(
plist
,
prop
)
Lisp_Object
plist
;
register
Lisp_Object
prop
;
Lisp_Object
prop
;
{
register
Lisp_Object
tail
;
for
(
tail
=
plist
;
!
NILP
(
tail
);
tail
=
Fcdr
(
XCDR
(
tail
)))
Lisp_Object
tail
;
for
(
tail
=
plist
;
CONSP
(
tail
)
&&
CONSP
(
XCDR
(
tail
));
tail
=
XCDR
(
XCDR
(
tail
)))
{
register
Lisp_Object
tem
;
tem
=
Fcar
(
tail
);
if
(
EQ
(
prop
,
tem
))
return
Fcar
(
XCDR
(
tail
));
if
(
EQ
(
prop
,
XCAR
(
tail
)))
return
XCAR
(
XCDR
(
tail
));
QUIT
;
}
if
(
!
NILP
(
tail
))
wrong_type_argument
(
Qlistp
,
prop
);
return
Qnil
;
}
...
...
@@ -1910,6 +1916,7 @@ The PLIST is modified by side effects.")
return
plist
;
}
prev
=
tail
;
QUIT
;
}
newcell
=
Fcons
(
prop
,
Fcons
(
val
,
Qnil
));
if
(
NILP
(
prev
))
...
...
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