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\312\313\314&\210\315\316\317\320\321DD\322\323\324\313\306\325\326& \210\315\327\317\320\330DD\331\323\332\313\306\325\333\334\335&\210\315\336\317\320\337DD\340\323\341\313\306\325\333\334\342&\210\315\343\317\320\344DD\345\323\346\313\306\325\333\334\347&\210\315\350\317\320\351DD\352\323\353\313\306\325\333\334\354&\210\315\355\317\320\356DD\357\323\360\313\306\325\361& \210\315\362\317\320\363DD\364\323\365\313\306\325\366& \210\367\370\371\372\313\373%\210\367\374\375\376\313\373%\210\367\377\201@ \201A \313\373%\210\367\201B \201C \201D \313\373%\207" [require cl-lib dash eieio magit-utils custom-declare-group magit-section nil "Expandable sections." :link (info-link "(magit)Sections") :group magit custom-declare-variable magit-section-show-child-count funcall function #[0 "\300\207" [t] 1] "Whether to append the number of children to section headings.\nThis only applies to sections for which doing so makes sense." :package-version (magit . "2.1.0") :type boolean magit-section-movement-hook #[0 "\300\207" [(magit-hunk-set-window-start magit-log-maybe-update-revision-buffer magit-log-maybe-show-more-commits)] 1] "Hook run by `magit-section-goto'.\nThat function in turn is used by all section movement commands." (magit . "2.3.0") hook :options (magit-hunk-set-window-start magit-status-maybe-update-revision-buffer magit-status-maybe-update-blob-buffer magit-log-maybe-update-revision-buffer magit-log-maybe-update-blob-buffer magit-log-maybe-show-more-commits) magit-section-highlight-hook #[0 "\300\207" [(magit-diff-highlight magit-section-highlight magit-section-highlight-selection)] 1] "Functions used to highlight the current section.\nEach function is run with the current section as only argument\nuntil one of them returns non-nil." (magit . "2.1.0") (magit-diff-highlight magit-section-highlight magit-section-highlight-selection) magit-section-unhighlight-hook #[0 "\300\207" [(magit-diff-unhighlight)] 1] "Functions used to unhighlight the previously current section.\nEach function is run with the current section as only argument\nuntil one of them returns non-nil. Most sections are properly\nunhighlighted without requiring a specialized unhighlighter,\ndiff-related sections being the only exception." (magit . "2.1.0") (magit-diff-unhighlight) magit-section-set-visibility-hook #[0 "\300\207" [(magit-diff-expansion-threshold magit-section-cached-visibility)] 1] "Hook used to set the initial visibility of a section.\nStop at the first function that returns non-nil. The returned\nvalue should be `show', `hide' or nil. If no function returns\nnon-nil, determine the visibility as usual, i.e. use the\nhardcoded section specific default (see `magit-insert-section')." (magit . "2.4.0") (magit-diff-expansion-threshold magit-section-cached-visibility) magit-section-cache-visibility #[0 "\300\207" [t] 1] "Whether to cache visibility of sections.\n\nSections always retain their visibility state when they are being\nrecreated during a refresh. But if a section disappears and then\nlater reappears again, then this option controls whether this is\nthe case.\n\nIf t, then cache the visibility of all sections. If a list of\nsection types, then only do so for matching sections. If nil,\nthen don't do so for any sections." (magit . "2.12.0") (choice (const :tag "Don't cache visibility" nil) (const :tag "Cache visibility of all sections" t) (repeat :tag "Cache visibility for section types" symbol)) magit-section-initial-visibility-alist #[0 "\300\207" [((stashes . hide))] 1] "Alist controlling the initial visibility of sections.\n\nEach element maps a section type or lineage to the initial\nvisibility state for such sections. The state has to be one of\n`show' or `hide', or a function that returns one of these symbols.\nA function is called with the section as the only argument.\n\nUse the command `magit-describe-section' to determine a section's\nlineage or type. The vector in the output is the section lineage\nand the type is the first element of that vector. Wildcards can\nbe used, see `magit-section-match'.\n\nCurrently this option is only used to override hardcoded defaults,\nbut in the future it will also be used set the defaults.\n\nAn entry whose key is `magit-status-initial-section' specifies\nthe visibility of the section `magit-status-goto-initial-section'\njumps to. This does not only override defaults, but also other\nentries of this alist." (magit . "2.12.0") (alist :key-type (sexp :tag "Section type/lineage") :value-type (choice (const hide) (const show) function)) custom-declare-face magit-section-highlight ((((class color) (background light)) :background "grey95") (((class color) (background dark)) :background "grey20")) "Face for highlighting the current section." magit-faces magit-section-heading ((((class color) (background light)) :foreground "DarkGoldenrod4" :weight bold) (((class color) (background dark)) :foreground "LightGoldenrod2" :weight bold)) "Face for section headings." magit-section-secondary-heading ((t :weight bold)) "Face for section headings of some secondary headings." magit-section-heading-selection ((((class color) (background light)) :foreground "salmon4") (((class color) (background dark)) :foreground "LightSalmon3")) "Face for selected section headings."] 12) |
|
16 |
#@53 Internal variable used for `magit-explain-section'. |
|
17 |
(defvar magit--current-section-hook nil (#$ . 5791)) |
|
18 |
(defvar magit--section-type-alist '((file . magit-file-section) (hunk . magit-hunk-section) (module . magit-module-section))) |
|
19 |
(byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\315$\207" [defalias magit-section-p eieio-make-class-predicate magit-section magit-section--eieio-childp eieio-make-child-predicate magit-section-child-p make-obsolete "use (cl-typep ... \\='magit-section) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal nil ((keymap :initform nil :allocation :class) (type :initform nil :initarg :type) (value :initform nil :initarg :value) (start :initform nil :initarg :start) (content :initform nil) (end :initform nil) (hidden :initform nil) (washer :initform nil) (process :initform nil) (heading-highlight-face :initform nil) (inserter :initform (symbol-value 'magit--current-section-hook)) (parent :initform nil :initarg :parent) (children :initform nil))] 6) |
|
20 |
#@70 Create a new object of class type `magit-section'. |
|
21 |
|
|
22 |
(fn &rest SLOTS) |
|
23 |
(defalias 'magit-section #[128 "\300\301\302#\207" [apply make-instance magit-section] 5 (#$ . 6892)]) |
|
24 |
(byte-code "\300\301\302\303#\300\207" [function-put magit-section compiler-macro magit-section--anon-cmacro] 4) |
|
25 |
#@26 |
|
26 |
|
|
27 |
(fn WHOLE &rest SLOTS) |
|
28 |
(defalias 'magit-section--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 7184)]) |
|
29 |
(byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias magit-file-section-p eieio-make-class-predicate magit-file-section magit-file-section--eieio-childp eieio-make-child-predicate magit-file-section-child-p make-obsolete "use (cl-typep ... \\='magit-file-section) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (magit-section) ((source :initform nil) (header :initform nil)) nil] 6) |
|
30 |
#@75 Create a new object of class type `magit-file-section'. |
|
31 |
|
|
32 |
(fn &rest SLOTS) |
|
33 |
(defalias 'magit-file-section #[128 "\300\301\302#\207" [apply make-instance magit-file-section] 5 (#$ . 7930)]) |
|
34 |
(byte-code "\300\301\302\303#\300\207" [function-put magit-file-section compiler-macro magit-file-section--anon-cmacro] 4) |
|
35 |
#@26 |
|
36 |
|
|
37 |
(fn WHOLE &rest SLOTS) |
|
38 |
(defalias 'magit-file-section--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 8247)]) |
|
39 |
(byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias magit-hunk-section-p eieio-make-class-predicate magit-hunk-section magit-hunk-section--eieio-childp eieio-make-child-predicate magit-hunk-section-child-p make-obsolete "use (cl-typep ... \\='magit-hunk-section) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (magit-section) ((refined :initform nil)) nil] 6) |
|
40 |
#@75 Create a new object of class type `magit-hunk-section'. |
|
41 |
|
|
42 |
(fn &rest SLOTS) |
|
43 |
(defalias 'magit-hunk-section #[128 "\300\301\302#\207" [apply make-instance magit-hunk-section] 5 (#$ . 8976)]) |
|
44 |
(byte-code "\300\301\302\303#\300\207" [function-put magit-hunk-section compiler-macro magit-hunk-section--anon-cmacro] 4) |
|
45 |
#@26 |
|
46 |
|
|
47 |
(fn WHOLE &rest SLOTS) |
|
48 |
(defalias 'magit-hunk-section--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 9293)]) |
|
49 |
(byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\211$\207" [defalias magit-module-section-p eieio-make-class-predicate magit-module-section magit-module-section--eieio-childp eieio-make-child-predicate magit-module-section-child-p make-obsolete "use (cl-typep ... \\='magit-module-section) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (magit-file-section) nil] 6) |
|
50 |
#@77 Create a new object of class type `magit-module-section'. |
|
51 |
|
|
52 |
(fn &rest SLOTS) |
|
53 |
(defalias 'magit-module-section #[128 "\300\301\302#\207" [apply make-instance magit-module-section] 5 (#$ . 10011)]) |
|
54 |
(byte-code "\300\301\302\303#\300\207" [function-put magit-module-section compiler-macro magit-module-section--anon-cmacro] 4) |
|
55 |
#@26 |
|
56 |
|
|
57 |
(fn WHOLE &rest SLOTS) |
|
58 |
(defalias 'magit-module-section--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 10339)]) |
|
59 |
#@186 The root section in the current buffer. |
|
60 |
All other sections are descendants of this section. The value |
|
61 |
of this variable is set by `magit-insert-section' and you should |
|
62 |
never modify it. |
|
63 |
(defvar magit-root-section nil (#$ . 10580)) |
|
64 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local magit-root-section put permanent-local t] 4) |
|
65 |
#@30 Return the section at point. |
|
66 |
(defalias 'magit-current-section #[0 "\301`\302\"\206 \207" [magit-root-section get-text-property magit-section] 3 (#$ . 10937)]) |
|
67 |
#@107 Return an unique identifier for SECTION. |
|
68 |
The return value has the form ((TYPE . VALUE)...). |
|
69 |
|
|
70 |
(fn SECTION) |
|
71 |
(defalias 'magit-section-ident #[257 "\211\301\302\"\301\302\"\303>\204 \301\304\"\202G \305\301\304\"\306\307\310#)\266\203\203/ \301\304\"\202G \311\301\304\"\306\307\310#)\266\203\203F \312\202G \313B\301\314\"\205U \315\301\314\"!B\207" [inhibit-changing-match-data slot-value type (unpulled unpushed) value "@{upstream}" nil t string-match "\\`\\.\\." "..@{push}" "@{push}.." parent magit-section-ident] 10 (#$ . 11105)]) |
|
72 |
#@129 Return the section identified by IDENT. |
|
73 |
IDENT has to be a list as returned by `magit-section-ident'. |
|
74 |
|
|
75 |
(fn IDENT &optional ROOT) |
|
76 |
(defalias 'magit-get-section #[513 "\301!\262\211\206\n \211A\262\242@\302\303\"=\205t \203s \304\302\305\"\306\307\203_ \203_ @\2038 \304\262\202S @@\302\303\"=\203S @A\302\310\"\232\203S \211\262\210\211T\262A\262\202$ \266\211\262\211\262\203s \211A\262\210\202 \211\207" [magit-root-section reverse eieio-oref type nil children t 0 value] 12 (#$ . 11662)]) |
|
77 |
#@87 Return the lineage of SECTION. |
|
78 |
The return value has the form (TYPE...). |
|
79 |
|
|
80 |
(fn SECTION) |
|
81 |
(defalias 'magit-section-lineage #[257 "\300\301\"\300\302\"\211\205 \303!\262B\207" [eieio-oref type parent magit-section-lineage] 5 (#$ . 12186)]) |
|
82 |
#@24 For internal use only. |
|
83 |
(defvar magit-insert-section--current nil (#$ . 12432)) |
|
84 |
#@24 For internal use only. |
|
85 |
(defvar magit-insert-section--parent nil (#$ . 12517)) |
|
86 |
#@24 For internal use only. |
|
87 |
(defvar magit-insert-section--oldroot nil (#$ . 12601)) |
|
88 |
#@52 Move to the beginning of the next visible section. |
|
89 |
(defalias 'magit-section-forward #[0 "m\203 \300\301!\207\302 \303\304\"\203W \303\305\"?\205) \303\306\"`TU?\205) \303\307\"@\203E \211\204E \310\311\"@\211\262\204) \303\304\"\262\202) \211\203O \312!\202R \300\301!\262\202Z \312\313!\207" [user-error "No next section" magit-current-section eieio-oref parent hidden end children magit-section-siblings next magit-section-goto 1] 5 (#$ . 12686) nil]) |
|
90 |
#@232 Move to the beginning of the current or the previous visible section. |
|
91 |
When point is at the beginning of a section then move to the |
|
92 |
beginning of the previous visible section. Otherwise move to |
|
93 |
the beginning of the current section. |
|
94 |
(defalias 'magit-section-backward #[0 "o\203 \300\301!\207\302 \303`\304\305\"SU\203( \304\306\"\211\262\203( \307\310!@!\202\234 \304\311\"\203> |