Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
Am 06.09.2013 04:47, schrieb Eric Abrahamsen:
In certain modes (actually just certain files) I'd like the `’'
character to be treated the same as a `'' character with respect to word
movement: ie I'd like M-f to skip over the entirety of both "don't" and
"don’t". I'm editing externally-created files, and don't have the
liberty of changing this.
I thought this would do it:
(modify-syntax-entry ?’ "w")
Works for me in current buffer. `forward-word' passes as expected.
Which command fails for you?
`forward-word' fails... Hang on, I'll do the emacs -Q dance and see
what's going on. This was originally in an html-mode buffer, but I don't
see why that would matter as long as no third argument was passed to
`modify-syntax-entry'.
Thanks,
E