;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. #@145 Call process yapf on INPUT-BUFFER saving the output to OUTPUT-BUFFER. Return the exit code. START-LINE and END-LINE specify region to format. (defalias 'yapfify-call-bin #[(input-buffer output-buffer start-line end-line) "rq\210\304ed\305\306 \306\307\310\n!\311\310 !Q&)\207" [input-buffer output-buffer start-line end-line call-process-region "yapf" nil "-l" number-to-string "-"] 12 (#$ . 88)]) #@32 Return the contents of BUFFER. (defalias 'get-buffer-string #[(buffer) "rq\210\301 )\207" [buffer buffer-string] 1 (#$ . 496)]) #@109 Try to yapfify the current region. If yapf exits with an error, the output will be shown in a help-window. (defalias 'yapfify-region #[(beginning end) "p`\306 \307 !\307 \206`Sf\310U\204$ \206`Sf\311U\203) S\202* !\312\313!\314\f$\315 \210\316=\204M\317=\203\\rq\210\320ed#\210)\202k\321=\203k\322\323\324!\"\210\325!\210 b\210\326\327 \n\".\207" [original-buffer original-point original-window-pos beginning start-line end window-start line-number-at-pos 10 13 generate-new-buffer "*yapfify*" yapfify-call-bin deactivate-mark 0 2 copy-to-buffer 1 error "Yapf failed, see %s buffer for details" buffer-name kill-buffer set-window-start selected-window end-line tmpbuf exit-code] 5 (#$ . 632) "r"]) #@23 Yapfify whole buffer. (defalias 'yapfify-buffer #[nil "\300ed\"\207" [yapfify-region] 3 (#$ . 1377) nil]) #@87 Non-nil if YAPF mode is enabled. Use the command `yapf-mode' to change this variable. (defvar yapf-mode nil (#$ . 1489)) (make-variable-buffer-local 'yapf-mode) #@561 Automatically run YAPF before saving. This is a minor mode. If called interactively, toggle the `YAPF mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `yapf-mode'. The mode's hook is called both when the mode is enabled and when it is disabled. (defalias 'yapf-mode #[(&optional arg) "\305  \306=\203\n?\202 \247\203 \307W\203\310\202\311\312\303!\2032\313\302 \"\n\2032\302 B\n\203@\314\315\316\310\311$\210\202F\317\315\316\311#\210\320\321\n\203P\322\202Q\323\"\210\324\325!\203v\305 \203e\305 \232\203v\326\327\330\n\203q\331\202r\332\f#\210))\333 \210\n\207" [#1=#:last-message arg yapf-mode local-minor-modes local current-message toggle 1 nil t boundp delq add-hook before-save-hook yapfify-buffer remove-hook run-hooks yapf-mode-hook yapf-mode-on-hook yapf-mode-off-hook called-interactively-p any " in current buffer" message "YAPF mode %sabled%s" "en" "dis" force-mode-line-update] 5 (#$ . 1657) (list (if current-prefix-arg (prefix-numeric-value current-prefix-arg) 'toggle))]) (defvar yapf-mode-hook nil) (byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\313\314\300!\205#\310\211%\210\315\316!\207" [yapf-mode-map yapf-mode-hook variable-documentation put "Hook run after entering or leaving `yapf-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode yapf-mode " YAPF" boundp provide yapfify] 6)