For a reason I don't yet understand, superword-mode does not work in the rst-mode buffers in my Emacs. I tried Emacs 26.3 and 27.2.
The superword-mode works fine in other major modes such as text-mode.
By not not working I mean: point stops at the underscore character in something_like_this instead of moving at the end when executing the forward-word command.
For example: inside a a buffer holding the content of afile.rst, the content is the following:
This is a test for superword-mode.
Put point at_the_beginning_of_this_long_word inside this sentence.
By typing M-f it should move to the end, just after 'word' before ' inside'.
- The major mode of the buffer is
rst-mode. - Activate superword-mode with
M-x superword-mode - Place point on line 2, character 10, just before
at_the_beginning_of_this_long_word - Execute
forward-word, normally bound toM-f - In superword-mode working properly, point should move forward by 34 character just after the 'd' of 'word'
- That's what it does in text-mode
- But in rst-mode, point moves forward by 2 characters only, just after the word 'at'.
- The
forward-modecommand behaves just as ifsuperword-modewas not active, stopping at the underscore. - But looking at the value of the
superword-modevariable in the scope of that buffer, I see that it is buffer-local set tot. - Inside the
afile.rstbuffer the superword-mode lighter is shown as expected.
- The
Is there something that is known to interfere with superword-mode or some other known reason for it to not behave as expected?