By default (e.g., in fundamental mode), emacs seems to treat the sequence of characters abcαβγ in a buffer as two separate words. In particular, a command like M-f done at the beginning will only move past the abc.

I have trouble understanding what is going on and how to change this behaviour. I thought that the definition of a word is a sequence of characters with syntax class w, but here all six characters have syntax class w yet it is treated as two different words.

I tried to use superword-mode, it seems to work for M-f for instance but double-clicking on it will still only select only one of the two halfs (maybe that’s a bug in superword-mode?)

  • See (elisp) Word Motion around "Characters that belong..." for explanation. Bug #10494 has some discussion on changing it. Not sure about superword-mode, probably a bug.
    – npostavs
    Oct 16 '16 at 19:36
  • @npostavs: Please consider posting your comment as an answer. The doc you cite seems to point to the culprit and how to change the behavior.
    – Drew
    Oct 16 '16 at 19:59

Browse other questions tagged or ask your own question.