-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdiogenes-forms.elc
73 lines (59 loc) · 11.6 KB
/
diogenes-forms.elc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
;ELC
;;; Compiled
;;; in Emacs version 29.4
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\207" [require cl-lib seq replace transient diogenes-lisp-utils diogenes-perseus] 2)#@209 Change the form entry at POS in `diogenes--select-forms'.
MARK should contain the marker string, FORM-STRING-FACE the face
that fontifies the form itself.
(fn POS PROPERTIES &optional FORM-STRING-FACE MARK)
(defalias 'diogenes--change-form-entry #[1026 "\302\303\"\205\246 \304\305\303\"\306@A@#\210\212\214\211@A@}\210eb\205) \307\310!eb\2051 \307\311!\203` \312\313! >\204E \314\315\316D\"\210\317H\313! >\204X \314\315\316D\"\210\320H\321 $\210\205\241 \313! >\204s \314\315\316D\"\210\211\320Hb\210\322!\210\313! >\204\213 \314\315\316D\"\210\211\317H\313! >\204\235 \314\315\316D\"\210\320H|\266\202+\266\202\207" [inhibit-read-only cl-struct-prop-match-tags get-text-property form t diogenes--get-text-prop-boundaries add-text-properties text-property-search-forward form-string mark put-text-property type-of signal wrong-type-argument prop-match 1 2 font-lock-face insert-and-inherit] 14 (#$ . 255)])
(defalias 'diogenes--goto-next-form #[0 "\300`\301\"\206 db\207" [next-single-property-change form] 3 nil nil])
(defalias 'diogenes--select-form-at-point #[0 "\300`\301\302\303\304F\305\306\307\310\311#$\210\312 \207" [diogenes--change-form-entry selected t marked nil bold propertize "✓" font-lock-face success diogenes--goto-next-form] 8 nil nil])
(defalias 'diogenes--unselect-form-at-point #[0 "\300`\301\302\303\302F\304\305$\210\306 \207" [diogenes--change-form-entry selected nil marked font-lock-comment-face " " diogenes--goto-next-form] 6 nil nil])
(defalias 'diogenes--mark-form-at-point #[0 "\300`\301\302D\303#\210\304 \207" [diogenes--change-form-entry marked t highlight diogenes--goto-next-form] 4 nil nil])
(defalias 'diogenes--unmark-form-at-point #[0 "\300`\301\302D\303`\304\"\203 \305\202 \306#\210\307 \207" [diogenes--change-form-entry marked nil get-text-property selected bold font-lock-comment-face diogenes--goto-next-form] 6 nil nil])
(defalias 'diogenes--toggle-form-at-point #[0 "\300`\301\"\203\n \302 \207\303 \207" [get-text-property selected diogenes--unselect-form-at-point diogenes--select-form-at-point] 3 nil nil])
(defalias 'diogenes--select-all-forms #[0 "\212eb\210m?\205 \300 \210\202 )\207" [diogenes--select-form-at-point] 1 nil nil])
(defalias 'diogenes--unselect-all-forms #[0 "\212eb\210m?\205 \300 \210\202 )\207" [diogenes--unselect-form-at-point] 1 nil nil])
(defalias 'diogenes--mark-all-forms #[0 "\212eb\210m?\205 \300 \210\202 )\207" [diogenes--mark-form-at-point] 1 nil nil])
(defalias 'diogenes--unmark-all-forms #[0 "\212eb\210m?\205 \300 \210\202 )\207" [diogenes--unmark-form-at-point] 1 nil nil])#@17
(fn FUNCTION)
(defalias 'diogenes--execute-on-marked-forms #[257 "\212eb\210\301\211\302\303!\262\203, \304!>\204 \305\306\307D\"\210\310Hb\210 \210\301\262\202 \266)\301\207" [cl-struct-prop-match-tags nil text-property-search-forward marked type-of signal wrong-type-argument prop-match 1] 7 (#$ . 2867)])
(defalias 'diogenes--select-marked-forms #[0 "\300\301!\207" [diogenes--execute-on-marked-forms diogenes--select-form-at-point] 2 nil nil])
(defalias 'diogenes--unselect-marked-forms #[0 "\300\301!\207" [diogenes--execute-on-marked-forms diogenes--unselect-form-at-point] 2 nil nil])
(defalias 'diogenes--select-marked-or-all-forms #[0 "\212eb\210\300\301!\203 \302 \202 \303 )\207" [text-property-search-forward marked diogenes--select-marked-forms diogenes--select-all-forms] 2 nil nil])
(defalias 'diogenes--unselect-marked-or-all-forms #[0 "\212eb\210\300\301!\203 \302 \202 \303 )\207" [text-property-search-forward marked diogenes--unselect-marked-forms diogenes--unselect-all-forms] 2 nil nil])#@23
(fn REGEXP COMMAND)
(defalias 'diogenes--match-forms-and-execute #[514 "\212eb\210m?\205) \300`\301\"\203# \302\303\304\305`\301\"\"\"\203# \211 \210\202 \306 \210\202 )\207" [get-text-property form string-match apply buffer-substring-no-properties diogenes--get-text-prop-boundaries diogenes--goto-next-form] 9 (#$ . 3899)])#@15
(fn REGEXP)
(defalias 'diogenes--regexp-mark-forms #[257 "\300\301\"\207" [diogenes--match-forms-and-execute diogenes--mark-form-at-point] 4 (#$ . 4235) (byte-code "\300\301!C\207" [read-regexp "Mark forms matching regexp: "] 2)])#@15
(fn REGEXP)
(defalias 'diogenes--regexp-unmark-forms #[257 "\300\301\"\207" [diogenes--match-forms-and-execute diogenes--unmark-form-at-point] 4 (#$ . 4474) (byte-code "\300\301!C\207" [read-regexp "Unmark forms matching regexp: "] 2)])#@15
(fn REGEXP)
(defalias 'diogenes--regexp-select-forms #[257 "\300\301\"\207" [diogenes--match-forms-and-execute diogenes--select-form-at-point] 4 (#$ . 4719) (byte-code "\300\301!C\207" [read-regexp "Mark forms matching regexp: "] 2)])#@15
(fn REGEXP)
(defalias 'diogenes--regexp-unselect-forms #[257 "\300\301\"\207" [diogenes--match-forms-and-execute diogenes--unselect-form-at-point] 4 (#$ . 4962) (byte-code "\300\301!C\207" [read-regexp "Unmark forms matching regexp: "] 2)])#@155 Submit the selected forms in the Diogenes Select Forms buffer.
The forms are passed as a list to the function saved in
`diogenes--select-forms-function'.
(defalias 'diogenes--submit-forms #[0 "\303=\204\n \304\305!\210\306\211\211\211eb\210\307\310!\262\203D \311! >\204* \312\313\314D\"\210\315H\262\316\317\"\203>