commit | author | age
|
5cb5f7
|
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\303\304\305\306\307\302%\210\310\311\312\313\314DD\315\316\317\307\304&\210\310\320\312\313\321DD\322\316\323\307\304&\210\310\324\312\313\325DD\326\307\304\316\327&\207" [require cl-lib helm custom-declare-group helm-adapt nil "Adaptative sorting of candidates for Helm." :group custom-declare-variable helm-adaptive-history-file funcall function #[0 "\300\207" [#1="~/.emacs.d/helm-adaptive-history"] 1 #1#] "Path of file where history information is stored.\nWhen nil history is not saved nor restored after emacs restart unless\nyou save/restore `helm-adaptive-history' with something else like\npsession or desktop." :type string helm-adaptive-history-length #[0 "\300\207" [50] 1] "Maximum number of candidates stored for a source." number helm-adaptive-sort-by-frequent-recent-usage #[0 "\300\207" [t] 1] "Try to sort on an average of frequent and recent usage when non-nil.\n\nWhen nil sort on frequency usage only.\n\nOnly frequency:\nWhen candidate have low frequency, you have to hit on it many times to\nmake it going up on top.\n\nFrequency+recent:\nEven with a low frequency, candidate go up on top. If a candidate\nhave a high frequency but it is not used since some time, it goes\ndown slowly, but as soon you reuse it it go up on top quickly." boolean] 8) |
|
16 |
#@73 nil if history information is not yet stored for the current |
|
17 |
selection. |
|
18 |
(defvar helm-adaptive-done nil (#$ . 1723)) |
|
19 |
#@125 Contains the stored history information. |
|
20 |
Format: ((SOURCE-NAME (SELECTED-CANDIDATE (PATTERN . NUMBER-OF-USE) ...) ...) ...) |
|
21 |
(defvar helm-adaptive-history nil (#$ . 1846)) |
|
22 |
(defconst helm-adaptive-freq-coefficient 5) |
|
23 |
(defconst helm-adaptive-recent-coefficient 2) |
|
24 |
(defalias 'helm-adaptive-done-reset #[0 "\301\211\207" [helm-adaptive-done nil] 2]) |
|
25 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315\316\317&
\207" [custom-declare-variable helm-adaptive-mode funcall function #[0 "\300\207" [nil] 1] "Non-nil if Helm-Adaptive mode is enabled.\nSee the `helm-adaptive-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `helm-adaptive-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group helm-adapt :type boolean :require helm-adaptive] 14) |
|
26 |
#@61 Toggle adaptive sorting in all sources. |
|
27 |
|
|
28 |
(fn &optional ARG) |
|
29 |
(defalias 'helm-adaptive-mode #[256 "\302 \303\300\304=\203 \305\300!?\202 \306!\307V\"\210\203: \204# \310 \210\311\312\313\"\210\311\314\315\"\210\311\316\317\"\210\311\320\317\"\210\202S \313 \210\321\322\312\313\"\210\322\314\315\"\210\322\316\317\"\210\322\320\317\"\210\323\324\305\300!\203_ \325\202` \326\"\210\327\330!\203\212 \331\300!\210\302 \203x \211\302 \232\203\212 \332\333\334\305\300!\203\205 \335\202\206 \336#\266\210\337 \210\305\300!\207" [helm-adaptive-mode helm-adaptive-history current-message set-default toggle default-value prefix-numeric-value 0 helm-adaptive-maybe-load-history add-hook kill-emacs-hook helm-adaptive-save-history helm-before-initialize-hook helm-adaptive-done-reset helm-before-action-hook helm-adaptive-store-selection helm-select-action-hook nil remove-hook run-hooks helm-adaptive-mode-hook helm-adaptive-mode-on-hook helm-adaptive-mode-off-hook called-interactively-p any customize-mark-as-set "" message "Helm-Adaptive mode %sabled%s" "en" "dis" force-mode-line-update] 7 (#$ . 2775) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) |
|
30 |
(defvar helm-adaptive-mode-hook nil) |
|
31 |
(byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \307\211%\207" [helm-adaptive-mode-map helm-adaptive-mode-hook variable-documentation put "Hook run after entering or leaving `helm-adaptive-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode helm-adaptive-mode nil boundp] 6) |
|
32 |
#@99 Return current source only if it use adaptive history, nil otherwise. |
|
33 |
|
|
34 |
(fn &optional SOURCE-NAME) |
|
35 |
(defalias 'helm-adapt-use-adaptive-p #[256 "\205- \211\206\n \301 \302\303\"\206 \302\304\"\211<\203$ \305>\205+ \202+ \211\305=\205+ \266\202\207" [helm-adaptive-mode helm-get-current-source assoc-default filtered-candidate-transformer candidate-transformer helm-adaptive-sort] 5 (#$ . 4389)]) |
|
36 |
#@55 Store history information for the selected candidate. |
|
37 |
(defalias 'helm-adaptive-store-selection #[0 "?\205\242 \304\305 \211\205\240 \306\307\"\310 \"\206 \211C B\211@\311\312\304\"\310A\"\211\2042 C\202< |