From: Andreas Schwab <schwab@linux-m68k.org>
To: Daphne Preston-Kendal <dpk@nonceword.org>
Cc: 48192@debbugs.gnu.org
Subject: bug#48192: forward-word and friends have inconsistent behaviour with Unicode and ASCII punctuation
Date: Mon, 03 May 2021 17:49:32 +0200 [thread overview]
Message-ID: <8735v3om0j.fsf@igel.home> (raw)
In-Reply-To: <6D537AD9-6B73-42C6-BA7D-D10071135E66@nonceword.org> (Daphne Preston-Kendal's message of "Mon, 3 May 2021 16:37:51 +0200")
On Mai 03 2021, Daphne Preston-Kendal wrote:
> forward-word, backward-word etc. have inconsistent behaviour when
> applied to text containing ASCII straight quotation marks vs. Unicode
> quotation marks. The word
> don't
> with a straight quote (U+0027) counts as a single word, and forward-word
> and backward-word will move over the whole thing. Meanwhile,
> don’t
> with a curly quote (U+2019) counts as two words, and the cursor will
> stop at ‘don’ and ‘t’ separately. (Fundamental mode, Emacs 27.2.)
Looks like you have customized the syntax table, because by default,
both ' and ’ have punctuation syntax, thus are not part of a word. But
text-mode uses a different syntax table, where ' has word syntax.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
prev parent reply other threads:[~2021-05-03 15:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-03 14:37 bug#48192: forward-word and friends have inconsistent behaviour with Unicode and ASCII punctuation Daphne Preston-Kendal
2021-05-03 15:26 ` Daphne Preston-Kendal
2022-07-01 11:34 ` Lars Ingebrigtsen
2022-07-01 15:14 ` Robert Pluim
2022-07-30 14:07 ` Lars Ingebrigtsen
2021-05-03 15:49 ` Andreas Schwab [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735v3om0j.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=48192@debbugs.gnu.org \
--cc=dpk@nonceword.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).