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 "\301\302!\210\301\303!\210\301\304!\210\301\305!\210\301\306\307\310#\203/ \311\312\313\300!\205! \"\203/ \314\315!\203/ \315\316!\210\317\320\307\321\322\323\324\325&\210\317\326\307\327\324\320%\210\330\331\332\333\334DD\335\336\337\324\320\340\341& \210\330\342\332\333\343DD\344\324\320\340\345&\210\330\346\332\333\347DD\350\324\320\340\351&\210\330\352\332\333\353DD\354\336\355\324\320\340\351& \210\330\356\332\333\357DD\360\324\320\340\361&\210\362\363\364\365\324\326%\210\362\366\367\370\324\326%\210\362\371\372\373\324\326%\210\362\374\375\376\324\326%\210\362\377\201@ \201A \324\326%\207" [async-bytecomp-allowed-packages require button cl-lib dash format-spec async-bytecomp nil t cl-intersection (all magit) boundp fboundp async-bytecomp-package-mode 1 custom-declare-group magit-popup "Infix arguments with a popup as feedback." :link (info-link "(magit-popup)") :group bindings magit-popup-faces "Faces used by Magit-Popup." custom-declare-variable magit-popup-display-buffer-action funcall function #[0 "\300\207" [((display-buffer-below-selected))] 1] "The action used to display a popup buffer.\n\nPopup buffers are displayed using `display-buffer' with the value\nof this option as ACTION argument. You can also set this to nil\nand instead add an entry to `display-buffer-alist'." :package-version (magit-popup . "2.4.0") :type sexp magit-popup-manpage-package #[0 "\301>\203 \302\207\303\207" [system-type (windows-nt ms-dos) woman man] 2] "The package used to display manpages.\nOne of `man' or `woman'." (choice (const man) (const woman)) magit-popup-show-help-echo #[0 "\300\207" [t] 1] "Show usage information in the echo area." boolean magit-popup-show-common-commands #[0 "\300\207" [nil] 1] "Whether to initially show section with commands common to all popups.\nThis section can also be toggled temporarily using \\<magit-popup-mode-map>\\[magit-popup-toggle-show-common-commands]." (magit-popup . "2.9.0") magit-popup-use-prefix-argument #[0 "\300\207" [default] 1] "Control how prefix arguments affect infix argument popups.\n\nThis option controls the effect that the use of a prefix argument\nbefore entering a popup has.\n\n`default' With a prefix argument directly invoke the popup's\n default action (an Emacs command), instead of bringing\n up the popup.\n\n`popup' With a prefix argument bring up the popup, otherwise\n directly invoke the popup's default action.\n\n`nil' Ignore prefix arguments." (choice (const :tag "Call default action instead of showing popup" default) (const :tag "Show popup instead of calling default action" popup) (const :tag "Ignore prefix argument" nil)) custom-declare-face magit-popup-heading ((t :inherit font-lock-keyword-face)) "Face for key mode header lines." magit-popup-key ((t :inherit font-lock-builtin-face)) "Face for key mode buttons." magit-popup-argument ((t :inherit font-lock-warning-face)) "Face used to display enabled arguments in popups." magit-popup-disabled-argument ((t :inherit shadow)) "Face used to display disabled arguments in popups." magit-popup-option-value ((t :inherit font-lock-string-face)) "Face used to display option values in popups."] 10) |
|
16 |
#@901 Keymap for `magit-popup-mode'. |
|
17 |
|
|
18 |
\<magit-popup-mode-map>This keymap contains bindings common to all popups. A section |
|
19 |
listing these commands can be shown or hidden using \[magit-popup-toggle-show-common-commands]. |
|
20 |
|
|
21 |
The prefix used to toggle any switch can be changed by binding |
|
22 |
another key to `magit-invoke-popup-switch'. Likewise binding |
|
23 |
another key to `magit-invoke-popup-option' changes the prefixed |
|
24 |
used to set any option. The two prefixes have to be different. |
|
25 |
If you change these bindings, you should also change the `prefix' |
|
26 |
property of the button types `magit-popup-switch-button' and |
|
27 |
`magit-popup-option-button'. |
|
28 |
|
|
29 |
If you change any other binding, then you might have to also edit |
|
30 |
`magit-popup-common-commands' for things to align correctly in |
|
31 |
the section listing these commands. |
|
32 |
|
|
33 |
Never bind an alphabetic character in this keymap or you might |
|
34 |
make it impossible to invoke certain actions. |
|
35 |
(defvar magit-popup-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\313#\210\301\315\316#\210\301\317\320#\210\301\321\322#\210\301\323\324#\210\325\326!\203_ \301\327\330#\210\301\331\332#\210\301\333\334#\210\301\335\336#\210\202} \301\337\332#\210\301\340\334#\210\301\327\334#\210\301\333\336#\210\301\341\336#\210\211\207" [make-sparse-keymap define-key [remap self-insert-command] magit-invoke-popup-action [45 t] magit-invoke-popup-switch [61 t] magit-invoke-popup-option "" magit-popup-quit "?" magit-popup-help "k" "i" magit-popup-info "" magit-popup-toggle-show-common-commands "" magit-popup-set-default-arguments "" magit-popup-save-default-arguments featurep jkl "" universal-argument [return] push-button " " backward-button "" forward-button "
" "" ""] 5) (#$ . 3620)) |
|
36 |
(defvar magit-popup-common-commands '(("Set defaults" magit-popup-set-default-arguments) ("View popup manual" magit-popup-info) ("Toggle this section" magit-popup-toggle-show-common-commands) ("Save defaults" magit-popup-save-default-arguments) (" Popup help prefix" magit-popup-help) ("Abort" magit-popup-quit))) |
|
37 |
(byte-code "\300\301\302\303\304\305%\210\300\306\307\301\310\311\312\313\314\315\316\317\320\321\322\323\324\325&\210\300\326\307\301\310\327\312\330\314\331\316\317\320\332\322\333\324\325&\210\300\334\307\301\310\335\312\336\314\337\316\340\320\341\322\303\324\325&\210\300\342\307\301\310\335\312\343\314\344\316\345\320\341\322\303\324\346&\210\300\347\307\342\316\350\304\351&\210\300\352\307\347\314\353\324\354&\207" [define-button-type magit-popup-button face nil action #[257 "\300\301\"\300\302\"!\207" [button-get function event] 5 "\n\n(fn BUTTON)"] magit-popup-switch-button supertype function magit-invoke-popup-switch property :switches heading "Switches\n" formatter magit-popup-format-argument-button format " %k %d (%a)" prefix 45 maxcols 1 magit-popup-option-button magit-invoke-popup-option :options "Options\n" " %k %d (%a%v)" 61 magit-popup-variable-button magit-invoke-popup-action :variables "Variables\n" magit-popup-format-variable-button " %k %d" magit-popup-action-button :actions "Actions\n" magit-popup-format-action-button :max-action-columns magit-popup-command-button magit-popup-format-command-button #[257 "\300\301\"\211\302=?\205 \303!\207" [button-get function push-button call-interactively] 4 "\n\n(fn BUTTON)"] magit-popup-internal-command-button "Common Commands\n" 3] 18) |
|
38 |
#@125 The popup which is currently active. |
|
39 |
This is intended for internal use only. |
|
40 |
Don't confuse this with `magit-current-popup'. |
|
41 |
(defvar magit-this-popup nil (#$ . 7058)) |
|
42 |
(make-variable-buffer-local 'magit-this-popup) |
|
43 |
#@131 The events known to the active popup. |
|
44 |
This is intended for internal use only. |
|
45 |
Don't confuse this with `magit-current-popup-args'. |
|
46 |
(defvar magit-this-popup-events nil (#$ . 7278)) |
|
47 |
(make-variable-buffer-local 'magit-this-popup-events) |
|
48 |
(defvar magit-previous-popup nil nil) |
|
49 |
(make-variable-buffer-local 'magit-previous-popup) |
|
50 |
#@63 The buffer that was current before invoking the active popup. |
|
51 |
(defvar magit-pre-popup-buffer nil (#$ . 7606)) |
|
52 |
(make-variable-buffer-local 'magit-pre-popup-buffer) |
|
53 |
#@60 While a popup is active, get the value of PROP. |
|
54 |
|
|
55 |
(fn PROP) |
|
56 |
(defalias 'magit-popup-get #[257 "\211\302>\203 \303\"\207\303 J\"\207" [magit-this-popup-events magit-this-popup (:switches :options :variables :actions) plist-get] 4 (#$ . 7775)]) |
|
57 |
#@71 While a popup is active, set the value of PROP to VAL. |
|
58 |
|
|
59 |
(fn PROP VAL) |
|
60 |
(defalias 'magit-popup-put #[514 "\301>\203 \302#\211\207\303\304\"\207" [magit-this-popup-events (:switches :options :variables :actions) plist-put error "Property %s isn't supported"] 6 (#$ . 8026)]) |
|
61 |
#@280 The popup from which this editing command was invoked. |
|
62 |
|
|
63 |
Use this inside the `interactive' form of a popup aware command |
|
64 |
to determine whether it was invoked from a popup and if so from |
|
65 |
which popup. If the current command was invoked without the use |
|
66 |
of a popup, then this is nil. |
|
67 |
(defvar magit-current-popup nil (#$ . 8312)) |
|
68 |
#@38 The popup action now being executed. |
|
69 |
(defvar magit-current-popup-action nil (#$ . 8642)) |
|
70 |
#@830 The value of the popup arguments for this editing command. |
|
71 |
|
|
72 |
If the current command was invoked from a popup, then this is |
|
73 |
a list of strings of all the set switches and options. This |
|
74 |
includes arguments which are set by default not only those |
|
75 |
explicitly set during this invocation. |
|
76 |
|
|
77 |
When the value is nil, then that can be because no argument is |
|
78 |
set, or because the current command wasn't invoked from a popup; |
|
79 |
consult `magit-current-popup' to tell the difference. |
|
80 |
|
|
81 |
Generally it is better to use `NAME-arguments', which is created |
|
82 |
by `magit-define-popup', instead of this variable or the function |
|
83 |
by the same name, because `NAME-argument' uses the default value |
|
84 |
for the arguments when the editing command is invoked directly |
|
85 |
instead of from a popup. When the command is bound in several |
|
86 |
popups that might not be feasible though. |
|
87 |
(defvar magit-current-popup-args nil (#$ . 8738)) |
|
88 |
#@449 Return the value of the popup arguments for this editing command. |
|
89 |
|
|
90 |
The value is the same as that of the variable by the same name |
|
91 |
(which see), except that FILTER is applied. FILTER is a list |
|
92 |
of regexps; only arguments that match one of them are returned. |
|
93 |
The first element of FILTER may also be `:not' in which case |
|
94 |
only arguments that don't match any of the regexps are returned, |
|
95 |
or `:only' which doesn't change the behaviour. |
|
96 |
|
|
97 |
(fn &rest FILTER) |
|
98 |
(defalias 'magit-current-popup-args #[128 "\211C\302\303\242@\304=\203 \305\306\307\310\311!\312\"\313\314%\2028 \242@\315=\203+ \211\242A\240\210\305\306\316\310\311!\317\"\313\314% \")\207" [-compare-fn magit-current-popup-args #[514 "\300\"\207" [magit-popup-arg-match] 5 "\n\n(fn A B)"] -filter :not make-byte-code 257 "\301\300\242A\"?\207" vconcat vector [-contains-p] 4 "\n\n(fn ARG)" :only "\301\300\242\"\207" [-contains-p]] 9 (#$ . 9624)]) |
|
99 |
#@114 The buffer that was current before invoking the active popup. |
|
100 |
This is bound when invoking an action or variable. |
|
101 |
(defvar magit-current-pre-popup-buffer nil (#$ . 10542)) |
|
102 |
#@279 Execute the forms in BODY in the buffer that current before the popup. |
|
103 |
If `magit-current-pre-popup-buffer' is non-nil use that, else if |
|
104 |
`magit-pre-popup-buffer' is non-nil use that, otherwise (when no |
|
105 |
popup is involved) execute the forms in the current buffer. |
|
106 |
|
|
107 |
(fn &rest BODY) |
|
108 |
(defalias 'magit-with-pre-popup-buffer '(macro . #[128 "\300\301\302\303BBBBB\207" [--if-let (or magit-current-pre-popup-buffer magit-pre-popup-buffer) with-current-buffer it] 6 (#$ . 10719)])) |
|
109 |
(byte-code "\300\301\302\303#\300\207" [function-put magit-with-pre-popup-buffer lisp-indent-function 0] 4) |
|
110 |
#@23 |
|
111 |
|
|
112 |
(fn PATTERN STRING) |
|
113 |
(defalias 'magit-popup-arg-match #[514 "\301\302\303\304#)\266\203\204 |