;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; with all optimizations.
|
|
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
|
|
;;; This file does not contain utf-8 non-ASCII characters,
|
;;; and so can be loaded in Emacs versions earlier than 23.
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\302%\210\312\313\314\315\316DD\317\311\306\320\321&\210\312\322\314\315\323DD\324\311\306\320\325&\210\312\326\314\315\327DD\330\311\306\320\331&\210\312\332\314\315\333DD\334\311\306\320\331&\210\312\335\314\315\336DD\337\311\306\320\331&\210\312\340\314\315\341DD\342\311\306\320\331&\210\312\343\314\315\344DD\345\311\306\320\315&\210\312\346\314\315\347DD\350\311\306\320\331&\210\312\351\314\315\352DD\353\311\306\320\354&\210\312\355\314\315\356DD\357\311\306\320\331&\207" [require cl-lib helm helm-lib helm-files custom-declare-group helm-mode nil "Enable helm completion." :group custom-declare-variable helm-completing-read-handlers-alist funcall function #[0 "\300\207" [((describe-function . helm-completing-read-symbols) (describe-variable . helm-completing-read-symbols) (describe-symbol . helm-completing-read-symbols) (debug-on-entry . helm-completing-read-symbols) (find-function . helm-completing-read-symbols) (disassemble . helm-completing-read-symbols) (trace-function . helm-completing-read-symbols) (trace-function-foreground . helm-completing-read-symbols) (trace-function-background . helm-completing-read-symbols) (find-tag . helm-completing-read-default-find-tag) (org-capture . helm-org-completing-read-tags) (org-set-tags . helm-org-completing-read-tags) (ffap-alternate-file) (tmm-menubar) (find-file) (find-file-at-point . helm-completing-read-sync-default-handler) (ffap . helm-completing-read-sync-default-handler) (execute-extended-command) (dired-do-rename . helm-read-file-name-handler-1) (dired-do-copy . helm-read-file-name-handler-1) (dired-do-symlink . helm-read-file-name-handler-1) (dired-do-relsymlink . helm-read-file-name-handler-1) (dired-do-hardlink . helm-read-file-name-handler-1) (basic-save-buffer . helm-read-file-name-handler-1) (write-file . helm-read-file-name-handler-1) (write-region . helm-read-file-name-handler-1))] 1] "Completing read functions for specific Emacs commands.\n\nBy default `helm-mode' use `helm-completing-read-default-handler' to\nprovide helm completion in each `completing-read' or `read-file-name'\nfound, but other functions can be specified here for specific\ncommands. This also allow disabling helm completion for some commands\nwhen needed.\n \nEach entry is a cons cell like (EMACS_COMMAND . COMPLETING-READ_HANDLER)\nwhere key and value are symbols.\n\nEach key is an Emacs command that use originaly `completing-read'.\n\nEach value maybe a helm function that takes same arguments as\n`completing-read' plus NAME and BUFFER, where NAME is the name of the new\nhelm source and BUFFER the name of the buffer we will use, but it can\nbe also a function not using helm, in this case the function should\ntake same args as `completing-read' and not be prefixed by \"helm-\".\n\n`helm' will use the name of the command calling `completing-read' as\nNAME and BUFFER will be computed as well with NAME but prefixed with\n\"*helm-mode-\".\n\nThis function prefix name must start by \"helm-\" when it uses helm,\notherwise `helm' assumes the function is not a helm function and\nexpects same args as `completing-read', this allow you to define a\nhandler not using helm completion.\n\nExample:\n\n (defun foo/test ()\n (interactive)\n (message \"%S\" (completing-read \"test: \" '(a b c d e))))\n\n (defun helm-foo/test-completing-read-handler (prompt collection\n predicate require-match\n initial-input hist def\n inherit-input-method\n name buffer)\n (helm-comp-read prompt collection :marked-candidates t\n :name name\n :buffer buffer))\n\n (add-to-list 'helm-completing-read-handlers-alist\n '(foo/test . helm-foo/test-completing-read-handler))\n\n\nWe want here to make the regular `completing-read' in `foo/test'\nreturns a list of candidate(s) instead of a single candidate.\n \nNote that this function will be reused for ALL the `completing-read'\nof this command, so it should handle all cases, e.g\nIf first `completing-read' complete against symbols and\nsecond `completing-read' should handle only buffer,\nyour specialized function should handle the both.\n\nIf the value of an entry is nil completion will fall back to\nemacs vanilla behavior.\nExample:\n\nIf you want to disable helm completion for `describe-function', use:\n\n (describe-function . nil)\n\nIdo is also supported, you can use `ido-completing-read' and\n`ido-read-file-name' as value of an entry or just 'ido.\nExample:\nEnable ido completion for `find-file':\n\n (find-file . ido)\n\nsame as\n\n (find-file . ido-read-file-name)\n\nNote that you don't need to enable `ido-mode' for this to work, see\n`helm-mode' documentation." :type (alist :key-type symbol :value-type symbol) helm-comp-read-case-fold-search #[0 "\207" [helm-case-fold-search] 1] "Default Local setting of `helm-case-fold-search' for `helm-comp-read'.\nSee `helm-case-fold-search' for more info." symbol helm-mode-handle-completion-in-region #[0 "\300\207" [t] 1] "Whether to replace or not `completion-in-region-function'.\nThis enable support for `completing-read-multiple' and `completion-at-point'\nwhen non--nil." boolean helm-mode-reverse-history #[0 "\300\207" [t] 1] "Display history source after current source in `helm-mode' handled commands." helm-mode-no-completion-in-region-in-modes #[0 "\300\207" [nil] 1] "A list of modes that do not want helm for `completion-in-region'." helm-completion-in-region-fuzzy-match #[0 "\300\207" [nil] 1] "Whether `helm-completion-in-region' use fuzzy matching or not.\nAffect among others `completion-at-point', `completing-read-multiple'." helm-completion-in-region-default-sort-fn #[0 "\300\207" [helm-completion-in-region-sort-fn] 1] "The default sort function to sort candidates in completion-in-region.\n\nWhen nil no sorting is done.\nThe function is a `filtered-candidate-transformer' function which takes\ntwo args CANDIDATES and SOURCE.\nIt will be used only when `helm-completion-in-region-fuzzy-match' is\nnil otherwise fuzzy use its own sort function." helm-mode-fuzzy-match #[0 "\300\207" [nil] 1] "Enable fuzzy matching in `helm-mode' globally.\nNote that this will slow down completion and modify sorting\nwhich is unwanted in many places.\nThis affect only the functions with completing-read helmized by helm-mode.\nTo fuzzy match `completion-at-point' and friends see\n`helm-completion-in-region-fuzzy-match'." helm-mode-minibuffer-setup-hook-black-list #[0 "\300\207" [(minibuffer-completion-help)] 1] "Incompatible `minibuffer-setup-hook' functions go here.\nA list of symbols.\nHelm-mode is rejecting all lambda's, byte-code fns\nand all functions belonging in this list from `minibuffer-setup-hook'." (repeat (choice symbol)) helm-completing-read-dynamic-complete #[0 "\300\207" [nil] 1] "Use dynamic completion in `completing-read' when non-nil.\n\nThe default is to not use this because it is most of the time unneeded\nin `completing-read' and thus it is much more slower.\nIf you feel one emacs function need this you have better time to tell\n`helm-mode' to use a dynamic completion for this function only by using\n`helm-completing-read-handlers-alist' with an entry like this:\n\n (my-function . helm-completing-read-sync-default-handler)\n\nSo you should not change the default setting of this variable unless you\nknow what you are doing."] 8)
|
#@30 Keymap for `helm-comp-read'.
|
(defvar helm-comp-read-map (byte-code "\301 \302\"\210\303\304\305#\210\303\306\305#\210\211\207" [helm-map make-sparse-keymap set-keymap-parent define-key [C-return] helm-cr-empty-string [134217741]] 5) (#$ . 8081))
|
#@22 Return empty string.
|
(defalias 'helm-cr-empty-string #[0 "\203 \301\302!\207\303\304!\207" [helm-alive-p helm-exit-and-execute-action #[257 "\300\207" [""] 2 "\n\n(fn CANDIDATE)"] error "Running helm command outside of context"] 2 (#$ . 8337) nil])
|
(put 'helm-cr-empty-string 'helm-only t)
|
(defalias 'helm-mode--keyboard-quit #[0 "\301\302\303\301\")\207" [debug-on-quit nil signal quit] 3])
|
#@1644 Convert COLLECTION to list removing elements that don't match TEST.
|
See `helm-comp-read' about supported COLLECTION arguments.
|
|
SORT-FN is a predicate to sort COLLECTION.
|
|
ALISTP when non--nil will not use `all-completions' to collect
|
candidates because it doesn't handle alists correctly for helm.
|
i.e In `all-completions' the car of each pair is used as value.
|
In helm we want to use the cdr instead like (display . real),
|
so we return the alist as it is with no transformation by
|
`all-completions'.
|
|
e.g
|
|
(setq A '((a . 1) (b . 2) (c . 3)))
|
==>((a . 1) (b . 2) (c . 3))
|
(helm-comp-read "test: " A :alistp nil
|
:exec-when-only-one t
|
:initial-input "a")
|
==>"a" Which is not what we expect.
|
|
(helm-comp-read "test: " A :alistp t
|
:exec-when-only-one t
|
:initial-input "1")
|
==>"1"
|
|
See docstring of `all-completions' for more info.
|
|
INPUT is the string you want to complete against, defaulting to
|
`helm-pattern' which is the value of what you enter in minibuffer.
|
Note that when using a function as COLLECTION this value will be
|
available with the input argument of the function only when using a
|
sync source from `helm-comp-read', i.e not using
|
`:candidates-in-buffer', otherwise the function is called only once
|
with an empty string as value for `helm-pattern' because
|
`helm-pattern' is not yet computed, which is what we want otherwise
|
data would not be fully collected at init time.
|
|
If COLLECTION is an `obarray', a TEST should be needed. See `obarray'.
|
|
(fn COLLECTION &optional TEST SORT-FN ALISTP (INPUT helm-pattern))
|
(defalias 'helm-comp-read-get-candidates #[1153 "\211\203 \211A\262\242\202 \203 \304\305\306\307G\\D\"\210r\310 !\203' \206* p\211q\210\311!\203= \312#\2029\203S \313!\203S J9\203S \314\2029\203| \313!\203| \203| \315\316\317\320\321 !\322\"\307\323%\312J#\262\2029\203\221 \313!\203\221 \312J\"\202\324!\203\341 \211\325\230\204\341 \n\203\341 \326#\314\211:\203\332 @\262\327\235\204\323 \330\"\203\310 B\262\202\323 \331\332!!PB\262A\262\202\252 \211\237\266\203\202\324!\203\361 \326#\202\203\375 \204\375 \202\312#\203\333\"\202\211\262)\207" [helm-pattern helm-current-buffer minibuffer-completing-file-name helm--url-regexp signal wrong-number-of-arguments helm-comp-read-get-candidates 5 buffer-live-p vectorp all-completions boundp nil make-byte-code 257 "\3011 \300\302=\203 \300\303!!\202 \300!0\207\300\303!!\207" vconcat vector [(wrong-type-argument) commandp intern] "\n\n(fn ELM)" functionp "" t ("./" "../") string-match file-name-as-directory helm-basedir sort] 12 (#$ . 8740)])
|
#@19
|
|
(fn CANDIDATES)
|
(defalias 'helm-cr--pattern-in-candidates-p #[257 "\301\"\206 |