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\305\306\307\310\311\303%\210\312\313\314\315\311\306%\210\312\316\317\320\311\306%\210\312\321\322\323\311\306%\210\324\325\326\327\330DD\331\311\306\332\333&\210\324\334\326\327\335DD\336\311\306\332\337&\210\324\340\326\327\341DD\342\311\306\332\327&\210\324\343\326\327\344DD\345\311\306\332\346&\210\324\347\326\327\350DD\351\311\306\332\327&\210\324\352\326\327\353DD\354\332\355\356\357&\207" [require fringe diff-mode vc vc-dir custom-declare-group diff-hl nil "VC diff highlighting on the side of a window" :group custom-declare-face diff-hl-insert ((default :inherit diff-added) (((class color)) :foreground "green4")) "Face used to highlight inserted lines." diff-hl-delete ((default :inherit diff-removed) (((class color)) :foreground "red3")) "Face used to highlight deleted lines." diff-hl-change ((default :foreground "blue3") (((class color) (min-colors 88) (background light)) :background "#ddddff") (((class color) (min-colors 88) (background dark)) :background "#333355")) "Face used to highlight changed lines." custom-declare-variable diff-hl-command-prefix funcall function #[0 "\300\207" ["v"] 1] "The prefix for all `diff-hl' commands." :type string diff-hl-draw-borders #[0 "\300\207" [t] 1] "Non-nil to draw borders around fringe indicators." boolean diff-hl-highlight-function #[0 "\300\207" [diff-hl-highlight-on-fringe] 1] "Function to highlight the current line. Its arguments are\n overlay, change type and position within a hunk." diff-hl-fringe-bmp-function #[0 "\300\207" [diff-hl-fringe-bmp-from-pos] 1] "Function to choose the fringe bitmap for a given change type\n and position within a hunk. Should accept two arguments." (choice (const diff-hl-fringe-bmp-from-pos) (const diff-hl-fringe-bmp-from-type) function) diff-hl-fringe-face-function #[0 "\300\207" [diff-hl-fringe-face-from-type] 1] "Function to choose the fringe face for a given change type\n and position within a hunk. Should accept two arguments." diff-hl-side #[0 "\300\207" [left] 1] "Which side to use for indicators." (choice (const left) (const right)) :set #[514 "\301\300!\205 \211\203 \300\302!\210\303\"\210\211\205 \300\304!\207" [global-diff-hl-mode boundp -1 set-default 1] 6 "\n\n(fn VAR VALUE)"]] 8) |
|
16 |
#@59 Revision to diff against. nil means the most recent one. |
|
17 |
(defvar diff-hl-reference-revision nil (#$ . 2707)) |
|
18 |
(defalias 'diff-hl-define-bitmaps #[0 "\303\300!\203 \247\203 \304 \"\202 \305\306 \203 \307\310!\206 \311\312\313 _!\314!\2034 \315\313 _!\2025 \\\316\317\320\321\322\n\"!\"\323^\324\304\325S\"\"\304\325\"S\326!\326!\326!\311I\210SI\210\211\311I\210\211SI\210\327\330 \331%\210\327\332 \333%\210\327\334 \335%\210\327\336 \331%\210\327\337\340\317\325\333%\210\325\245\325_\211\311U\203\257 \325\202\260 \211\304\325S\"\325Z\325\245S\304\325\"\324\341_\"\327\342\324\325\"\211$\210\211\311\211I\210\211I\210\211TI\210\211S\311I\210\327\343\211$\266\206\207" [text-scale-mode-amount text-scale-mode-step diff-hl-side boundp expt 1 display-graphic-p default-value line-spacing 0 ceiling frame-char-height floatp truncate frame-parameter nil intern format "%s-fringe" 16 make-vector 2 copy-sequence define-fringe-bitmap diff-hl-bmp-top top diff-hl-bmp-middle center diff-hl-bmp-bottom bottom diff-hl-bmp-single diff-hl-bmp-i [3 3 0 3 3 3 3 3 3 3] 3 diff-hl-bmp-delete diff-hl-bmp-insert] 20]) |
|
19 |
(defalias 'diff-hl-maybe-define-bitmaps #[0 "\300 \205 \301\302!?\205 \303 \210\304\302\305\306\211\307%\207" [window-system fringe-bitmap-p diff-hl-bmp-empty diff-hl-define-bitmaps define-fringe-bitmap [0] 1 center] 6]) |
|
20 |
(defvar diff-hl-spec-cache (make-hash-table :test 'equal)) |
|
21 |
#@22 |
|
22 |
|
|
23 |
(fn TYPE POS SIDE) |
|
24 |
(defalias 'diff-hl-fringe-spec #[771 " \257\303\n\"\211\2042 \" \"\304\305\306\307\310\311\n\"!EC#\262\312\n#\266\207" [diff-hl-fringe-face-function diff-hl-fringe-bmp-function diff-hl-spec-cache gethash propertize " " display intern format "%s-fringe" puthash] 14 (#$ . 4158)]) |
|
25 |
#@17 |
|
26 |
|
|
27 |
(fn TYPE POS) |
|
28 |
(defalias 'diff-hl-fringe-face-from-type #[514 "\300\301\302\"!\207" [intern format "diff-hl-%s"] 6 (#$ . 4485)]) |
|
29 |
#@17 |
|
30 |
|
|
31 |
(fn TYPE POS) |
|
32 |
(defalias 'diff-hl-fringe-bmp-from-pos #[514 "\300\301\302\"!\207" [intern format "diff-hl-bmp-%s"] 6 (#$ . 4622)]) |
|
33 |
#@17 |
|
34 |
|
|
35 |
(fn TYPE POS) |
|
36 |
(defalias 'diff-hl-fringe-bmp-from-type #[514 "\300\267\202\f \301\207\302\207\303\207\304\305\306\"!\207" [#s(hash-table size 3 test eql rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (unknown 6 change 8 ignored 10)) question-mark exclamation-mark diff-hl-bmp-i intern format "diff-hl-bmp-%s"] 6 (#$ . 4761)]) |
|
37 |
#@13 |
|
38 |
|
|
39 |
(fn BODY) |
|
40 |
(defalias 'diff-hl-with-diff-switches '(macro . #[257 "\300\301\302\303\304\305\306!\205\f \307BBBBE\207" [let (vc-git-diff-switches (cons "-U0" (and (boundp 'vc-git-diff-switches) (listp vc-git-diff-switches) (cl-remove-if-not (lambda (arg) (member arg '("--histogram" "--patience" "--minimal"))) vc-git-diff-switches)))) (vc-hg-diff-switches nil) (vc-svn-diff-switches nil) (vc-diff-switches '("-U0")) boundp vc-disable-async-diff ((vc-disable-async-diff t))] 8 (#$ . 5105)])) |
|
41 |
#@14 |
|
42 |
|
|
43 |
(fn STATE) |
|
44 |
(defalias 'diff-hl-modified-p #[257 "\211\302=\206 \211\303=\205 \206 \207" [revert-buffer-in-progress-p diff-hl-reference-revision edited up-to-date] 3 (#$ . 5603)]) |
|
45 |
#@21 |
|
46 |
|
|
47 |
(fn FILE BACKEND) |
|
48 |
(defalias 'diff-hl-changes-buffer #[514 "\305\306\307\300!\205 <\205 \310\311\"B\312\211\313\314\315C\f\312&\210,\211\207" [vc-git-diff-switches vc-diff-switches vc-svn-diff-switches vc-hg-diff-switches diff-hl-reference-revision " *diff-hl* " "-U0" boundp cl-remove-if-not #[257 "\211\300\235\207" [("--histogram" "--patience" "--minimal")] 3 "\n\n(fn ARG)"] nil ("-U0") vc-call-backend diff] 10 (#$ . 5794)]) |
|
49 |
(defalias 'diff-hl-changes #[0 "\303!\211\205\264 \304\"\305!\203\223 \306\211r\307\"q\210eb\210m\204\212 \3101. \311\312!0\2022 \210\2023 \210\313\n!\203\212 \314\315\316!!\315\317!\211\203K \314!\202L \320\262`\321 \210\322\323`#\322\324`#\211\325U\203f \326\202q \325U\203p \327\202q \330\211\327=\203~ \320\262T\262EB\266\207\2023 )\211\237)\262\202\262 \211\331=\203\244 \320\332d!\333BBC\202\262 \211\334=\205\262 \320\332d!\335BBC\262\207" [buffer-file-name diff-auto-refine-mode diff-hunk-header-re-unified vc-backend vc-state diff-hl-modified-p nil diff-hl-changes-buffer (error) diff-beginning-of-hunk t looking-at string-to-number match-string 3 4 1 diff-end-of-hunk diff-count-matches "^\\+" "^-" 0 insert delete change added line-number-at-pos (insert) removed (delete)] 14]) |
|
50 |
(defalias 'diff-hl-update #[0 "\301 \302\303 \210\212\214~\210eb\210\211\205\264 \211@\211\211G\304U\203% \211A\262\242\202, \305\306\307GD\"\211A\262\242@Zy\210\262`\211\310V\262\203\211 \311\204Q \312\202x \302U\203b \nU\203b \313\202x \302U\203l \314\202x \nU\203w \315\202x \316\"\210\302y\210T\262S\262\202> |