commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\207" [require cl-lib async advice helm-lib helm-multi-match helm-source] 2) |
|
16 |
#@741 In KEYMAP, define key sequence KEY for function list FUNCTIONS. |
|
17 |
Each function runs sequentially for each KEY press. |
|
18 |
If DELAY is specified, switch back to initial function of FUNCTIONS list |
|
19 |
after DELAY seconds. |
|
20 |
The functions in FUNCTIONS list take no args. |
|
21 |
e.g |
|
22 |
(defun foo () |
|
23 |
(interactive) |
|
24 |
(message "Run foo")) |
|
25 |
(defun bar () |
|
26 |
(interactive) |
|
27 |
(message "Run bar")) |
|
28 |
(defun baz () |
|
29 |
(interactive) |
|
30 |
(message "Run baz")) |
|
31 |
|
|
32 |
(helm-define-multi-key global-map (kbd "<f5> q") '(foo bar baz) 2) |
|
33 |
|
|
34 |
Each time "<f5> q" is pressed, the next function is executed. Waiting |
|
35 |
more than 2 seconds between key presses switches back to executing the first |
|
36 |
function on the next hit. |
|
37 |
|
|
38 |
(fn KEYMAP KEY FUNCTIONS &optional DELAY) |
|
39 |
(defalias 'helm-define-multi-key #[1027 "\300\301\"#\207" [define-key helm-make-multi-command] 10 (#$ . 572)]) |
|
40 |
#@174 Define NAME as a multi-key command running FUNS. |
|
41 |
After DELAY seconds, the FUNS list is reinitialized. |
|
42 |
See `helm-define-multi-key'. |
|
43 |
|
|
44 |
(fn NAME DOCSTRING FUNS &optional DELAY) |
|
45 |
(defalias 'helm-multi-key-defun '(macro . #[1027 "\203\n \300P\202 \301\262\302\303D\304EF\207" ["\n\n" "This is a helm-ish multi-key command." defalias quote helm-make-multi-command] 9 (#$ . 1434)])) |
|
46 |
(byte-code "\300\301\302\303#\300\207" [function-put helm-multi-key-defun lisp-indent-function 2] 4) |
|
47 |
#@172 Return an anonymous multi-key command running FUNCTIONS. |
|
48 |
Run each function in the FUNCTIONS list in turn when called within DELAY seconds. |
|
49 |
|
|
50 |
(fn FUNCTIONS &optional DELAY) |
|
51 |
(defalias 'helm-make-multi-command #[513 "\300\301!\302\303\304E!\210\305\306\307\310\311#\312\"\313\304\211&\207" [cl-gensym "helm-iter-key" eval defvar nil make-byte-code 0 "\303\300\301\302#\207" vconcat vector [helm-run-multi-key-command] 4] 13 (#$ . 1924)]) |
|
52 |
(byte-code "\300\301\302\303#\300\207" [function-put helm-make-multi-command lisp-indent-function 1] 4) |
|
53 |
#@33 |
|
54 |
|
|
55 |
(fn FUNCTIONS ITERATOR DELAY) |
|
56 |
(defalias 'helm-run-multi-key-command #[771 "\302\303J\203
=\204 \304!!L\210\305J!\262\211\204/ \304!!L\210\305J!\262\211\203@ J\203@ \306S8!\210\205T \307\303\310\311\312\313\314!\315\"\316$#\207" [this-command real-last-command #[257 "\300G\301X\203 B\262T\262\202 \211\237\207" [1 nil] 6 "\n\n(fn FUNCTIONS)"] nil helm-iter-list helm-iter-next call-interactively run-with-idle-timer make-byte-code 0 "\300\301L\207" vconcat vector [nil] 2] 14 (#$ . 2478)]) |
|
57 |
(byte-code "\300\301\302\303\304\"\305#\210\306\301\307\310#\207" [defalias helm-toggle-resplit-and-swap-windows helm-make-multi-command (helm-toggle-resplit-window helm-swap-windows) 1 "Multi key command to re-split and swap helm window.\nFirst call runs `helm-toggle-resplit-window',\nand second call within 0.5s runs `helm-swap-windows'.\n\n" put helm-only t] 5) |
|
58 |
#@1057 Defines in MAP a KEY and SUBKEY to COMMAND. |
|
59 |
|
|
60 |
This allows typing KEY to call COMMAND the first time and |
|
61 |
type only SUBKEY on subsequent calls. |
|
62 |
|
|
63 |
Arg MAP is the keymap to use, SUBKEY is the initial short key-binding to |
|
64 |
call COMMAND. |
|
65 |
|
|
66 |
Arg OTHER-SUBKEYS is an alist specifying other short key-bindings |
|
67 |
to use once started e.g: |
|
68 |
|
|
69 |
(helm-define-key-with-subkeys global-map |
|
70 |
(kbd "C-x v n") ?n 'git-gutter:next-hunk '((?p . git-gutter:previous-hunk))) |
|
71 |
|
|
72 |
|
|
73 |
In this example, `C-x v n' will run `git-gutter:next-hunk' |
|
74 |
subsequent "n"'s run this command again |
|
75 |
and subsequent "p"'s run `git-gutter:previous-hunk'. |
|
76 |
|
|
77 |
If specified PROMPT can be displayed in minibuffer to |
|
78 |
describe SUBKEY and OTHER-SUBKEYS. |
|
79 |
Arg EXIT-FN specifies a function to run on exit. |
|
80 |
|
|
81 |
For any other keys pressed, run their assigned command as defined |
|
82 |
in MAP and then exit the loop running EXIT-FN, if specified. |
|
83 |
|
|
84 |
NOTE: SUBKEY and OTHER-SUBKEYS bindings support only char syntax and |
|
85 |
vectors, so don't use strings to define them. |
|
86 |
|
|
87 |
(fn MAP KEY SUBKEY COMMAND &optional OTHER-SUBKEYS PROMPT EXIT-FN) |
|
88 |
(defalias 'helm-define-key-with-subkeys #[1796 "\300\301\302\303\304\305
&\306\"\307\310\211&#\207" [define-key make-byte-code 0 "\306\307\310\311\312\305!\313\"\314$\216\315\302!\210\316\304!\317\211\211\301=\203' \315\302!\210\320\202] \321\303\"\211\262\203: \315A!\210\320\202] \312!\262\322\300\"\262\323!\203S \315!\210\202\\ \324\325\"\244\317\266\204\205e \202 )\207" vconcat vector [make-byte-code 0 "\300\205 \300 \207" vconcat vector [] 1 call-interactively read-key nil t assoc lookup-key commandp mapcar identity last-command-event unread-command-events] 7 nil] 21 (#$ . 3379)]) |
|
89 |
(byte-code "\300\301\302\303#\300\207" [function-put helm-define-key-with-subkeys lisp-indent-function 1] 4) |
|
90 |
#@18 Keymap for helm. |
|
91 |
(defvar helm-map (byte-code "\302 \303\"\210\304\305\306#\210\304\307\310#\210\304\311\306#\210\304\312\310#\210\304\313\314#\210\304\315\316#\210\304\317\320#\210\304\321\322#\210\304\323\320#\210\304\324\322#\210\304\325\326#\210\304\327\330#\210\304\331\332#\210\304\333\334#\210\304\335\336#\210\304\337\340#\210\304\341\342#\210\304\343\344#\210\304\345\344#\210\304\346\334#\210\304\347\336#\210\304\350\351#\210\304\352\353#\210\304\354\355#\210\304\356\355#\210\304\357\360#\210\304\361\360#\210\304\362\360#\210\304\363\355#\210\304\364\360#\210\304\365\366#\210\304\367\366#\210\304\370\366#\210\304\371\372#\210\304\373\374#\210\304\375\376#\210\304\377\201@ #\210\304\201A \201B #\210\304\201C \201D #\210\304\201E \201F #\210\304\201G \201H #\210\304\201I \201J #\210\304\201K \201L #\210\304\201M \201N #\210\304\201O \201N #\210\304\201P \201Q #\210\304\201R \201S #\210\304\201T \201U #\210\304\201V \201W #\210\304\201X \201Y #\210\304\201Z \201[ #\210\304\201\\ \201] #\210\304\201^ \201_ #\210\304\201` \201a #\210\304\201b \201c #\210\304\201d \201e #\210\304\201f \201g #\210\304\201h \201i #\210\304\201j \201k #\210\304\201l \201m #\210\304\201n \201o #\210\201p \201q \201r \201s $\210\304\201t \201N #\210\304\201u \201v #\210\304\201w \201N #\210\304\201w \201x #\210\304\201y \201z #\210\304\201{ \372#\210\304\201| \201N #\210\304\201} \201N #\210\201p \201~ \201 \201\200 \201\201 %\210\201\202 \201\203 \"\211\203c\211@\304\201\204 #\210A\266\202\202N\210\304\201\205 \201\204 #\210\201\206 \211\201\207 X\203\237\304\201\210 \201\211 \201\212 T\"!\201\213 \372\201\214 \201\215 DF#\210\211T\262\202q\210\211\207" [minibuffer-local-map global-map make-sparse-keymap set-keymap-parent define-key [down] helm-next-line [up] helm-previous-line "" "" [C-down] helm-follow-action-forward [C-up] helm-follow-action-backward [prior] helm-previous-page [next] helm-next-page [134217846] "" [134217788] helm-beginning-of-buffer [134217790] helm-end-of-buffer "" helm-keyboard-quit [right] helm-next-source [left] helm-previous-source "
" helm-maybe-exit-minibuffer " " helm-select-action "" helm-execute-persistent-action "\n" "" [134217839] "\f" helm-recenter-top-bottom-other-window [134217740] helm-reposition-window-other-window [134217750] helm-scroll-other-window [M-next] [134217753] helm-scroll-other-window-down [167772182] [M-prior] [C-M-down] [C-M-up] " |