Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiper frozen Emacs when search large file with two vertical split buffer #5529

Closed
zilongshanren opened this issue Mar 18, 2016 · 7 comments
Closed
Labels
- Bug tracker - Ivy stale marked as a stale issue/pr (usually by a bot) To be reproduced

Comments

@zilongshanren
Copy link
Contributor

How to reproduce:

  1. Open a buffer with two vertical split windows.
  2. Call swiper and when the minibuffer overview is shown, press c-j to move between items every quickly and then the Emac will become frozen...

If I only have one buffer opened, swiper works great and seldom cause Emacs to frozen.

BTW: I use emacs-mac port...

Full log after I run pkill -SIGUSR2 -i emacs, hope it helps.

Debugger entered--entering a function:
* vr--update(1 5 0)
  redisplay_internal\ \(C\ function\)()
  read-from-minibuffer("Swiper: " "_bmfontScale" (keymap (keymap (3 keymap (6 . swiper-toggle-face-matching)) (67108919 . swiper-mc) (67108903 . swiper-avy) (12 . swiper-recenter-top-bottom) (27 keymap (113 . swiper-query-replace))) keymap (8388719 . ivy-dispatching-done) (escape . minibuffer-keyboard-quit) (12 . ivy-alt-done) (33554440 keymap (9 . info-display-manual) (12 . find-library) (22 . find-variable) (11 . find-function-on-key) (65 . apropos) (113 . help-quit) (118 . describe-variable) (119 . where-is) (116 . help-with-tutorial) (115 . describe-syntax) (114 . info-emacs-manual) (80 . describe-package) (112 . finder-by-keyword) (110 . view-emacs-news) (109 . describe-mode) (108 . view-lossage) (107 . describe-key) (52 keymap (105 . info-other-window)) (105 . info) (104 . view-hello-file) (103 . describe-gnu-project) (102 . describe-function) (101 . view-echo-area-messages) (100 . apropos-documentation) (99 . describe-key-briefly) (98 . describe-bindings) (97 . apropos-command) (83 . info-lookup-symbol) (76 . describe-language-environment) (75 . Info-goto-emacs-key-command-node) (73 . describe-input-method) (70 . Info-goto-emacs-command-node) (67 . describe-coding-system) (28 . describe-input-method) (23 . describe-no-warranty) (20 . view-emacs-todo) (16 . view-emacs-problems) (15 . describe-distribution) (14 . view-emacs-news) (13 . view-order-manuals) (6 . find-function) (5 . view-external-packages) (4 . view-emacs-debugging) (3 . describe-copying) (1 . about-emacs) (63 . help-for-help) (46 . display-local-help) (f1 . help-for-help) ...) (8 . "�") (3 keymap (111 . ivy-occur) (1 . ivy-toggle-ignore) (15 . ivy-occur)) (67108903 . ivy-avy) (33554464 . ivy-restrict-to-matches) (11 . ivy-previous-line) (15 . spacemacs/ivy-transient-state/body) (22 . ivy-scroll-up-command) (7 . minibuffer-keyboard-quit) (6 . ivy-forward-char) (4 . ivy-delete-char) (127 . ivy-backward-delete-char) (32 . self-insert-command) (18 . ivy-reverse-i-search) (19 . ivy-next-line-or-history) (up . ivy-previous-line) (down . ivy-next-line) (16 . ivy-previous-line) (14 . ivy-next-line) (9 . ivy-partial-or-done) (10 . ivy-next-line) (27 keymap (1 . ivy-read-action) (119 . ivy-kill-ring-save) (15 . ivy-dispatching-call) (111 . ivy-dispatching-done) (105 . ivy-insert-current) (106 . ivy-yank-word) (113 . ivy-toggle-regexp-quote) (16 . ivy-previous-line-and-call) (14 . ivy-next-line-and-call) (118 . ivy-scroll-down-command) (112 . ivy-previous-history-element) (110 . ivy-next-history-element) (62 . ivy-end-of-buffer) (60 . ivy-beginning-of-buffer) (100 . ivy-kill-word) (127 . ivy-backward-kill-word) (10 . ivy-immediate-done) (13 . ivy-call)) (13 . ivy-done)) nil swiper-history)
  ivy-read("Swiper: " (#(" /*global cc */" 0 1 (display "1    ") 1 15 (font-lock-face font-lock-comment-face fontified nil)) #(" " 0 1 (display "2    ")) #(" /****************************************************************************" 0 1 (display "3    ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  Copyright (c) 2015 Chukong Technologies Inc." 0 1 (display "4    ") 1 46 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "5    ")) #("  http://www.cocos2d-x.org" 0 1 (display "6    ") 1 26 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "7    ")) #("  Permission is hereby granted, free of charge, to any person obtaining a copy" 0 1 (display "8    ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  of this software and associated documentation files (the \"Software\"), to deal" 0 1 (display "9    ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #("  in the Software without restriction, including without limitation the rights" 0 1 (display "10   ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" 0 1 (display "11   ") 1 75 (font-lock-face font-lock-doc-face fontified nil)) #("  copies of the Software, and to permit persons to whom the Software is" 0 1 (display "12   ") 1 71 (font-lock-face font-lock-doc-face fontified nil)) #("  furnished to do so, subject to the following conditions:" 0 1 (display "13   ") 1 58 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "14   ")) #("  The above copyright notice and this permission notice shall be included in" 0 1 (display "15   ") 1 76 (font-lock-face font-lock-doc-face fontified nil)) #("  all copies or substantial portions of the Software." 0 1 (display "16   ") 1 53 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "17   ")) #("  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" 0 1 (display "18   ") 1 76 (font-lock-face font-lock-doc-face fontified nil)) #("  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," 0 1 (display "19   ") 1 74 (font-lock-face font-lock-doc-face fontified nil)) #("  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" 0 1 (display "20   ") 1 77 (font-lock-face font-lock-doc-face fontified nil)) #("  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" 0 1 (display "21   ") 1 72 (font-lock-face font-lock-doc-face fontified nil)) #("  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," 0 1 (display "22   ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #("  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN" 0 1 (display "23   ") 1 75 (font-lock-face font-lock-doc-face fontified nil)) #("  THE SOFTWARE." 0 1 (display "24   ") 1 15 (font-lock-face font-lock-doc-face fontified nil)) #("  ****************************************************************************/" 0 1 (display "25   ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "26   ")) #(" var EventTarget = require(\"../cocos2d/core/event/event-target\");" 0 1 (display "27   ") 1 4 (font-lock-face font-lock-keyword-face fontified nil) 4 5 (fontified nil) 5 16 (font-lock-face font-lock-variable-name-face fontified nil) 16 19 (fontified nil) 19 26 (font-lock-face js2-function-call fontified nil) 26 27 (face (rainbow-delimiters-depth-1-face) fontified nil) 27 63 (font-lock-face font-lock-string-face fontified nil) 63 64 (face (rainbow-delimiters-depth-1-face) fontified nil) 64 65 (fontified nil)) #(" " 0 1 (display "28   ")) #(" var FontLetterDefinition = function() {" 0 1 (display "29   ") 1 4 (font-lock-face font-lock-keyword-face fontified nil) 4 5 (fontified nil) 5 25 (font-lock-face font-lock-function-name-face fontified nil) 25 28 (fontified nil) 28 36 (font-lock-face font-lock-keyword-face fontified nil) 36 37 (face (rainbow-delimiters-depth-1-face) fontified nil) 37 38 (face (rainbow-delimiters-depth-1-face) fontified nil) 38 39 (fontified nil) 39 40 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     this._u = 0;" 0 1 (display "30   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 12 (font-lock-face js2-object-property fontified nil) 12 15 (fontified nil) 15 16 (face highlight-numbers-number fontified nil) 16 17 (fontified nil)) #("     this._v = 0;" 0 1 (display "31   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 12 (font-lock-face js2-object-property fontified nil) 12 15 (fontified nil) 15 16 (face highlight-numbers-number fontified nil) 16 17 (fontified nil)) #("     this._width = 0;" 0 1 (display "32   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 16 (font-lock-face js2-object-property fontified nil) 16 19 (fontified nil) 19 20 (face highlight-numbers-number fontified nil) 20 21 (fontified nil)) #("     this._height = 0;" 0 1 (display "33   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 17 (font-lock-face js2-object-property fontified nil) 17 20 (fontified nil) 20 21 (face highlight-numbers-number fontified nil) 21 22 (fontified nil)) #("     this._offsetX = 0;" 0 1 (display "34   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 18 (font-lock-face js2-object-property fontified nil) 18 21 (fontified nil) 21 22 (face highlight-numbers-number fontified nil) 22 23 (fontified nil)) #("     this._offsetY = 0;" 0 1 (display "35   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 18 (font-lock-face js2-object-property fontified nil) 18 21 (fontified nil) 21 22 (face highlight-numbers-number fontified nil) 22 23 (fontified nil)) #("     this._textureID = 0;" 0 1 (display "36   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 20 (font-lock-face js2-object-property fontified nil) 20 23 (fontified nil) 23 24 (face highlight-numbers-number fontified nil) 24 25 (fontified nil)) #("     this._validDefinition = false;" 0 1 (display "37   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 26 (font-lock-face js2-object-property fontified nil) 26 29 (fontified nil) 29 34 (font-lock-face font-lock-constant-face fontified nil) 34 35 (fontified nil)) #("     this._xAdvance = 0;" 0 1 (display "38   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 19 (font-lock-face js2-object-property fontified nil) 19 22 (fontified nil) 22 23 (face highlight-numbers-number fontified nil) 23 24 (fontified nil)) #(" };" 0 1 (display "39   ") 1 2 (face (rainbow-delimiters-depth-1-face) fontified nil) 2 3 (fontified nil)) #(" " 0 1 (display "40   ")) #(" cc.FontAtlas = function(fntConfig) {" 0 1 (display "41   ") 1 4 (fontified nil) 4 13 (font-lock-face font-lock-function-name-face fontified nil) 13 16 (fontified nil) 16 24 (font-lock-face font-lock-keyword-face fontified nil) 24 25 (face (rainbow-delimiters-depth-1-face) fontified nil) 25 34 (font-lock-face js2-function-param fontified nil) 34 35 (face (rainbow-delimiters-depth-1-face) fontified nil) 35 36 (fontified nil) 36 37 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     this._lineHeight = fntConfig.commonHeight;" 0 1 (display "42   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 21 (font-lock-face js2-object-property fontified nil) 21 34 (fontified nil) 34 46 (font-lock-face js2-object-property fontified nil) 46 47 (fontified nil)) #("     this._fontSize = fntConfig.fontSize;" 0 1 (display "43   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 19 (font-lock-face js2-object-property fontified nil) 19 32 (fontified nil) 32 40 (font-lock-face js2-object-property fontified nil) 40 41 (fontified nil)) #("     this._letterDefinitions = {};" 0 1 (display "44   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 28 (font-lock-face js2-object-property fontified nil) 28 31 (fontified nil) 31 32 (face (rainbow-delimiters-depth-2-face) fontified nil) 32 33 (face (rainbow-delimiters-depth-2-face) fontified nil) 33 34 (fontified nil)) #("     this._fntConfig = fntConfig;" 0 1 (display "45   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 20 (font-lock-face js2-object-property fontified nil) 20 33 (fontified nil)) #(" };" 0 1 (display "46   ") 1 2 (face (rainbow-delimiters-depth-1-face) fontified nil) 2 3 (fontified nil)) #(" " 0 1 (display "47   ")) #(" cc.FontAtlas.prototype = {" 0 1 (display "48   ") 1 4 (fontified nil) 4 13 (font-lock-face js2-object-property fontified nil) 13 14 (fontified nil) 14 23 (font-lock-face js2-object-property fontified nil) 23 26 (fontified nil) 26 27 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     constructor: cc.FontAtlas," 0 1 (display "49   ") 1 5 (fontified nil) 5 16 (font-lock-face js2-object-property fontified nil) 16 21 (fontified nil) 21 30 (font-lock-face js2-object-property fontified nil) 30 31 (fontified nil)) #("     setFontSize: function(fontSize) {" 0 1 (display "50   ") 1 5 (fontified nil) 5 16 (font-lock-face font-lock-function-name-face fontified nil) 16 18 (fontified nil) 18 26 (font-lock-face font-lock-keyword-face fontified nil) 26 27 (face (rainbow-delimiters-depth-2-face) fontified nil) 27 35 (font-lock-face js2-function-param fontified nil) 35 36 (face (rainbow-delimiters-depth-2-face) fontified nil) 36 37 (fontified nil) 37 38 (face (rainbow-delimiters-depth-2-face) fontified nil)) ...) :initial-input "_bmfontScale" :keymap (keymap (3 keymap (6 . swiper-toggle-face-matching)) (67108919 . swiper-mc) (67108903 . swiper-avy) (12 . swiper-recenter-top-bottom) (27 keymap (113 . swiper-query-replace))) :preselect 163 :require-match t :update-fn swiper--update-input-ivy :unwind swiper--cleanup :action swiper--action :re-builder swiper--re-builder :history swiper-history :caller swiper)
  swiper--ivy((#(" /*global cc */" 0 1 (display "1    ") 1 15 (font-lock-face font-lock-comment-face fontified nil)) #(" " 0 1 (display "2    ")) #(" /****************************************************************************" 0 1 (display "3    ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  Copyright (c) 2015 Chukong Technologies Inc." 0 1 (display "4    ") 1 46 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "5    ")) #("  http://www.cocos2d-x.org" 0 1 (display "6    ") 1 26 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "7    ")) #("  Permission is hereby granted, free of charge, to any person obtaining a copy" 0 1 (display "8    ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  of this software and associated documentation files (the \"Software\"), to deal" 0 1 (display "9    ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #("  in the Software without restriction, including without limitation the rights" 0 1 (display "10   ") 1 78 (font-lock-face font-lock-doc-face fontified nil)) #("  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" 0 1 (display "11   ") 1 75 (font-lock-face font-lock-doc-face fontified nil)) #("  copies of the Software, and to permit persons to whom the Software is" 0 1 (display "12   ") 1 71 (font-lock-face font-lock-doc-face fontified nil)) #("  furnished to do so, subject to the following conditions:" 0 1 (display "13   ") 1 58 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "14   ")) #("  The above copyright notice and this permission notice shall be included in" 0 1 (display "15   ") 1 76 (font-lock-face font-lock-doc-face fontified nil)) #("  all copies or substantial portions of the Software." 0 1 (display "16   ") 1 53 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "17   ")) #("  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" 0 1 (display "18   ") 1 76 (font-lock-face font-lock-doc-face fontified nil)) #("  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," 0 1 (display "19   ") 1 74 (font-lock-face font-lock-doc-face fontified nil)) #("  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" 0 1 (display "20   ") 1 77 (font-lock-face font-lock-doc-face fontified nil)) #("  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" 0 1 (display "21   ") 1 72 (font-lock-face font-lock-doc-face fontified nil)) #("  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," 0 1 (display "22   ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #("  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN" 0 1 (display "23   ") 1 75 (font-lock-face font-lock-doc-face fontified nil)) #("  THE SOFTWARE." 0 1 (display "24   ") 1 15 (font-lock-face font-lock-doc-face fontified nil)) #("  ****************************************************************************/" 0 1 (display "25   ") 1 79 (font-lock-face font-lock-doc-face fontified nil)) #(" " 0 1 (display "26   ")) #(" var EventTarget = require(\"../cocos2d/core/event/event-target\");" 0 1 (display "27   ") 1 4 (font-lock-face font-lock-keyword-face fontified nil) 4 5 (fontified nil) 5 16 (font-lock-face font-lock-variable-name-face fontified nil) 16 19 (fontified nil) 19 26 (font-lock-face js2-function-call fontified nil) 26 27 (face (rainbow-delimiters-depth-1-face) fontified nil) 27 63 (font-lock-face font-lock-string-face fontified nil) 63 64 (face (rainbow-delimiters-depth-1-face) fontified nil) 64 65 (fontified nil)) #(" " 0 1 (display "28   ")) #(" var FontLetterDefinition = function() {" 0 1 (display "29   ") 1 4 (font-lock-face font-lock-keyword-face fontified nil) 4 5 (fontified nil) 5 25 (font-lock-face font-lock-function-name-face fontified nil) 25 28 (fontified nil) 28 36 (font-lock-face font-lock-keyword-face fontified nil) 36 37 (face (rainbow-delimiters-depth-1-face) fontified nil) 37 38 (face (rainbow-delimiters-depth-1-face) fontified nil) 38 39 (fontified nil) 39 40 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     this._u = 0;" 0 1 (display "30   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 12 (font-lock-face js2-object-property fontified nil) 12 15 (fontified nil) 15 16 (face highlight-numbers-number fontified nil) 16 17 (fontified nil)) #("     this._v = 0;" 0 1 (display "31   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 12 (font-lock-face js2-object-property fontified nil) 12 15 (fontified nil) 15 16 (face highlight-numbers-number fontified nil) 16 17 (fontified nil)) #("     this._width = 0;" 0 1 (display "32   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 16 (font-lock-face js2-object-property fontified nil) 16 19 (fontified nil) 19 20 (face highlight-numbers-number fontified nil) 20 21 (fontified nil)) #("     this._height = 0;" 0 1 (display "33   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 17 (font-lock-face js2-object-property fontified nil) 17 20 (fontified nil) 20 21 (face highlight-numbers-number fontified nil) 21 22 (fontified nil)) #("     this._offsetX = 0;" 0 1 (display "34   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 18 (font-lock-face js2-object-property fontified nil) 18 21 (fontified nil) 21 22 (face highlight-numbers-number fontified nil) 22 23 (fontified nil)) #("     this._offsetY = 0;" 0 1 (display "35   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 18 (font-lock-face js2-object-property fontified nil) 18 21 (fontified nil) 21 22 (face highlight-numbers-number fontified nil) 22 23 (fontified nil)) #("     this._textureID = 0;" 0 1 (display "36   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 20 (font-lock-face js2-object-property fontified nil) 20 23 (fontified nil) 23 24 (face highlight-numbers-number fontified nil) 24 25 (fontified nil)) #("     this._validDefinition = false;" 0 1 (display "37   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 26 (font-lock-face js2-object-property fontified nil) 26 29 (fontified nil) 29 34 (font-lock-face font-lock-constant-face fontified nil) 34 35 (fontified nil)) #("     this._xAdvance = 0;" 0 1 (display "38   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 19 (font-lock-face js2-object-property fontified nil) 19 22 (fontified nil) 22 23 (face highlight-numbers-number fontified nil) 23 24 (fontified nil)) #(" };" 0 1 (display "39   ") 1 2 (face (rainbow-delimiters-depth-1-face) fontified nil) 2 3 (fontified nil)) #(" " 0 1 (display "40   ")) #(" cc.FontAtlas = function(fntConfig) {" 0 1 (display "41   ") 1 4 (fontified nil) 4 13 (font-lock-face font-lock-function-name-face fontified nil) 13 16 (fontified nil) 16 24 (font-lock-face font-lock-keyword-face fontified nil) 24 25 (face (rainbow-delimiters-depth-1-face) fontified nil) 25 34 (font-lock-face js2-function-param fontified nil) 34 35 (face (rainbow-delimiters-depth-1-face) fontified nil) 35 36 (fontified nil) 36 37 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     this._lineHeight = fntConfig.commonHeight;" 0 1 (display "42   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 21 (font-lock-face js2-object-property fontified nil) 21 34 (fontified nil) 34 46 (font-lock-face js2-object-property fontified nil) 46 47 (fontified nil)) #("     this._fontSize = fntConfig.fontSize;" 0 1 (display "43   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 19 (font-lock-face js2-object-property fontified nil) 19 32 (fontified nil) 32 40 (font-lock-face js2-object-property fontified nil) 40 41 (fontified nil)) #("     this._letterDefinitions = {};" 0 1 (display "44   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 28 (font-lock-face js2-object-property fontified nil) 28 31 (fontified nil) 31 32 (face (rainbow-delimiters-depth-2-face) fontified nil) 32 33 (face (rainbow-delimiters-depth-2-face) fontified nil) 33 34 (fontified nil)) #("     this._fntConfig = fntConfig;" 0 1 (display "45   ") 1 5 (fontified nil) 5 9 (font-lock-face font-lock-builtin-face fontified nil) 9 10 (fontified nil) 10 20 (font-lock-face js2-object-property fontified nil) 20 33 (fontified nil)) #(" };" 0 1 (display "46   ") 1 2 (face (rainbow-delimiters-depth-1-face) fontified nil) 2 3 (fontified nil)) #(" " 0 1 (display "47   ")) #(" cc.FontAtlas.prototype = {" 0 1 (display "48   ") 1 4 (fontified nil) 4 13 (font-lock-face js2-object-property fontified nil) 13 14 (fontified nil) 14 23 (font-lock-face js2-object-property fontified nil) 23 26 (fontified nil) 26 27 (face (rainbow-delimiters-depth-1-face) fontified nil)) #("     constructor: cc.FontAtlas," 0 1 (display "49   ") 1 5 (fontified nil) 5 16 (font-lock-face js2-object-property fontified nil) 16 21 (fontified nil) 21 30 (font-lock-face js2-object-property fontified nil) 30 31 (fontified nil)) #("     setFontSize: function(fontSize) {" 0 1 (display "50   ") 1 5 (fontified nil) 5 16 (font-lock-face font-lock-function-name-face fontified nil) 16 18 (fontified nil) 18 26 (font-lock-face font-lock-keyword-face fontified nil) 26 27 (face (rainbow-delimiters-depth-2-face) fontified nil) 27 35 (font-lock-face js2-function-param fontified nil) 35 36 (face (rainbow-delimiters-depth-2-face) fontified nil) 36 37 (fontified nil) 37 38 (face (rainbow-delimiters-depth-2-face) fontified nil)) ...) "_bmfontScale")
  swiper("_bmfontScale")
  (let ((input (if (region-active-p) (buffer-substring-no-properties (region-beginning) (region-end)) (thing-at-point (quote symbol) t)))) (swiper input))
  spacemacs/swiper-region-or-symbol()
  call-interactively(spacemacs/swiper-region-or-symbol nil nil)
  command-execute(spacemacs/swiper-region-or-symbol)

@zilongshanren
Copy link
Contributor Author

After change to the following function I made, it works without problem now:

    (defun swiper-search-at-point ()
      (interactive )
      (let ((current-word))
        (swiper (current-word (thing-at-point 'symbol)))))

@zilongshanren
Copy link
Contributor Author

oh-my... Still have the same issue...

@zilongshanren
Copy link
Contributor Author

I will try to reproduce this issue with GNU Emacs.. I'm using Emacs-mac port at the moment.

@zilongshanren
Copy link
Contributor Author

I can't reproduce this issue with vanilla Emacs, I think it might be a bug with Spacemacs.

@sooheon
Copy link

sooheon commented Mar 18, 2016

I can't reproduce this. Can you give us the file, and what layers/modes are active in it?

@zilongshanren
Copy link
Contributor Author

Here is the file:
https://www.dropbox.com/s/8l48yilgujp1een/CCSGLabel.js?dl=0

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.14
  • Spacemacs branch: develop (rev. 00d13b4)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(spacemacs-helm spacemacs-ivy better-defaults github
                (version-control :variables version-control-diff-tool 'git-gutter+ version-control-global-margin t)
                osx semantic markdown
                (vinegar :variables vinegar-reuse-dired-buffer t)
                org prodigy search-engine
                (syntax-checking :variables syntax-checking-enable-by-default nil)
                (spell-checking :variables spell-checking-enable-by-default nil)
                yaml python lua html command-log javascript emacs-lisp
                (clojure :variables clojure-enable-fancify-symbols t)
                ranger gtags
                (spacemacs-layouts :variables layouts-enable-autosave t layouts-autosave-delay 300)
                (colors :variables colors-enable-nyan-cat-progress-bar t)
                (git :variables git-magit-status-fullscreen t magit-push-always-verify nil magit-save-repository-buffers 'dontask magit-revert-buffers 'silent magit-refs-show-commit-count 'all magit-revision-show-gravatars nil)
                (ibuffer :variables ibuffer-group-buffers-by 'projects)
                (c-c++ :variables c-c++-default-mode-for-headers 'c++-mode)
                (auto-completion :variables auto-completion-enable-sort-by-usage t)
                (shell :variables shell-default-position 'full shell-default-shell 'ansi-term shell-default-term-shell "/bin/zsh")
                (chinese :variables chinese-default-input-method 'wubi chinese-enable-fcitx t chinese-enable-youdao-dict t)
                zilongshanren guanghui)

Here is all the modes info:

Enabled minor modes: Abbrev Ace-Pinyin Ace-Pinyin-Global Anzu Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Auto-Highlight-Symbol Beacon Bug-Reference-Prog Clean-Aindent Column-Number
Company Company-Statistics Counsel Delete-Selection Diff-Auto-Refine Electric-Indent Eval-Sexp-Fu-Flash Evil
Evil-Local Evil-Search-Highlight-Persist Evil-Surround Evil-Visual-Mark File-Name-Shadow Flx-Ido
Flycheck-Pos-Tip Font-Lock Git-Gutter+ Global-Anzu Global-Auto-Revert Global-Evil-Search-Highlight-Persist
Global-Evil-Surround Global-Font-Lock Global-Git-Commit Global-Git-Gutter+ Global-Hl-Line Global-Hungry-Delete
Global-Page-Break-Lines Global-Pangu-Spacing Global-Prettify-Symbols Global-Semantic-Idle-Scheduler
Global-Semantic-Idle-Summary Global-Semantic-Stickyfunc Global-Semanticdb Global-Spacemacs-Leader-Override
Global-Undo-Tree Goto-Address-Prog Helm Helm-Descbinds Helm-Flx Highlight-Numbers Highlight-Parentheses
Hl-Todo Hs Hungry-Delete Ido-Vertical Info-Breadcrumbs-In-Mode-Line Ivy Js2-Imenu-Extras Keyfreq
Keyfreq-Autosave Line-Number Mac-Mouse-Wheel Menu-Bar Nyan Override-Global Pangu-Spacing Persp Popwin
Projectile Projectile-Global Rainbow-Delimiters Recentf Savehist Semantic Shell-Dirtrack Show-Smartparens
Show-Smartparens-Global Smartparens Spaceline-Helm Spaceline-Info Spacemacs-Leader-Override Tern
Transient-Mark Undo-Tree Vimish-Fold Vimish-Fold-Global Volatile-Highlights Which-Function Which-Key
Whitespace Window-Numbering Winner Wrap-Region Wrap-Region-Global Ws-Butler Ws-Butler-Global Xterm-Mouse

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Ivy stale marked as a stale issue/pr (usually by a bot) To be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants