[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115688: Document new bool-vector set operation func
From: |
Xue Fuqiao |
Subject: |
[Emacs-diffs] trunk r115688: Document new bool-vector set operation functions. |
Date: |
Sun, 22 Dec 2013 07:11:21 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115688
revision-id: address@hidden
parent: address@hidden
committer: Xue Fuqiao <address@hidden>
branch nick: trunk
timestamp: Sun 2013-12-22 15:11:05 +0800
message:
Document new bool-vector set operation functions.
* doc/lispref/sequences.texi (Bool-Vectors): Document new bool-vector
set operation functions.
modified:
doc/lispref/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-6155
doc/lispref/sequences.texi
sequences.texi-20091113204419-o5vbwnq5f7feedwu-6209
etc/NEWS news-20100311060928-aoit31wvzf25yr1z-1
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2013-12-22 06:25:57 +0000
+++ b/doc/lispref/ChangeLog 2013-12-22 07:11:05 +0000
@@ -1,5 +1,7 @@
2013-12-22 Xue Fuqiao <address@hidden>
+ * sequences.texi (Bool-Vectors): Document new bool-vector set operation
functions.
+
* text.texi (Examining Properties): Document `get-pos-property'.
* variables.texi (Directory Local Variables): Document
`enable-dir-local-variables'.
=== modified file 'doc/lispref/sequences.texi'
--- a/doc/lispref/sequences.texi 2013-09-28 22:26:29 +0000
+++ b/doc/lispref/sequences.texi 2013-12-22 07:11:05 +0000
@@ -713,6 +713,54 @@
and @code{nil} otherwise.
@end defun
+There are also some bool-vector set operation functions, described below:
+
address@hidden bool-vector-exclusive-or a b &optional c
+Return @dfn{bitwise exclusive or} of bool vectors @var{a} and @var{b}.
+If optional argument @var{c} is given, the result of this operation is
+stored into @var{c}. All arguments should be bool vectors of the same length.
address@hidden defun
+
address@hidden bool-vector-union a b &optional c
+Return @dfn{bitwise or} of bool vectors @var{a} and @var{b}. If
+optional argument @var{c} is given, the result of this operation is
+stored into @var{c}. All arguments should be bool vectors of the same length.
address@hidden defun
+
address@hidden bool-vector-intersection a b &optional c
+Return @dfn{bitwise and} of bool vectors @var{a} and @var{b}. If
+optional argument @var{c} is given, the result of this operation is
+stored into @var{c}. All arguments should be bool vectors of the same length.
address@hidden defun
+
address@hidden bool-vector-set-difference a b &optional c
+Return @dfn{set difference} of bool vectors @var{a} and @var{b}. If
+optional argument @var{c} is given, the result of this operation is
+stored into @var{c}. All arguments should be bool vectors of the same length.
address@hidden defun
+
address@hidden bool-vector-not a &optional b
+Return @dfn{set complement} of bool vector @var{a}. If optional
+argument @var{b} is given, the result of this operation is stored into
address@hidden All arguments should be bool vectors of the same length.
address@hidden defun
+
address@hidden bool-vector-subsetp a b
+Return @code{t} if every @code{t} value in @var{a} is also t in
address@hidden, nil otherwise. All arguments should be bool vectors of the
+same length.
address@hidden defun
+
address@hidden bool-vector-count-consecutive a b i
+Return the number of consecutive elements in @var{a} equal @var{b}
+starting at @var{i}. @code{a} is a bool vector, @var{b} is @code{t}
+or @code{nil}, and @var{i} is an index into @code{a}.
address@hidden defun
+
address@hidden bool-vector-count-population a
+Return the number of elements that are @code{t} in bool vector @var{a}.
address@hidden defun
+
Here is an example of creating, examining, and updating a
bool-vector. Note that the printed form represents up to 8 boolean
values as a single character.
=== modified file 'etc/NEWS'
--- a/etc/NEWS 2013-12-22 06:25:57 +0000
+++ b/etc/NEWS 2013-12-22 07:11:05 +0000
@@ -923,6 +923,7 @@
display or frame whenever a mouse is supported on that display or
frame.
++++
** New bool-vector set operation functions:
*** `bool-vector-exclusive-or'
*** `bool-vector-union'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115688: Document new bool-vector set operation functions.,
Xue Fuqiao <=