diff options
| author | Paul Eggert | 2013-11-25 15:25:04 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-11-25 15:25:04 -0800 |
| commit | 3f73284a46437b46bbd79f2594c3bcefde83a2e8 (patch) | |
| tree | fd5e483e6465aa0bf0167aeba64a4bfcbef7e01f /src/data.c | |
| parent | 4301875e6e41926fe09c34cf18204ee47b37a742 (diff) | |
| download | emacs-3f73284a46437b46bbd79f2594c3bcefde83a2e8.tar.gz emacs-3f73284a46437b46bbd79f2594c3bcefde83a2e8.zip | |
bool-vector-subsetp is now the normal direction.
* data.c (Fbool_vector_subsetp): Test whether the first argument
is a subset of the second one, not the reverse. Add doc string.
Fixes: debbugs:15912
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index ca896897ddf..1fe7a1c9b65 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -3242,11 +3242,11 @@ Return the destination vector if it changed or nil otherwise. */) | |||
| 3242 | 3242 | ||
| 3243 | DEFUN ("bool-vector-subsetp", Fbool_vector_subsetp, | 3243 | DEFUN ("bool-vector-subsetp", Fbool_vector_subsetp, |
| 3244 | Sbool_vector_subsetp, 2, 2, 0, | 3244 | Sbool_vector_subsetp, 2, 2, 0, |
| 3245 | doc: ) | 3245 | doc: /* Return t if every t value in A is also t in B, nil otherwise. |
| 3246 | A and B must be bool vectors of the same length. */) | ||
| 3246 | (Lisp_Object a, Lisp_Object b) | 3247 | (Lisp_Object a, Lisp_Object b) |
| 3247 | { | 3248 | { |
| 3248 | /* Like bool_vector_union, but doesn't modify b. */ | 3249 | return bool_vector_binop_driver (a, b, b, bool_vector_subsetp); |
| 3249 | return bool_vector_binop_driver (b, a, b, bool_vector_subsetp); | ||
| 3250 | } | 3250 | } |
| 3251 | 3251 | ||
| 3252 | DEFUN ("bool-vector-not", Fbool_vector_not, | 3252 | DEFUN ("bool-vector-not", Fbool_vector_not, |