From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#48192: forward-word and friends have inconsistent behaviour with Unicode and ASCII punctuation Date: Mon, 03 May 2021 17:49:32 +0200 Message-ID: <8735v3om0j.fsf@igel.home> References: <6D537AD9-6B73-42C6-BA7D-D10071135E66@nonceword.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: 48192@debbugs.gnu.org To: Daphne Preston-Kendal Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 17:50:22 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldapx-0005ye-C5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 17:50:21 +0200 Original-Received: from localhost ([::1]:37040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldapw-0001Jv-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 11:50:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldape-0001Hj-Qe for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 11:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldape-0007RZ-IO for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 11:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldape-0008I0-Ed for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48192 X-GNU-PR-Package: emacs Original-Received: via spool by 48192-submit@debbugs.gnu.org id=B48192.162005697831853 (code B ref 48192); Mon, 03 May 2021 15:50:02 +0000 Original-Received: (at 48192) by debbugs.gnu.org; 3 May 2021 15:49:38 +0000 Original-Received: from localhost ([127.0.0.1]:47108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldapF-0008Hh-QN for submit@debbugs.gnu.org; Mon, 03 May 2021 11:49:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:59657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldapE-0008Hb-3i for 48192@debbugs.gnu.org; Mon, 03 May 2021 11:49:36 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4FYnTp23cqz1rxcC; Mon, 3 May 2021 17:49:34 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4FYnTn6sK2z1qqkX; Mon, 3 May 2021 17:49:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Zaxokqg1DRIn; Mon, 3 May 2021 17:49:33 +0200 (CEST) X-Auth-Info: jFZqgQzdP3kjXCQedFasy16iWk2sg32FUnhG9EW1AQK7b7rSRQ3Qh9EPMeBVXgkF Original-Received: from igel.home (ppp-46-244-165-131.dynamic.mnet-online.de [46.244.165.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 3 May 2021 17:49:33 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id A9BA72C3707; Mon, 3 May 2021 17:49:32 +0200 (CEST) X-Yow: On the road, ZIPPY is a pinhead without a purpose, but never without a POINT. In-Reply-To: <6D537AD9-6B73-42C6-BA7D-D10071135E66@nonceword.org> (Daphne Preston-Kendal's message of "Mon, 3 May 2021 16:37:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205527 Archived-At: 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."