commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file contains utf-8 non-ASCII characters, |
|
7 |
;;; and so cannot be loaded into Emacs 22 or earlier. |
|
8 |
(and (boundp 'emacs-version) |
|
9 |
(< (aref emacs-version (1- (length emacs-version))) ?A) |
|
10 |
(string-lessp emacs-version "23") |
|
11 |
(error "`%s' was compiled for Emacs 23 or later" #$)) |
|
12 |
|
|
13 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
14 |
|
|
15 |
|
|
16 |
(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) |
|
17 |
#@536 Generate a cheat sheet of all the smartparens interactive functions. |
|
18 |
|
|
19 |
Without a prefix argument, print only the short documentation and examples. |
|
20 |
|
|
21 |
With non-nil prefix argument ARG, show the full documentation for each function. |
|
22 |
|
|
23 |
You can follow the links to the function or variable help page. |
|
24 |
To get back to the full list, use \[help-go-back]. |
|
25 |
|
|
26 |
You can use `beginning-of-defun' and `end-of-defun' to jump to |
|
27 |
the previous/next entry. |
|
28 |
|
|
29 |
Examples are fontified using the `font-lock-string-face' for |
|
30 |
better orientation. |
|
31 |
|
|
32 |
(fn &optional ARG) |
|
33 |
(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"]) |
|
34 |
#@99 Describe user's system. |
|
35 |
|
|
36 |
The output of this function can be used in bug reports. |
|
37 |
|
|
38 |
(fn STARTERKIT) |
|
39 |
(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)]) |
|
40 |
#@41 Function to restrict the forward search |
|
41 |
(defvar sp-forward-bound-fn nil (#$ . 4831)) |
|
42 |
(make-variable-buffer-local 'sp-forward-bound-fn) |
|
43 |
#@42 Function to restrict the backward search |
|
44 |
(defvar sp-backward-bound-fn nil (#$ . 4972)) |
|
45 |
(make-variable-buffer-local 'sp-backward-bound-fn) |
|
46 |
#@155 Get the bound to limit the forward search for looking for pairs. |
|
47 |
|
|
48 |
If it returns nil, the original bound passed to the search |
|
49 |
function will be considered. |
|
50 |
(defalias 'sp--get-forward-bound #[0 "\205 \207" [sp-forward-bound-fn] 1 (#$ . 5117)]) |
|
51 |
#@156 Get the bound to limit the backward search for looking for pairs. |
|
52 |
|
|
53 |
If it returns nil, the original bound passed to the search |
|
54 |
function will be considered. |
|
55 |
(defalias 'sp--get-backward-bound #[0 "\205 \207" [sp-backward-bound-fn] 1 (#$ . 5369)]) |
|
56 |
#@37 Keymap used for `smartparens-mode'. |
|
57 |
(defvar smartparens-mode-map (make-sparse-keymap) (#$ . 5623)) |
|
58 |
(byte-code "\300\301\302\"\210\303\301\302\304#\207" [defvaralias sp-keymap smartparens-mode-map make-obsolete-variable "2015-01-01"] 4) |
|
59 |
#@115 Paredit inspired bindings. |
|
60 |
|
|
61 |
Alist containing the default paredit bindings to corresponding |
|
62 |
smartparens functions. |
|
63 |
(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)) |
|
64 |
#@78 Populates the `smartparens-mode-map' from the BINDINGS alist. |
|
65 |
|
|
66 |
(fn BINDINGS) |
|
67 |
(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)]) |
|
68 |
#@61 Initiate `smartparens-mode-map' with `sp-paredit-bindings'. |
|
69 |
(defalias 'sp-use-paredit-bindings #[0 "\301!\207" [sp-paredit-bindings sp--populate-keymap] 2 (#$ . 6992) nil]) |
|
70 |
#@52 Alist containing the default smartparens bindings. |
|
71 |
(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)) |
|
72 |
#@65 Initiate `smartparens-mode-map' with `sp-smartparens-bindings'. |
|
73 |
(defalias 'sp-use-smartparens-bindings #[0 "\301!\207" [sp-smartparens-bindings sp--populate-keymap] 2 (#$ . 8180) nil]) |
|
74 |
#@291 Set up the default keymap based on `sp-base-key-bindings'. |
|
75 |
|
|
76 |
SYMBOL is the symbol being set, that is `sp-base-key-bindings'. |
|
77 |
|
|
78 |
VALUE is the saved value (as a symbol), can be one of: |
|
79 |
- sp |
|
80 |
- paredit |
|
81 |
|
|
82 |
This function is also used as a setter for this customize value. |
|
83 |
|
|
84 |
(fn &optional SYMBOL VALUE) |
|
85 |
(defalias 'sp--set-base-key-bindings #[512 "\203 |