Skip to content

evil-bigword is not used anywhere and has no effect on forward-evil-WORD #1450

Open
@dieggsy

Description

@dieggsy

Issue type

  • Bug report

Environment

Emacs version: 28.0.50
Operating System: Arch Linux
Evil version: 1.14.0
Evil installation type: straight.el (source)
Graphical/Terminal: Both
Tested in a make emacs session (see CONTRIBUTING.md): No

Reproduction steps

  • Start Emacs
  • Load evil
  • change evil-bigword to e.g. "^ \t\r\n()"
  • Try cw with point at the begining of e.g. an-example)

Expected behavior

  • deletes up to ) and enters insert state

Actual behavior

  • deletes up to whitespace and enters insert state

Further notes

In this definition:

(defun forward-evil-WORD (&optional count)
  "Move forward COUNT \"WORDS\".
Moves point COUNT WORDS forward or (- COUNT) WORDS backward if
COUNT is negative. Point is placed after the end of the WORD (if
forward) or at the first character of the WORD (if backward). A
WORD is a sequence of non-whitespace characters
'[^\\n\\r\\t\\f ]', or an empty line matching ^$."
  (evil-forward-nearest count
                        #'(lambda (&optional cnt)
                            (evil-forward-chars "^\n\r\t\f " cnt))
                        #'forward-evil-empty-line))

The string "^\n\r\t\f " should be replaced with the variable evil-bigword (and the default value of that variable set to that string, as it contains one more whitespace character).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions