From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: making curly apostrophe part of a word
Date: Tue, 10 Sep 2013 21:39:22 -0600 [thread overview]
Message-ID: <l0ooj5$4b2$1@ger.gmane.org> (raw)
In-Reply-To: <5229B066.3020105@easy-emacs.de>
On 9/6/13 4:37 AM, Andreas Röhler wrote:
> Am 06.09.2013 11:58, schrieb Eric Abrahamsen:
>> 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'.
>
> It affects the current buffer only, not the mode in other buffers when done that
> way - maybe that's it?
Not according to its doc string:
The syntax is changed only for table SYNTAX-TABLE, which defaults to
the current buffer's syntax table.
Different buffers in the same major mode usually share the same syntax table.
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2013-09-11 3:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 2:47 making curly apostrophe part of a word Eric Abrahamsen
2013-09-06 9:51 ` Andreas Röhler
2013-09-06 9:58 ` Eric Abrahamsen
2013-09-06 10:37 ` Andreas Röhler
2013-09-11 3:39 ` Kevin Rodgers [this message]
2013-09-11 6:38 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l0ooj5$4b2$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.