Skip to content

Instantly share code, notes, and snippets.

@scottaj
Created February 15, 2013 00:42
Show Gist options
  • Save scottaj/4957748 to your computer and use it in GitHub Desktop.
Save scottaj/4957748 to your computer and use it in GitHub Desktop.
Evil surround stack traces
STACKTRACE #1:
Result of typing:
cs"
inside of the string:
"yodel"
which was in a ruby-mode buffer that only contained that string.
************ BEGIN STACK TRACE ***************
* evil-range-p(nil)
* evil-range-end(nil)
* evil-quote-range(1 nil nil inclusive 34 34)
* evil-a-double-quote()
* surround-outer-overlay(34)
* #[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"](34 nil nil)
* funcall(#[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"] 34 nil nil)
* surround-change(34)
call-interactively(surround-change)
surround-edit(change)
call-interactively(surround-edit)
byte-code("\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2)
byte-code("\303\304\"\305 !\203 \306!\210\307\310\311\217\204\312 \210\304\305 !\203% \313!\210)\307\207" [motion repeat-type quit-flag evil-repeat-type t functionp pre nil (byte-code "\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2) ((quit (byte-code "\301\302\303!\207" [quit-flag t eval (ignore nil)] 2))) evil-repeat-abort post] 3)
evil-motion-range(surround-edit nil nil)
evil-operator-range(t)
byte-code("\306\307\310\"\205\311\307\310\"\206\312\311\307\313\"`\314\211\314\211\315\316\317!\320 D\"`
\321 \204=\322 \203@\317\321 \203L\323\324!\210\202`\311\307\325\"\203] \206X\nb\210\202`\nb\210.\207" [evil-operator-range-motion evil-operator-range-type orig evil-operator-range-beginning evil-operator-range-end evil-inhibit-operator evil-has-command-property-p evil-change :motion evil-get-command-property undefined :type nil append evil-operator-range t evil-yank-handler evil-visual-state-p region-active-p evil-visual-rotate upper-left :move-point evil-inhibit-operator-value this-command evil-this-operator evil-this-register deactivate-mark] 5)
call-interactively(evil-change nil nil
STACKTRACE #2:
Result of typing:
cs"
inside of the string:
"yodel"
which was in a ruby-mode buffer that only contained only the text:
def fizzle
return "yodel"
end
************ BEGIN STACK TRACE ***************
* evil-range-p((21 28))
* evil-range-end((21 28))
* evil-quote-range(1 nil nil inclusive 34 34)
* evil-a-double-quote()
* surround-outer-overlay(34)
* #[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"](34 nil nil)
* funcall(#[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"] 34 nil nil)
* surround-change(34)
call-interactively(surround-change)
surround-edit(change)
call-interactively(surround-edit)
byte-code("\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2)
byte-code("\303\304\"\305 !\203 \306!\210\307\310\311\217\204\312 \210\304\305 !\203% \313!\210)\307\207" [motion repeat-type quit-flag evil-repeat-type t functionp pre nil (byte-code "\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2) ((quit (byte-code "\301\302\303!\207" [quit-flag t eval (ignore nil)] 2))) evil-repeat-abort post] 3)
evil-motion-range(surround-edit nil nil)
evil-operator-range(t)
byte-code("\306\307\310\"\205\311\307\310\"\206\312\311\307\313\"`\314\211\314\211\315\316\317!\320 D\"`
\321 \204=\322 \203@\317\321 \203L\323\324!\210\202`\311\307\325\"\203] \206X\nb\210\202`\nb\210.\207" [evil-operator-range-motion evil-operator-range-type orig evil-operator-range-beginning evil-operator-range-end evil-inhibit-operator evil-has-command-property-p evil-change :motion evil-get-command-property undefined :type nil append evil-operator-range t evil-yank-handler evil-visual-state-p region-active-p evil-visual-rotate upper-left :move-point evil-inhibit-operator-value this-command evil-this-operator evil-this-register deactivate-mark] 5)
call-interactively(evil-change nil nil)
STACKTRACE #3:
Result of typing:
cs"
inside of the string:
"yodel"
which was in an emacs-lisp-mode buffer that only contained that string.
************ BEGIN STACK TRACE ***************
* evil-range-p((1 8))
* evil-range-end((1 8))
* evil-quote-range(1 nil nil inclusive 34 34)
* evil-a-double-quote()
* surround-outer-overlay(34)
* #[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"](34 nil nil)
* funcall(#[(char &optional outer inner) "\203 \203\303\n #\210\304\305!\306!\307\310 $\207\311\n!\312\n!\313\216\2051 \2051\314\n #+\207" [outer inner char surround-delete surround-region overlay-start overlay-end nil read-char surround-outer-overlay surround-inner-overlay ((byte-code "\203\302!\210 \203\302 !\210\302\207" [outer inner delete-overlay] 2)) surround-change] 5 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 4794) "c"] 34 nil nil)
* surround-change(34)
call-interactively(surround-change)
#[(operation) "\302=\203\n\303\304!\207\305=\203\303\306!\207\307 \310\311#\210\303\312!\207" [operation evil-operator-shortcut-map change call-interactively surround-change delete surround-delete define-key "s" evil-line surround-region] 4 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 5416) (progn (setq evil-inhibit-operator t) (list (assoc-default evil-this-operator (quote ((evil-change . change) (evil-delete . delete))))))](change)
funcall(#[(operation) "\302=\203\n\303\304!\207\305=\203\303\306!\207\307 \310\311#\210\303\312!\207" [operation evil-operator-shortcut-map change call-interactively surround-change delete surround-delete define-key "s" evil-line surround-region] 4 ("/Users/al/.emacs.d/el-get/evil-surround/surround.elc" . 5416) (progn (setq evil-inhibit-operator t) (list (assoc-default evil-this-operator (quote ((evil-change . change) (evil-delete . delete))))))] change)
surround-edit(change)
call-interactively(surround-edit)
byte-code("\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2)
byte-code("\303\304\"\305 !\203 \306!\210\307\310\311\217\204\312 \210\304\305 !\203% \313!\210)\307\207" [motion repeat-type quit-flag evil-repeat-type t functionp pre nil (byte-code "\303\304 !)\305\207" [inhibit-quit motion range nil call-interactively t] 2) ((quit (byte-code "\301\302\303!\207" [quit-flag t eval (ignore nil)] 2))) evil-repeat-abort post] 3)
evil-motion-range(surround-edit nil nil)
evil-operator-range(t)
byte-code("\306\307\310\"\205\311\307\310\"\206\312\311\307\313\"`\314\211\314\211\315\316\317!\320 D\"`
\321 \204=\322 \203@\317\321 \203L\323\324!\210\202`\311\307\325\"\203] \206X\nb\210\202`\nb\210.\207" [evil-operator-range-motion evil-operator-range-type orig evil-operator-range-beginning evil-operator-range-end evil-inhibit-operator evil-has-command-property-p evil-change :motion evil-get-command-property undefined :type nil append evil-operator-range t evil-yank-handler evil-visual-state-p region-active-p evil-visual-rotate upper-left :move-point evil-inhibit-operator-value this-command evil-this-operator evil-this-register deactivate-mark] 5)
call-interactively(evil-change nil nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment