diff options
| author | Lars Ingebrigtsen | 2019-07-13 16:44:03 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-13 16:44:03 +0200 |
| commit | d4c2b3ca64efb61d832f8ae1cba95d82059814a9 (patch) | |
| tree | 9b1c70379d886f1ca4fac8a0fce70988ad71f9e3 /src | |
| parent | 5b1f5b4b7d049261ca5977829314c835ba7b8bfe (diff) | |
| download | emacs-d4c2b3ca64efb61d832f8ae1cba95d82059814a9.tar.gz emacs-d4c2b3ca64efb61d832f8ae1cba95d82059814a9.zip | |
plist-get/lax-plist-get doc fix
* src/fns.c (Fplist_get): Mention that comparison is done with eq
(bug#31441).
(Flax_plist_get): Refer to plist-get for details.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 16 |
1 files changed, 9 insertions, 7 deletions
| @@ -2161,9 +2161,13 @@ merge (Lisp_Object org_l1, Lisp_Object org_l2, Lisp_Object pred) | |||
| 2161 | DEFUN ("plist-get", Fplist_get, Splist_get, 2, 2, 0, | 2161 | DEFUN ("plist-get", Fplist_get, Splist_get, 2, 2, 0, |
| 2162 | doc: /* Extract a value from a property list. | 2162 | doc: /* Extract a value from a property list. |
| 2163 | PLIST is a property list, which is a list of the form | 2163 | PLIST is a property list, which is a list of the form |
| 2164 | \(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value | 2164 | \(PROP1 VALUE1 PROP2 VALUE2...). |
| 2165 | corresponding to the given PROP, or nil if PROP is not one of the | 2165 | |
| 2166 | properties on the list. This function never signals an error. */) | 2166 | This function returns the value corresponding to the given PROP, or |
| 2167 | nil if PROP is not one of the properties on the list. The comparison | ||
| 2168 | with PROP is done using `eq'. | ||
| 2169 | |||
| 2170 | This function never signals an error. */) | ||
| 2167 | (Lisp_Object plist, Lisp_Object prop) | 2171 | (Lisp_Object plist, Lisp_Object prop) |
| 2168 | { | 2172 | { |
| 2169 | Lisp_Object tail = plist; | 2173 | Lisp_Object tail = plist; |
| @@ -2239,10 +2243,8 @@ It can be retrieved with `(get SYMBOL PROPNAME)'. */) | |||
| 2239 | 2243 | ||
| 2240 | DEFUN ("lax-plist-get", Flax_plist_get, Slax_plist_get, 2, 2, 0, | 2244 | DEFUN ("lax-plist-get", Flax_plist_get, Slax_plist_get, 2, 2, 0, |
| 2241 | doc: /* Extract a value from a property list, comparing with `equal'. | 2245 | doc: /* Extract a value from a property list, comparing with `equal'. |
| 2242 | PLIST is a property list, which is a list of the form | 2246 | This function is otherwise like `plist-get', but may signal an error |
| 2243 | \(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value | 2247 | if PLIST isn't a valid plist. */) |
| 2244 | corresponding to the given PROP, or nil if PROP is not | ||
| 2245 | one of the properties on the list. */) | ||
| 2246 | (Lisp_Object plist, Lisp_Object prop) | 2248 | (Lisp_Object plist, Lisp_Object prop) |
| 2247 | { | 2249 | { |
| 2248 | Lisp_Object tail = plist; | 2250 | Lisp_Object tail = plist; |