Issue #360 resolved

Possible evil-search-symbol-forward

Anonymous created an issue

Recently I've updated evil and function bind to "" will jump to the next word at point. Before it was jumping to next symbol at point. At least for me the new behavior made the binding "" useless. For example for emacs-lisp-mode, when place cursor at word "local" in the symbol "evil-local-mode", instead of searching the whole sequence "evil-local-mode" it will only search for part of the name ("local").

I know I can just change the syntax table, but this I would have to do for every mode. Plus changing syntax table seems pretty drastic because many other Emacs packages use it and expect the default definition of a word.

What other solution might be there? Changing syntax table temporary for the duration of the call to evil-search-word-forward? Is that possible? Maybe adding evil-search-symbol-(backword|forward) functions?

Comments (3)

  1. asok

    I'm Sorry I've posted the issue as Anonymous though I had an account on bitbucket. Also it looks like bitbucket interpreted the asterisk '*' char as an italic font boundary.

    So to make myself clear I'm referring to is evil-search-word-forward that is bind to the asterisk '*' key.

  2. Frank Fischer repo owner

    Make * and # search for symbols optionally (fix #360)

    The new custom variable evil-symbol-word-search determines whether the word search function family (bound to * and #) looks for the symbol (if non-nil) or word (if nil) under point. The variable is buffer-local so it can be set appropriately for each major-mode. The default value is nil to mimic Vim's default behaviour.

    → <<cset 641b4fe4bd20>>

  3. Frank Fischer repo owner

    Make * and # search for symbols optionally (fix #360)

    The new custom variable evil-symbol-word-search determines whether the word search function family (bound to * and #) looks for the symbol (if non-nil) or word (if nil) under point. The variable is buffer-local so it can be set appropriately for each major-mode. The default value is nil to mimic Vim's default behaviour.

    → <<cset 641b4fe4bd20>>

  4. Log in to comment