* doc/lispref/lists.texi (Association Lists): Document 'alist-get'.

This commit is contained in:
Eli Zaretskii 2016-01-16 16:32:05 +02:00
parent 44177c133f
commit 2460cfac09
2 changed files with 9 additions and 0 deletions

View file

@ -1556,6 +1556,14 @@ keys may not be symbols:
@end smallexample
@end defun
@defun alist-get key value &optional default
This function is like @code{assq}, but instead of returning the entire
association for @var{key}, @code{(@var{key} . @var{value})}, it
returns just the @var{value}. It returns @var{default} if @var{key}
is not found in @var{alist}, defaulting to @code{nil} if @var{default}
is omitted.
@end defun
@defun rassq value alist
This function returns the first association with value @var{value} in
@var{alist}. It returns @code{nil} if no association in @var{alist} has

View file

@ -1464,6 +1464,7 @@ emulates the behavior of modern Posix platforms when the locale's
codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because
MS-Windows doesn't support UTF-8 as codeset in its locales.
+++
** New function `alist-get', which is also a valid place (aka lvalue).
** New function `funcall-interactively', which works like `funcall'