;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; with all optimizations.
|
|
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
|
|
;;; This file does not contain utf-8 non-ASCII characters,
|
;;; and so can be loaded in Emacs versions earlier than 23.
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
(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)
|
#@901 Keymap for `magit-popup-mode'.
|
|
\<magit-popup-mode-map>This keymap contains bindings common to all popups. A section
|
listing these commands can be shown or hidden using \[magit-popup-toggle-show-common-commands].
|
|
The prefix used to toggle any switch can be changed by binding
|
another key to `magit-invoke-popup-switch'. Likewise binding
|
another key to `magit-invoke-popup-option' changes the prefixed
|
used to set any option. The two prefixes have to be different.
|
If you change these bindings, you should also change the `prefix'
|
property of the button types `magit-popup-switch-button' and
|
`magit-popup-option-button'.
|
|
If you change any other binding, then you might have to also edit
|
`magit-popup-common-commands' for things to align correctly in
|
the section listing these commands.
|
|
Never bind an alphabetic character in this keymap or you might
|
make it impossible to invoke certain actions.
|
(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))
|
(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)))
|
(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)
|
#@125 The popup which is currently active.
|
This is intended for internal use only.
|
Don't confuse this with `magit-current-popup'.
|
(defvar magit-this-popup nil (#$ . 7058))
|
(make-variable-buffer-local 'magit-this-popup)
|
#@131 The events known to the active popup.
|
This is intended for internal use only.
|
Don't confuse this with `magit-current-popup-args'.
|
(defvar magit-this-popup-events nil (#$ . 7278))
|
(make-variable-buffer-local 'magit-this-popup-events)
|
(defvar magit-previous-popup nil nil)
|
(make-variable-buffer-local 'magit-previous-popup)
|
#@63 The buffer that was current before invoking the active popup.
|
(defvar magit-pre-popup-buffer nil (#$ . 7606))
|
(make-variable-buffer-local 'magit-pre-popup-buffer)
|
#@60 While a popup is active, get the value of PROP.
|
|
(fn PROP)
|
(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)])
|
#@71 While a popup is active, set the value of PROP to VAL.
|
|
(fn PROP VAL)
|
(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)])
|
#@280 The popup from which this editing command was invoked.
|
|
Use this inside the `interactive' form of a popup aware command
|
to determine whether it was invoked from a popup and if so from
|
which popup. If the current command was invoked without the use
|
of a popup, then this is nil.
|
(defvar magit-current-popup nil (#$ . 8312))
|
#@38 The popup action now being executed.
|
(defvar magit-current-popup-action nil (#$ . 8642))
|
#@830 The value of the popup arguments for this editing command.
|
|
If the current command was invoked from a popup, then this is
|
a list of strings of all the set switches and options. This
|
includes arguments which are set by default not only those
|
explicitly set during this invocation.
|
|
When the value is nil, then that can be because no argument is
|
set, or because the current command wasn't invoked from a popup;
|
consult `magit-current-popup' to tell the difference.
|
|
Generally it is better to use `NAME-arguments', which is created
|
by `magit-define-popup', instead of this variable or the function
|
by the same name, because `NAME-argument' uses the default value
|
for the arguments when the editing command is invoked directly
|
instead of from a popup. When the command is bound in several
|
popups that might not be feasible though.
|
(defvar magit-current-popup-args nil (#$ . 8738))
|
#@449 Return the value of the popup arguments for this editing command.
|
|
The value is the same as that of the variable by the same name
|
(which see), except that FILTER is applied. FILTER is a list
|
of regexps; only arguments that match one of them are returned.
|
The first element of FILTER may also be `:not' in which case
|
only arguments that don't match any of the regexps are returned,
|
or `:only' which doesn't change the behaviour.
|
|
(fn &rest FILTER)
|
(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)])
|
#@114 The buffer that was current before invoking the active popup.
|
This is bound when invoking an action or variable.
|
(defvar magit-current-pre-popup-buffer nil (#$ . 10542))
|
#@279 Execute the forms in BODY in the buffer that current before the popup.
|
If `magit-current-pre-popup-buffer' is non-nil use that, else if
|
`magit-pre-popup-buffer' is non-nil use that, otherwise (when no
|
popup is involved) execute the forms in the current buffer.
|
|
(fn &rest BODY)
|
(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)]))
|
(byte-code "\300\301\302\303#\300\207" [function-put magit-with-pre-popup-buffer lisp-indent-function 0] 4)
|
#@23
|
|
(fn PATTERN STRING)
|
(defalias 'magit-popup-arg-match #[514 "\301\302\303\304#)\266\203\204 |