[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 8988327: Fix documentation of 'alist-get'
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 8988327: Fix documentation of 'alist-get' |
Date: |
Wed, 19 Oct 2016 18:11:30 +0000 (UTC) |
branch: emacs-25
commit 8988327d548db7b69f30ea15496ccb0726fa4502
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix documentation of 'alist-get'
* doc/lispref/lists.texi (Association Lists): Fix the signature of
'alist-get'. Fix the markup, the wording, and the punctuation in
the description. (Bug#24740)
---
doc/lispref/lists.texi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index e7a739f..dc4075d 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -1556,15 +1556,15 @@ keys may not be symbols:
@end smallexample
@end defun
address@hidden alist-get key value &optional default remove
address@hidden alist-get key alist &optional default remove
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}. If @var{key} is not found in
address@hidden it returns @var{default}.
+association for @var{key} in @var{alist},
address@hidden@code{(@var{key} . @var{value})}}, it returns just the
@var{value}.
+If @var{key} is not found in @var{alist}, it returns @var{default}.
This is a generalized variable (@pxref{Generalized Variables}) that
can be used to change a value with @code{setf}. When using it to set
-a value, optional argument @var{remove} non-nil means to remove
+a value, optional argument @var{remove} address@hidden means to remove
@var{key} from @var{alist} if the new value is @code{eql} to @var{default}.
@end defun
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 8988327: Fix documentation of 'alist-get',
Eli Zaretskii <=