diff options
| author | Xue Fuqiao | 2013-12-22 15:11:05 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-12-22 15:11:05 +0800 |
| commit | 8fc36a68035c3145d90460de481aa78eda3c8d86 (patch) | |
| tree | 20ddb10969f63796e0d5803455e34ab8e623f66e | |
| parent | 05e8f1ae2e6c55b59da6dd508d3e48cc7807dfc9 (diff) | |
| download | emacs-8fc36a68035c3145d90460de481aa78eda3c8d86.tar.gz emacs-8fc36a68035c3145d90460de481aa78eda3c8d86.zip | |
Document new bool-vector set operation functions.
* doc/lispref/sequences.texi (Bool-Vectors): Document new bool-vector
set operation functions.
| -rw-r--r-- | doc/lispref/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 48 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
3 files changed, 51 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a92ae299250..d03f6ae39da 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2013-12-22 Xue Fuqiao <xfq.free@gmail.com> | 1 | 2013-12-22 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 2 | ||
| 3 | * sequences.texi (Bool-Vectors): Document new bool-vector set operation functions. | ||
| 4 | |||
| 3 | * text.texi (Examining Properties): Document `get-pos-property'. | 5 | * text.texi (Examining Properties): Document `get-pos-property'. |
| 4 | 6 | ||
| 5 | * variables.texi (Directory Local Variables): Document `enable-dir-local-variables'. | 7 | * variables.texi (Directory Local Variables): Document `enable-dir-local-variables'. |
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 00384de7ec8..acf8cb38ade 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -713,6 +713,54 @@ This returns @code{t} if @var{object} is a bool-vector, | |||
| 713 | and @code{nil} otherwise. | 713 | and @code{nil} otherwise. |
| 714 | @end defun | 714 | @end defun |
| 715 | 715 | ||
| 716 | There are also some bool-vector set operation functions, described below: | ||
| 717 | |||
| 718 | @defun bool-vector-exclusive-or a b &optional c | ||
| 719 | Return @dfn{bitwise exclusive or} of bool vectors @var{a} and @var{b}. | ||
| 720 | If optional argument @var{c} is given, the result of this operation is | ||
| 721 | stored into @var{c}. All arguments should be bool vectors of the same length. | ||
| 722 | @end defun | ||
| 723 | |||
| 724 | @defun bool-vector-union a b &optional c | ||
| 725 | Return @dfn{bitwise or} of bool vectors @var{a} and @var{b}. If | ||
| 726 | optional argument @var{c} is given, the result of this operation is | ||
| 727 | stored into @var{c}. All arguments should be bool vectors of the same length. | ||
| 728 | @end defun | ||
| 729 | |||
| 730 | @defun bool-vector-intersection a b &optional c | ||
| 731 | Return @dfn{bitwise and} of bool vectors @var{a} and @var{b}. If | ||
| 732 | optional argument @var{c} is given, the result of this operation is | ||
| 733 | stored into @var{c}. All arguments should be bool vectors of the same length. | ||
| 734 | @end defun | ||
| 735 | |||
| 736 | @defun bool-vector-set-difference a b &optional c | ||
| 737 | Return @dfn{set difference} of bool vectors @var{a} and @var{b}. If | ||
| 738 | optional argument @var{c} is given, the result of this operation is | ||
| 739 | stored into @var{c}. All arguments should be bool vectors of the same length. | ||
| 740 | @end defun | ||
| 741 | |||
| 742 | @defun bool-vector-not a &optional b | ||
| 743 | Return @dfn{set complement} of bool vector @var{a}. If optional | ||
| 744 | argument @var{b} is given, the result of this operation is stored into | ||
| 745 | @var{b}. All arguments should be bool vectors of the same length. | ||
| 746 | @end defun | ||
| 747 | |||
| 748 | @defun bool-vector-subsetp a b | ||
| 749 | Return @code{t} if every @code{t} value in @var{a} is also t in | ||
| 750 | @var{b}, nil otherwise. All arguments should be bool vectors of the | ||
| 751 | same length. | ||
| 752 | @end defun | ||
| 753 | |||
| 754 | @defun bool-vector-count-consecutive a b i | ||
| 755 | Return the number of consecutive elements in @var{a} equal @var{b} | ||
| 756 | starting at @var{i}. @code{a} is a bool vector, @var{b} is @code{t} | ||
| 757 | or @code{nil}, and @var{i} is an index into @code{a}. | ||
| 758 | @end defun | ||
| 759 | |||
| 760 | @defun bool-vector-count-population a | ||
| 761 | Return the number of elements that are @code{t} in bool vector @var{a}. | ||
| 762 | @end defun | ||
| 763 | |||
| 716 | Here is an example of creating, examining, and updating a | 764 | Here is an example of creating, examining, and updating a |
| 717 | bool-vector. Note that the printed form represents up to 8 boolean | 765 | bool-vector. Note that the printed form represents up to 8 boolean |
| 718 | values as a single character. | 766 | values as a single character. |
| @@ -923,6 +923,7 @@ The function `display-popup-menus-p' will now return non-nil for a | |||
| 923 | display or frame whenever a mouse is supported on that display or | 923 | display or frame whenever a mouse is supported on that display or |
| 924 | frame. | 924 | frame. |
| 925 | 925 | ||
| 926 | +++ | ||
| 926 | ** New bool-vector set operation functions: | 927 | ** New bool-vector set operation functions: |
| 927 | *** `bool-vector-exclusive-or' | 928 | *** `bool-vector-exclusive-or' |
| 928 | *** `bool-vector-union' | 929 | *** `bool-vector-union' |