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\300\303!\210\300\304!\210\300\305!\210\300\306\307\310#\210\311\312\307\313\314\303%\210\315\316\317\320\321DD\322\314\312\323\324&\210\315\325\317\320\326DD\327\314\312\323\324&\210\315\330\317\320\331DD\332\314\312\323\324&\210\315\333\317\320\334DD\335\314\312\323\324&\210\315\336\317\320\337DD\340\314\312\323\324&\210\315\341\317\320\342DD\343\314\312\323\344&\210\315\345\317\320\346DD\347\314\312\323\324&\210\315\350\317\320\351DD\352\314\312\323\353&\210\315\354\317\320\355DD\356\314\312\323\324&\210\315\357\317\320\360DD\361\314\312\323\324&\210\315\362\317\320\363DD\364\314\312\323\344&\210\315\365\317\320\366DD\367\314\312\323\370&\210\315\371\317\320\372DD\373\314\312\323\374&\210\315\375\317\320\376DD\377\314\312\323\344&\210\315\201@ \317\320\201A DD\201B \314\312\323\201C &\210\315\201D \317\320\201E DD\201F \314\312\323\201G &\210\315\201H \317\320\201I DD\201J \314\312\323\324&\210\315\201K \317\320\201L DD\201M \314\312\323\324&\210\311\201N \307\201O \201P \201Q \314\312\314\201R & \210\201S \201T \201U \201V \314\201N %\210\201S \201W \201X \201Y \314\201N %\210\201S \201Z \201[ \201\\ \314\201N %\210\201S \201] \201^ \201_ \314\201N %\210\201S \201` \201a \201b \314\201N %\207" [require cl-lib format-spec helm helm-help helm-regexp wgrep-helm nil t custom-declare-group helm-grep "Grep related Applications and libraries for Helm." :group custom-declare-variable helm-grep-default-command funcall function #[0 "\300\207" [#1="grep --color=always -a -d skip %e -n%cH -e %p %f"] 1 #1#] "Default grep format command for `helm-do-grep-1'.\nWhere:\n'%e' format spec is for --exclude or --include grep options or\n ack-grep --type option. (Not mandatory)\n\n'%c' format spec is for case-fold-search,\n whether to use the -i option of grep. (Not mandatory)\n When you specify this spec, helm grep will use smartcase\n that is when a upcase character is found in pattern case will\n be respected and no '-i' option will be used, otherwise, when\n no upcase character is found in pattern always use '-i'.\n If you don't want this behavior, don't use this spec and\n specify or not the '-i' option.\n Note that with ack-grep this is not needed, just specify\n the '--smart-case' option.\n\n'%p' format spec is for pattern. (Mandatory)\n\n'%f' format spec is for filenames. (Mandatory)\n\nIf your grep version doesn't support the --exclude/include args\ndon't specify the '%e' format spec.\n\nHelm also support ack-grep and git-grep ,\nhere a default command example for ack-grep:\n\n(setq helm-grep-default-command \"ack-grep -Hn --color --smart-case --no-group %e %p %f\"\n helm-grep-default-recurse-command \"ack-grep -H --color --smart-case --no-group %e %p %f\")\n\nYou can ommit the %e spec if you don't want to be prompted for types.\n\nNOTE: Helm for ack-grep support ANSI sequences, so you can remove\nthe \"--no-color\" option safely (recommended)\nHowever you should specify --color to enable multi matches highlighting\nbecause ack disable it when output is piped.\n\nSame for grep you can use safely the option \"--color=always\" (default).\nYou can customize the color of matches using GREP_COLORS env var.\ne.g: (setenv \"GREP_COLORS\" \"ms=30;43:mc=30;43:sl=01;37:cx=:fn=35:ln=32:bn=32:se=36\")\n\nTo enable ANSI color in git-grep just add \"--color=always\".\nTo customize the ANSI color in git-grep, GREP_COLORS have no effect,\nyou will have to setup this in your .gitconfig:\n\n [color \"grep\"]\n match = black yellow\n\nwhere \"black\" is the foreground and \"yellow\" the background.\nSee the git documentation for more infos.\n\n`helm-grep-default-command' and `helm-grep-default-recurse-command'are\nindependents, so you can enable `helm-grep-default-command' with ack-grep\nand `helm-grep-default-recurse-command' with grep if you want to be faster\non recursive grep.\n\nNOTE: Remote grepping is not available with ack-grep,\n and badly supported with grep because tramp handle badly\n repeated remote processes in a short delay (< to 5s)." :type string helm-grep-default-recurse-command #[0 "\300\207" [#2="grep --color=always -a -d recurse %e -n%cH -e %p %f"] 1 #2#] "Default recursive grep format command for `helm-do-grep-1'.\nSee `helm-grep-default-command' for format specs and infos about ack-grep." helm-default-zgrep-command #[0 "\300\207" [#3="zgrep --color=always -a -n%cH -e %p %f"] 1 #3#] "Default command for Zgrep.\nSee `helm-grep-default-command' for infos on format specs.\nOption --color=always is supported and can be used safely\nto replace the helm internal match highlighting,\nsee `helm-grep-default-command' for more infos." helm-pdfgrep-default-command #[0 "\300\207" [#4="pdfgrep --color always -niH %s %s"] 1 #4#] "Default command for pdfgrep.\nOption \"--color always\" is supported starting helm version 1.7.8,\nwhen used matchs will be highlighted according to GREP_COLORS env var." helm-pdfgrep-default-recurse-command #[0 "\300\207" [#5="pdfgrep --color always -rniH %s %s"] 1 #5#] "Default recurse command for pdfgrep.\nOption \"--color always\" is supported starting helm version 1.7.8,\nwhen used matchs will be highlighted according to GREP_COLORS env var." helm-grep-use-ioccur-style-keys #[0 "\300\207" [t] 1] "Use Arrow keys to jump to occurences." boolean helm-pdfgrep-default-read-command #[0 "\300\207" [nil] 1] "Default command to read pdf files from pdfgrep.\nWhere '%f' format spec is filename and '%p' is page number.\ne.g In Ubuntu you can set it to:\n\n \"evince --page-label=%p '%f'\"\n\nIf set to nil either `doc-view-mode' or `pdf-view-mode' will be used\ninstead of an external command." helm-grep-max-length-history #[0 "\300\207" [100] 1] "Max number of elements to save in `helm-grep-history'." integer helm-zgrep-file-extension-regexp #[0 "\300\207" [#6=".*\\(\\.gz\\|\\.bz\\|\\.xz\\|\\.lzma\\)$"] 1 #6#] "Default file extensions zgrep will search in." helm-grep-preferred-ext #[0 "\300\207" [nil] 1] "This file extension will be preselected for grep." helm-grep-save-buffer-name-no-confirm #[0 "\300\207" [nil] 1] "when *hgrep* already exists,auto append suffix." helm-grep-ignored-files #[0 "\301\302\303\304\305\"\"B\207" [completion-ignored-extensions ".#*" delq nil mapcar #[257 "\301\302\303\304#)\266\203?\205 \305P\207" [inhibit-changing-match-data "/\\'" nil t string-match "*"] 8 "\n\n(fn S)"]] 6] "List of file names which `helm-grep' shall exclude." (repeat string) helm-grep-ignored-directories #[0 "\207" [helm-walk-ignore-directories] 1] "List of names of sub-directories which `helm-grep' shall not recurse into." (repeat string) helm-grep-truncate-lines #[0 "\300\207" [t] 1] "When nil the grep line that appears will not be truncated." helm-grep-file-path-style #[0 "\300\207" [basename] 1] "File path display style when grep results are displayed.\nPossible value are:\n basename: displays only the filename, none of the directory path\n absolute: displays absolute path\n relative: displays relative path from root grep directory." (choice (const :tag "Basename" basename) (const :tag "Absolute" absolute) (const :tag "Relative" relative)) helm-grep-actions #[0 "\300\301\302\303\304\305\306\307\310&\207" [helm-make-actions "Find File" helm-grep-action "Find file other frame" helm-grep-other-frame "Save results in grep buffer" helm-grep-save-results "Find file other window (C-u vertically)" helm-grep-other-window] 9] "Actions for helm grep." (alist :key-type string :value-type function) helm-grep-pipe-cmd-switches #[0 "\300\207" [nil] 1] "A list of additional parameters to pass to grep pipe command.\nThis will be used for pipe command for multiple pattern matching\nfor grep, zgrep ack-grep and git-grep backends.\nIf you add extra args for ack-grep, use ack-grep options,\nfor others (grep, zgrep and git-grep) use grep options.\nHere are the commands where you may want to add switches:\n\n grep --color=always\n ack-grep --smart-case --color\n\nYou probably don't need to use this unless you know what you are doing." helm-grep-ag-pipe-cmd-switches #[0 "\300\207" [nil] 1] "A list of additional parameters to pass to grep-ag pipe command.\nUse parameters compatibles with the backend you are using\n(i.e AG for AG, PT for PT or RG for RG)\n\nYou probably don't need to use this unless you know what you are doing." helm-grep-faces "Customize the appearance of helm-grep." :prefix "helm-" helm-faces custom-declare-face helm-grep-match ((((background light)) :foreground "#b00000") (((background dark)) :foreground "gold1")) "Face used to highlight grep matches.\nHave no effect when grep backend use \"--color=\"." helm-grep-file ((t (:foreground "BlueViolet" :underline t))) "Face used to highlight grep results filenames." helm-grep-lineno ((t (:foreground "Darkorange1"))) "Face used to highlight grep number lines." helm-grep-finish ((t (:foreground "Green"))) "Face used in mode line when grep is finish." helm-grep-cmd-line ((t (:inherit font-lock-type-face))) "Face used to highlight grep command line when no results."] 10) |
|
16 |
#@30 Keymap used in Grep sources. |
|
17 |
(defvar helm-grep-map (byte-code "\302 \303\"\210\304\305\306#\210\304\307\310#\210\304\311\312#\210\304\313\314#\210\304\315\316#\210\304\317\320#\210 \203; \304\321\322#\210\304\323\324#\210\325\326\"\207" [helm-map helm-grep-use-ioccur-style-keys make-sparse-keymap set-keymap-parent define-key [M-down] helm-goto-next-file [M-up] helm-goto-precedent-file "o" helm-grep-run-other-window-action "" helm-grep-run-other-frame-action "" helm-grep-run-save-buffer "" helm-delete-backward-no-update [right] helm-execute-persistent-action [left] helm-grep-run-default-action delq nil] 5) (#$ . 9566)) |
|
18 |
#@25 Keymap used in pdfgrep. |
|
19 |
(defvar helm-pdfgrep-map (byte-code "\301 \302\"\210\303\304\305#\210\303\306\307#\210\303\310\311#\210\211\207" [helm-map make-sparse-keymap set-keymap-parent define-key [M-down] helm-goto-next-file [M-up] helm-goto-precedent-file "" helm-delete-backward-no-update] 5) (#$ . 10215)) |
|
20 |
(defvar helm-grep-mode-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\301\306\307#\210\301\310\311#\210\301\312\313#\210\301\314\315#\210\301\316\307#\210\301\317\311#\210\301\320\313#\210\301\321\315#\210\211\207" [make-sparse-keymap define-key "
" helm-grep-mode-jump "" helm-grep-mode-jump-other-window [C-down] helm-grep-mode-jump-other-window-forward [C-up] helm-grep-mode-jump-other-window-backward [M-down] helm-gm-next-file [M-up] helm-gm-precedent-file [134217838] [134217840] [134217806] [134217808]] 5)) |
|
21 |
(defvar helm-rzgrep-cache (make-hash-table :test 'equal)) |
|
22 |
(defvar helm-grep-default-function 'helm-grep-init) |
|
23 |
(defvar helm-zgrep-recurse-flag nil) |
|
24 |
(defvar helm-grep-history nil) |
|
25 |
(defvar helm-grep-ag-history nil) |
|
26 |
(defvar helm-grep-last-targets nil) |
|
27 |
(defvar helm-grep-include-files nil) |
|
28 |
(defvar helm-grep-in-recurse nil) |
|
29 |
(defvar helm-grep-use-zgrep nil) |
|
30 |
#@138 A function that should return a directory to expand candidate to. |
|
31 |
It is intended to use as a let-bound variable, DON'T set this globaly. |
|
32 |
(defvar helm-grep-default-directory-fn nil (#$ . 11423)) |
|
33 |
(defvar helm-pdfgrep-targets nil) |
|
34 |
(defvar helm-grep-last-cmd-line nil) |
|
35 |
(defvar helm-grep-split-line-regexp "^\\([[:lower:][:upper:]]?:?.*?\\):\\([0-9]+\\):\\(.*\\)") |
|
36 |
#@99 Prepare filenames and directories CANDIDATES for grep command line. |
|
37 |
|
|
38 |
(fn CANDIDATES IN-DIRECTORY) |
|
39 |
(defalias 'helm-grep-prepare-candidates #[514 "\203\n \303\304\305#\207\306\211:\203{ @\262\307\310\311 \"\203$ C\202q \312!\203: \n\2043 \313 \203: \314!C\202q \312!\203N \315\316\314!!\317P\320\"\202q \321!\204[ \310\322\"\203m \n\203m \314\323\324\323!!!!C\202q \315\320\"\"\262A\262\202
\325!\203\210 \326\327\"\202\211 \211\330\331\332#\262\310\311 \"\203\237 \303\333\305#\202\244 \303\304\305#\262\207" [helm-zgrep-recurse-flag helm-grep-default-command helm-grep-in-recurse mapconcat shell-quote-argument " " nil append string-match "^git" file-directory-p helm-grep-use-ack-p expand-file-name file-expand-wildcards file-name-as-directory "*" t file-exists-p "[*]" directory-file-name file-name-directory file-remote-p mapcar #[257 "\300\301\"\207" [file-remote-p localname] 4 "\n\n(fn X)"] helm-fast-remove-dups :test equal identity] 12 (#$ . 11789)]) |
|
40 |
#@33 |
|
41 |
|
|
42 |
(fn &optional RECURSIVE GREP) |
|
43 |
(defalias 'helm-grep-command #[512 "\203 \202 |