help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making curly apostrophe part of a word


From: Andreas Röhler
Subject: Re: making curly apostrophe part of a word
Date: Fri, 06 Sep 2013 12:37:26 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

Am 06.09.2013 11:58, schrieb Eric Abrahamsen:
Andreas Röhler <address@hidden> 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




It affects the current buffer only, not the mode in other buffers when done 
that way - maybe that's it?

Cheers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]