[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48192: forward-word and friends have inconsistent behaviour with Uni
From: |
Andreas Schwab |
Subject: |
bug#48192: forward-word and friends have inconsistent behaviour with Unicode and ASCII punctuation |
Date: |
Mon, 03 May 2021 17:49:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
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."