From: Robert Pluim <rpluim@gmail.com>
To: Skip Montanaro <skip.montanaro@gmail.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: nXML mode word separators
Date: Thu, 07 Feb 2019 16:23:12 +0100 [thread overview]
Message-ID: <m2va1voc67.fsf@gmail.com> (raw)
In-Reply-To: <CANc-5UxxHoRU33HGQLWJnOruLBh5975PMRNN5W4V9xFSt9yQZA@mail.gmail.com> (Skip Montanaro's message of "Thu, 7 Feb 2019 08:58:54 -0600")
Skip Montanaro <skip.montanaro@gmail.com> writes:
> I unfortunately have to work with handwritten XML which is used to
> define complex application configs. In that context, apostrophes are
> valid string delimiters, at least in whatever XML pseudo-dialect these
> files are written in. So, both of these snippets mean the same thing:
>
> <Env INST="2" />
> <Env INST='2' />
>
> I'm not in any sort of position to dictate any changes, so I need to
> adapt. So, forward-word currently skips over apostrophes (considering
> them word characters) and kill-word (even worse) deletes them. It has
> probably been a decade since I fiddled with syntax tables. How do I
> move apostrophes from word class to quotation(?) class in the relevant
> syntax table? FWIW, when editing XML files I seem to be in nxml-mode
> (nothing I enabled specifically, must just be the default mode).
>
(add-hook 'nxml-mode-hook
(lambda ()
(modify-syntax-entry ?' "\"")))
Robert
next prev parent reply other threads:[~2019-02-07 15:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 14:58 nXML mode word separators Skip Montanaro
2019-02-07 15:23 ` Robert Pluim [this message]
2019-02-07 17:39 ` Skip Montanaro
2019-02-07 15:34 ` Noam Postavsky
2019-02-07 15:53 ` Robert Pluim
2019-02-08 14:59 ` Stefan Monnier
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=m2va1voc67.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=skip.montanaro@gmail.com \
/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.