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\304\305#\204 \306\307!\210\310\311\304\312\313\301%\210\314\315\316\317\320\321%\207" [require diff-hl diff nadvice nil t error "`diff-hl-flydiff-mode' requires Emacs 24.4 or newer" custom-declare-group diff-hl-flydiff "Highlight changes on the fly" :group custom-declare-variable diff-hl-flydiff-delay 0.3 "The idle delay in seconds before highlighting is updated." :type number] 6) |
|
16 |
(defvar diff-hl-flydiff-modified-tick 0) |
|
17 |
(defvar diff-hl-flydiff-timer nil) |
|
18 |
(make-variable-buffer-local 'diff-hl-flydiff-modified-tick) |
|
19 |
(defalias 'diff-hl-flydiff/vc-git--symbolic-ref #[(file) "\303\304\"\206' \305\306\305\307\310#\311\304\n\205% \312\313\n\"\203$ \314\315\n\"\202% \n#*\207" [file process-file-side-effects str vc-file-getprop vc-git-symbolic-ref nil vc-git--run-command-string "symbolic-ref" "HEAD" vc-file-setprop string-match "^\\(refs/heads/\\)?\\(.+\\)$" match-string 2] 6]) |
|
20 |
#@48 Git-specific version of `vc-working-revision'. |
|
21 |
(defalias 'diff-hl-flydiff/vc-git-working-revision #[(_file) "\301\302\303!)\207" [process-file-side-effects nil vc-git--rev-parse "HEAD"] 2 (#$ . 1342)]) |
|
22 |
#@70 Return a string for `vc-mode-line' to put in the mode line for FILE. |
|
23 |
(defalias 'diff-hl-flydiff/vc-git-mode-line-string #[(file) "\306!\307!\206 \310\311O\312\313\"\314\310\304#\314\310\305#\315\316 \317P\n\320\211%\305
\304\f\321 Q%-\207" [file rev disp-rev def-ml help-echo face vc-working-revision diff-hl-flydiff/vc-git--symbolic-ref 0 7 vc-default-mode-line-string Git get-text-property propertize replace-regexp-in-string "\\'" t "\nCurrent revision: "] 8 (#$ . 1551)]) |
|
24 |
(byte-code "\301\302\"\203\f \303\304\305\"\210\301\207" [emacs-version version<= "25.0" eval-after-load vc-git #[nil "\300\301\302\303#\210\300\304\302\305#\207" [advice-add vc-git-working-revision :override diff-hl-flydiff/vc-git-working-revision vc-git-mode-line-string diff-hl-flydiff/vc-git-mode-line-string] 4]] 3) |
|
25 |
#@49 Like vc-working-revision, but always up-to-date |
|
26 |
(defalias 'diff-hl-flydiff/working-revision #[(file) "\301\302\303\304!\305##\207" [file vc-file-setprop vc-working-revision vc-call-backend vc-backend working-revision] 7 (#$ . 2368)]) |
|
27 |
#@161 Return a backup file name for REV or the current version of FILE. |
|
28 |
If MANUAL is non-nil it means that a name for backups created by |
|
29 |
the user should be returned. |
|
30 |
(defalias 'diff-hl-flydiff-make-temp-file-name #[(file rev &optional manual) "\304\305BBC\306\307 \310\311\312\313\n#?\205 \314\315\260\")\207" [temporary-file-directory auto-save-file-name-transforms rev manual ".*" (t) expand-file-name make-auto-save-file-name ".~" subst-char-in-string 47 95 "." "~"] 7 (#$ . 2612)]) |
|
31 |
#@60 Read REVISION of FILE into a buffer and return the buffer. |
|
32 |
(defalias 'diff-hl-flydiff-create-revision #[(file revision) "\306 \"\307!\306 \310#\311\n!\204s \311\f!\203$ \312\f\n\313#\210\202s rq\210\314\211\3151g \n\316\317\320!!\321\216rq\210prq\210\322\323!\324 %+rq\210\325\313\211\313\326%\210,0\202q \210\311\n!\203r \327\n!\210+\n+\207" [file revision filename filebuf automatic-backup coding-system-for-write diff-hl-flydiff-make-temp-file-name get-file-buffer manual file-exists-p rename-file nil no-conversion (error) get-buffer-create generate-new-buffer-name " *temp file*" #[nil "\301!\205 |