diff options
| author | Lars Ingebrigtsen | 2020-10-09 11:28:06 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-10-09 11:28:06 +0200 |
| commit | 41297c2e5dabd6376b58a93bab020a5e666a007e (patch) | |
| tree | 9573d5292a3672f9ca20b95cfac64dc7114faa3f | |
| parent | df42a9c527eb66576182502da33fae3d3310a9f0 (diff) | |
| download | emacs-scratch/shortdoc.tar.gz emacs-scratch/shortdoc.zip | |
Add some more predicatesscratch/shortdoc
| -rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 998ec737346..8c93dc4aa23 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el | |||
| @@ -139,6 +139,14 @@ There can be any number of :example/:result elements." | |||
| 139 | "Predicates for Strings" | 139 | "Predicates for Strings" |
| 140 | (string-equal | 140 | (string-equal |
| 141 | :eval (string-equal "foo" "foo")) | 141 | :eval (string-equal "foo" "foo")) |
| 142 | (eq | ||
| 143 | :eval (eq "foo" "foo")) | ||
| 144 | (eql | ||
| 145 | :eval (eql "foo" "foo")) | ||
| 146 | (equal | ||
| 147 | :eval (equal "foo" "foo")) | ||
| 148 | (cl-equalp | ||
| 149 | :eval (cl-equalp "Foo" "foo")) | ||
| 142 | (stringp | 150 | (stringp |
| 143 | :eval "(stringp ?a)") | 151 | :eval "(stringp ?a)") |
| 144 | (string-empty-p | 152 | (string-empty-p |
| @@ -526,9 +534,15 @@ There can be any number of :example/:result elements." | |||
| 526 | (define-short-documentation-group vector | 534 | (define-short-documentation-group vector |
| 527 | (make-vector | 535 | (make-vector |
| 528 | :eval (make-vector 5 "foo")) | 536 | :eval (make-vector 5 "foo")) |
| 537 | (vector | ||
| 538 | :eval (vector 1 "b" 3)) | ||
| 529 | (vectorp | 539 | (vectorp |
| 530 | :eval (vectorp [1]) | 540 | :eval (vectorp [1]) |
| 531 | :eval (vectorp "1")) | 541 | :eval (vectorp "1")) |
| 542 | (vconcat | ||
| 543 | :eval (vconcat '(1 2) [3 4])) | ||
| 544 | (append | ||
| 545 | :eval (append [1 2] nil)) | ||
| 532 | (length | 546 | (length |
| 533 | :eval (length [1 2 3])) | 547 | :eval (length [1 2 3])) |
| 534 | (mapcar | 548 | (mapcar |
| @@ -568,7 +582,11 @@ There can be any number of :example/:result elements." | |||
| 568 | (regexp-quote | 582 | (regexp-quote |
| 569 | :eval (regexp-quote "foo.*bar")) | 583 | :eval (regexp-quote "foo.*bar")) |
| 570 | (regexp-opt | 584 | (regexp-opt |
| 571 | :eval (regexp-opt '("foo" "bar")))) | 585 | :eval (regexp-opt '("foo" "bar"))) |
| 586 | (regexp-opt-depth | ||
| 587 | :eval (regexp-opt-depth "\\(a\\(b\\)\\)")) | ||
| 588 | (regexp-opt-charset | ||
| 589 | :eval (regexp-opt-charset '(?a ?b ?c ?d ?e)))) | ||
| 572 | 590 | ||
| 573 | (define-short-documentation-group sequence | 591 | (define-short-documentation-group sequence |
| 574 | "Sequence Predicates" | 592 | "Sequence Predicates" |
| @@ -815,6 +833,9 @@ There can be any number of :example/:result elements." | |||
| 815 | :eval (>= 1 2 3)) | 833 | :eval (>= 1 2 3)) |
| 816 | (zerop | 834 | (zerop |
| 817 | :eval (zerop 0)) | 835 | :eval (zerop 0)) |
| 836 | (cl-plusp | ||
| 837 | :eval (cl-plusp 0) | ||
| 838 | :eval (cl-plusp 1)) | ||
| 818 | (bignump | 839 | (bignump |
| 819 | :eval (bignump 4) | 840 | :eval (bignump 4) |
| 820 | :eval (bignump (expt 2 90))) | 841 | :eval (bignump (expt 2 90))) |