diff options
| author | Daniel MartÃn | 2021-05-30 06:41:52 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-05-30 06:41:52 +0200 |
| commit | e247b4b69129d50e5c03814f42547059f16d4bbb (patch) | |
| tree | a20ee79bef283c8f79618052ce7f91a35d76132d | |
| parent | 1230651ffdf7c271db4bb2901ea23298fcd9ecf3 (diff) | |
| download | emacs-e247b4b69129d50e5c03814f42547059f16d4bbb.tar.gz emacs-e247b4b69129d50e5c03814f42547059f16d4bbb.zip | |
Add a new documentation group for overlays
* lisp/emacs-lisp/shortdoc.el (overlay): Add documentation group for
buffer overlays(bug#48730).
| -rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index c9484dcb686..16e83074764 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el | |||
| @@ -889,6 +889,52 @@ There can be any number of :example/:result elements." | |||
| 889 | (unlock-buffer | 889 | (unlock-buffer |
| 890 | :no-value (lock-buffer))) | 890 | :no-value (lock-buffer))) |
| 891 | 891 | ||
| 892 | (define-short-documentation-group overlay | ||
| 893 | "Predicates" | ||
| 894 | (overlayp | ||
| 895 | :no-eval (overlayp some-overlay) | ||
| 896 | :eg-result t) | ||
| 897 | "Creation and Deletion" | ||
| 898 | (make-overlay | ||
| 899 | :args (beg end &optional buffer) | ||
| 900 | :no-eval (make-overlay 1 10) | ||
| 901 | :eg-result-string "#<overlay from 1 to 10 in *foo*>") | ||
| 902 | (delete-overlay | ||
| 903 | :no-eval (delete-overlay foo) | ||
| 904 | :eg-result t) | ||
| 905 | "Searching Overlays" | ||
| 906 | (overlays-at | ||
| 907 | :no-eval (overlays-at 15) | ||
| 908 | :eg-result-string "(#<overlay from 1 to 10 in *foo*>)") | ||
| 909 | (overlays-in | ||
| 910 | :no-eval (overlays-in 1 30) | ||
| 911 | :eg-result-string "(#<overlay from 1 to 10 in *foo*>)") | ||
| 912 | (next-overlay-change | ||
| 913 | :no-eval (next-overlay-change 1) | ||
| 914 | :eg-result 20) | ||
| 915 | (previous-overlay-change | ||
| 916 | :no-eval (previous-overlay-change 30) | ||
| 917 | :eg-result 20) | ||
| 918 | "Overlay Properties" | ||
| 919 | (overlay-start | ||
| 920 | :no-eval (overlay-start foo) | ||
| 921 | :eg-result 1) | ||
| 922 | (overlay-end | ||
| 923 | :no-eval (overlay-end foo) | ||
| 924 | :eg-result 10) | ||
| 925 | (overlay-put | ||
| 926 | :no-eval (overlay-put foo 'happy t) | ||
| 927 | :eg-result t) | ||
| 928 | (overlay-get | ||
| 929 | :no-eval (overlay-get foo 'happy) | ||
| 930 | :eg-result t) | ||
| 931 | (overlay-buffer | ||
| 932 | :no-eval (overlay-buffer foo)) | ||
| 933 | "Moving Overlays" | ||
| 934 | (move-overlay | ||
| 935 | :no-eval (move-overlay foo 5 20) | ||
| 936 | :eg-result-string "#<overlay from 5 to 20 in *foo*>")) | ||
| 937 | |||
| 892 | (define-short-documentation-group process | 938 | (define-short-documentation-group process |
| 893 | (make-process | 939 | (make-process |
| 894 | :no-eval (make-process :name "foo" :command '("cat" "/tmp/foo")) | 940 | :no-eval (make-process :name "foo" :command '("cat" "/tmp/foo")) |