all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: nXML mode word separators
Date: Fri, 08 Feb 2019 09:59:29 -0500	[thread overview]
Message-ID: <jwv36oy5o0b.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: CANc-5UxxHoRU33HGQLWJnOruLBh5975PMRNN5W4V9xFSt9yQZA@mail.gmail.com

> 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.

Word operations are not meant to be sensitive to the major mode, so it's
not a bug for them to behave differently for ' and " here (and this is
a matter of personal preference and hence local customization).

OTOH, syntax-aware operations (such as highlighting, indentation, and
things like that) should not get confused by such a difference since
both are valid XML and equivalent.

So, if the problem you describe only affects word operations, go ahead
and customize them to your heart's content, but if it also affects
syntax-aware operations, please report it as a bug.


        Stefan




      parent reply	other threads:[~2019-02-08 14:59 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
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 [this message]

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=jwv36oy5o0b.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.