;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; with all optimizations.
|
|
;;; This file contains utf-8 non-ASCII characters,
|
;;; and so cannot be loaded into Emacs 22 or earlier.
|
(and (boundp 'emacs-version)
|
(< (aref emacs-version (1- (length emacs-version))) ?A)
|
(string-lessp emacs-version "23")
|
(error "`%s' was compiled for Emacs 23 or later" #$))
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
(byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305!\204% \306\305\307\310B\"\210\311\305\312\313#\210\314\305\315\316#\210\300\207" [require dash thingatpt help-mode fboundp defvar-local defalias macro #[770 "\300\301F\302\303DDE\207" [progn defvar make-variable-buffer-local quote] 8 "Define VAR as a buffer-local variable with default value VAL.\nLike `defvar' but additionally marks the variable as being automatically\nbuffer-local wherever it is set.\n\n(fn VAR VAL &optional DOCSTRING)"] put edebug-form-spec defvar function-put doc-string-elt 3] 4)
|
#@536 Generate a cheat sheet of all the smartparens interactive functions.
|
|
Without a prefix argument, print only the short documentation and examples.
|
|
With non-nil prefix argument ARG, show the full documentation for each function.
|
|
You can follow the links to the function or variable help page.
|
To get back to the full list, use \[help-go-back].
|
|
You can use `beginning-of-defun' and `end-of-defun' to jump to
|
the previous/next entry.
|
|
Examples are fontified using the `font-lock-string-face' for
|
better orientation.
|
|
(fn &optional ARG)
|
(defalias 'sp-cheat-sheet #[256 "\211?\262\303\304\305\306\307\310!!\"A\311\211:\203: @\262:\2033 @\312=\2033 \313A!\2033 AB\262A\262\202 \211\237\266\203r\314\315!q\210p\316\317\320!\210\321 \210\322 \210\323\324!\210\325\326C\327\330!\"\210\317\320!\210\311\331\203\217 @\211>\204\203 \203~ \211>\204\203 \211B\262\210\211T\262A\262\202e \266\211\237\262\331\203@\332!\333\232\204\372 `\311\334\332!\335\336#c\210\337c\210\340!\210\212\203\353 b\210\341\324!\210\324y\210\342\343!\203\323 \341\344!\210\202\327 \341\324!\210`\262\345\346\311\316#\203\353 \211\212\324y\210`)|\210)\334\347\350\351\352\"\347Q\335\336#c\266\210\211T\262A\262\202\226 \266eb\210\345\353\311\316#\203#\354\355!\356@A\335\357$\266\202eb\210\345\360\311\316#\2039\356`S`\335\361$\210\202&eb\210\345\362\311\316#\203P\356\324\224\324\225\335\363$\210\202<eb\210\345\364\311\316#\203g\356\331\224\331\225\335\365$\210\202S\366 \210eb\210+\367\315!\207" [load-history help-xref-following standard-output (smartparens-mode smartparens-global-mode turn-on-smartparens-mode turn-off-smartparens-mode sp-wrap-cancel sp-remove-active-pair-overlay sp-splice-sexp-killing-around show-smartparens-mode show-smartparens-global-mode turn-on-show-smartparens-mode turn-off-show-smartparens-mode) (sp-use-paredit-bindings sp-use-smartparens-bindings) assoc-string file-truename locate-library "smartparens" nil defun commandp get-buffer-create "*Smartparens cheat sheet*" t read-only-mode -1 erase-buffer help-mode smartparens-mode 1 help-setup-xref sp-cheat-sheet called-interactively-p interactive 0 symbol-name "advice-compilation" propertize face font-lock-function-name-face " is " describe-function-1 forward-paragraph looking-at "^It is bound" 2 re-search-forward "^Examples:" "\n\n" make-string 72 8213 "\\(->\\|​\\)" bounds-of-thing-at-point line put-text-property font-lock-string-face "|" font-lock-warning-face "^It is bound to \\(.*?\\)\\." font-lock-keyword-face ";;.*?$" font-lock-comment-face help-make-xrefs pop-to-buffer] 14 (#$ . 979) "P"])
|
#@99 Describe user's system.
|
|
The output of this function can be used in bug reports.
|
|
(fn STARTERKIT)
|
(defalias 'sp-describe-system #[257 "\305\306\307\310\"A@\211\203# \311\312! >\204 \313\314\315D\"\210\316H!\202$ \317\262\320\n!\321\303!\2050 \322\323\324\325 #\320\f!&\326r\327\330!q\210\331 \210\332c\210c\210p)!\210\333!\207" [package-alist cl-struct-package-desc-tags major-mode smartparens-strict-mode system-type format "- `smartparens` version: %s\n- Active `major-mode`: `%s`\n- Smartparens strict mode: %s\n- Emacs version (`M-x emacs-version`): %s\n- Starterkit/Distribution: %s\n- OS: %s" assoc smartparens package-version-join type-of signal wrong-type-argument package-desc 2 "<Please specify manually>" symbol-name boundp replace-regexp-in-string "\n" "" emacs-version pop-to-buffer get-buffer-create "*sp-describe-system*" erase-buffer "The content of the buffer underneath the line was\ncopied to your clipboard. You can also edit it in this buffer\nand then copy the results manually.\n------------------------------------------------\n" kill-new] 10 (#$ . 3606) (byte-code "\300\301\302\303\304E\"C\207" [completing-read "Starterkit/Distribution used: " "Spacemacs" "Evil" "Vanilla"] 5)])
|
#@41 Function to restrict the forward search
|
(defvar sp-forward-bound-fn nil (#$ . 4831))
|
(make-variable-buffer-local 'sp-forward-bound-fn)
|
#@42 Function to restrict the backward search
|
(defvar sp-backward-bound-fn nil (#$ . 4972))
|
(make-variable-buffer-local 'sp-backward-bound-fn)
|
#@155 Get the bound to limit the forward search for looking for pairs.
|
|
If it returns nil, the original bound passed to the search
|
function will be considered.
|
(defalias 'sp--get-forward-bound #[0 "\205 \207" [sp-forward-bound-fn] 1 (#$ . 5117)])
|
#@156 Get the bound to limit the backward search for looking for pairs.
|
|
If it returns nil, the original bound passed to the search
|
function will be considered.
|
(defalias 'sp--get-backward-bound #[0 "\205 \207" [sp-backward-bound-fn] 1 (#$ . 5369)])
|
#@37 Keymap used for `smartparens-mode'.
|
(defvar smartparens-mode-map (make-sparse-keymap) (#$ . 5623))
|
(byte-code "\300\301\302\"\210\303\301\302\304#\207" [defvaralias sp-keymap smartparens-mode-map make-obsolete-variable "2015-01-01"] 4)
|
#@115 Paredit inspired bindings.
|
|
Alist containing the default paredit bindings to corresponding
|
smartparens functions.
|
(defvar sp-paredit-bindings '(("C-M-f" . sp-forward-sexp) ("C-M-b" . sp-backward-sexp) ("C-M-u" . sp-backward-up-sexp) ("C-M-d" . sp-down-sexp) ("C-M-p" . sp-backward-down-sexp) ("C-M-n" . sp-up-sexp) ("M-s" . sp-splice-sexp) ("M-<up>" . sp-splice-sexp-killing-backward) ("M-<down>" . sp-splice-sexp-killing-forward) ("M-r" . sp-splice-sexp-killing-around) ("M-(" . sp-wrap-round) ("C-)" . sp-forward-slurp-sexp) ("C-<right>" . sp-forward-slurp-sexp) ("C-}" . sp-forward-barf-sexp) ("C-<left>" . sp-forward-barf-sexp) ("C-(" . sp-backward-slurp-sexp) ("C-M-<left>" . sp-backward-slurp-sexp) ("C-{" . sp-backward-barf-sexp) ("C-M-<right>" . sp-backward-barf-sexp) ("M-S" . sp-split-sexp) ("M-j" . sp-join-sexp) ("M-?" . sp-convolute-sexp)) (#$ . 5866))
|
#@78 Populates the `smartparens-mode-map' from the BINDINGS alist.
|
|
(fn BINDINGS)
|
(defalias 'sp--populate-keymap #[257 "\211\301\205 @\302\303@!A#\266\211T\262A\262\202 \207" [smartparens-mode-map 0 define-key read-kbd-macro] 8 (#$ . 6738)])
|
#@61 Initiate `smartparens-mode-map' with `sp-paredit-bindings'.
|
(defalias 'sp-use-paredit-bindings #[0 "\301!\207" [sp-paredit-bindings sp--populate-keymap] 2 (#$ . 6992) nil])
|
#@52 Alist containing the default smartparens bindings.
|
(defvar sp-smartparens-bindings '(("C-M-f" . sp-forward-sexp) ("C-M-b" . sp-backward-sexp) ("C-M-d" . sp-down-sexp) ("C-M-a" . sp-backward-down-sexp) ("C-S-d" . sp-beginning-of-sexp) ("C-S-a" . sp-end-of-sexp) ("C-M-e" . sp-up-sexp) ("C-M-u" . sp-backward-up-sexp) ("C-M-n" . sp-next-sexp) ("C-M-p" . sp-previous-sexp) ("C-M-k" . sp-kill-sexp) ("C-M-w" . sp-copy-sexp) ("M-<delete>" . sp-unwrap-sexp) ("M-<backspace>" . sp-backward-unwrap-sexp) ("C-<right>" . sp-forward-slurp-sexp) ("C-<left>" . sp-forward-barf-sexp) ("C-M-<left>" . sp-backward-slurp-sexp) ("C-M-<right>" . sp-backward-barf-sexp) ("M-D" . sp-splice-sexp) ("C-M-<delete>" . sp-splice-sexp-killing-forward) ("C-M-<backspace>" . sp-splice-sexp-killing-backward) ("C-S-<backspace>" . sp-splice-sexp-killing-around) ("C-]" . sp-select-next-thing-exchange) ("C-M-]" . sp-select-next-thing) ("C-M-SPC" . sp-mark-sexp) ("M-F" . sp-forward-symbol) ("M-B" . sp-backward-symbol)) (#$ . 7172))
|
#@65 Initiate `smartparens-mode-map' with `sp-smartparens-bindings'.
|
(defalias 'sp-use-smartparens-bindings #[0 "\301!\207" [sp-smartparens-bindings sp--populate-keymap] 2 (#$ . 8180) nil])
|
#@291 Set up the default keymap based on `sp-base-key-bindings'.
|
|
SYMBOL is the symbol being set, that is `sp-base-key-bindings'.
|
|
VALUE is the saved value (as a symbol), can be one of:
|
- sp
|
- paredit
|
|
This function is also used as a setter for this customize value.
|
|
(fn &optional SYMBOL VALUE)
|
(defalias 'sp--set-base-key-bindings #[512 "\203 |