Skip to content

Instantly share code, notes, and snippets.

@incandescentman
Created April 29, 2016 18:55
Show Gist options
  • Save incandescentman/5400cd4dd6ce3c903bb5f42409b05e64 to your computer and use it in GitHub Desktop.
Save incandescentman/5400cd4dd6ce3c903bb5f42409b05e64 to your computer and use it in GitHub Desktop.
Debugger entered--Lisp error: (void-variable swiper--window)
(internal--before-with-selected-window swiper--window)
(let ((save-selected-window--state (internal--before-with-selected-window swiper--window))) (save-current-buffer (unwind-protect (progn (select-window (car save-selected-window--state) (quote norecord)) (move-beginning-of-line nil) (if (re-search-forward (ivy--regex ivy-text) (line-end-position) t) (progn (match-string 0)))) (internal--after-with-selected-window save-selected-window--state))))
(let ((from (let ((save-selected-window--state (internal--before-with-selected-window swiper--window))) (save-current-buffer (unwind-protect (progn (select-window ... ...) (move-beginning-of-line nil) (if ... ...)) (internal--after-with-selected-window save-selected-window--state)))))) (if (null from) (user-error "No match") (let ((rep (read-string (format "Replace [%s] with: " from)))) (let ((save-selected-window--state (internal--before-with-selected-window swiper--window))) (save-current-buffer (unwind-protect (progn (select-window ... ...) (undo-boundary) (replace-match rep t t)) (internal--after-with-selected-window save-selected-window--state)))))))
ivy-replace()
call-interactively(ivy-replace record nil)
command-execute(ivy-replace record)
helm-M-x(nil "ivy-replace")
call-interactively(helm-M-x nil nil)
command-execute(helm-M-x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment