From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30815: 26.0.91; unicode right single quote mark with syntax entry of w not respected by forward-word Date: Tue, 13 Mar 2018 22:24:46 -0400 Message-ID: <87y3ivwg0h.fsf@gmail.com> References: <87fu53xxzc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1520994191 6855 195.159.176.226 (14 Mar 2018 02:23:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 02:23:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30815@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 03:23:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evw4I-0001fY-Cd for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 03:23:06 +0100 Original-Received: from localhost ([::1]:44095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evw6L-0002om-9Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 22:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evw6E-0002oH-Uv for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 22:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evw6A-0004CK-0H for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 22:25:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evw69-0004CG-QO for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 22:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evw69-00077L-JY for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 22:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Mar 2018 02:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed notabug Original-Received: via spool by 30815-submit@debbugs.gnu.org id=B30815.152099429527341 (code B ref 30815); Wed, 14 Mar 2018 02:25:01 +0000 Original-Received: (at 30815) by debbugs.gnu.org; 14 Mar 2018 02:24:55 +0000 Original-Received: from localhost ([127.0.0.1]:60253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evw63-00076v-99 for submit@debbugs.gnu.org; Tue, 13 Mar 2018 22:24:55 -0400 Original-Received: from mail-io0-f175.google.com ([209.85.223.175]:41490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evw61-00076g-DD for 30815@debbugs.gnu.org; Tue, 13 Mar 2018 22:24:53 -0400 Original-Received: by mail-io0-f175.google.com with SMTP id m83so2498112ioi.8 for <30815@debbugs.gnu.org>; Tue, 13 Mar 2018 19:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=53B1izp6TprurOkSGY+U1bEI6KhoolQIvcqPqDzPtdc=; b=XrObP3qmVxsPHjDV/o7S2mCpvexVQWGk6k9Q2vRBQo243HMCJJvMmweT9+zO8U7snp wKW1RSPkL+lsv7wuNUmPEozGY9nxGiE5Xrk2WvKWMzbHSomPUezJVCL27Tq2eMPO3YYj 66qlzHOaSbFcF0sbQXaa5DbVdwYHsvuZ6KBg8HT4P/CIO0J4kgvemaIOM8pXqSMgK4C0 As4KscPTi3fXIRMzATCFUIShJFoXpDLpqIN1orXpLow6nyXiNIg6mUI/1mJGtCbSEz9z YWLzEizBaqOAvrK6BB+06lKrIPs9WW6kicOTgSESwAWFfNTf+46eKfYYkNKvI3OJGcC+ 3cEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=53B1izp6TprurOkSGY+U1bEI6KhoolQIvcqPqDzPtdc=; b=HH9CYijBi3PxNtnX0Ud2qdgkue7LwO61E0RdMq/upexrK/sKgKxWh03b4td01sr88S dHHAHtu90oDn23u5Nhgg7fnCz+M1SSkDQX/gycgLPqxKAY/FnVWviijgqEbos2Ft0HcT w3+Pp2cKF/F08jW8JPjZOwke52tI7cXfbMaJE4Jfeau5joaTjQjvMZvh4qYjlvV6B7SY vde0Dk04i2ZnWihMt0qUi/vFcWx8jh1K9QDJy0qyOa/8lcPMdswy+cH6M9Sb9sZUMrtq DeJfT9bbEZSCVvX3VofJd1bQRatk7L0dBgI/UElcinH9UMBORxZraxzYyVtwBlDN6tbA 6sAg== X-Gm-Message-State: AElRT7FmcAEZAHmBDPuPjZOblL/8PWrATViZzyRoHrEK4vcj4+AfkIez ISuNZ9+Q66P3q5/k0eJlWfmSvw== X-Google-Smtp-Source: AG47ELuxuNgoy88nRGwrPS9dK6oMU0y+3UIAg0tZnboQbXO5nweIjX3pCGnQVQFc6i1ujByAvLE+ig== X-Received: by 10.107.139.148 with SMTP id n142mr104886iod.145.1520994287905; Tue, 13 Mar 2018 19:24:47 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 199-v6sm259144itl.1.2018.03.13.19.24.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Mar 2018 19:24:47 -0700 (PDT) In-Reply-To: (Aaron Jensen's message of "Tue, 13 Mar 2018 19:07:02 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144233 Archived-At: --=-=-= Content-Type: text/plain Aaron Jensen writes: > Thank you for the pointer. FWIW, I checked the docs of forward-word > which only talks about buffer syntax tables. Perhaps that should > either reference the Word Motion docs or it should also describe the > whole picture. I think leaving the whole picture to the manual makes more sense. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-Improve-word-motion-docs-Bug-30815.patch Content-Description: patch >From 4c0a6f91b72aae7f43a93f2d286731fcd939fecd Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 13 Mar 2018 22:17:43 -0400 Subject: [PATCH] Improve word motion docs (Bug#30815) * doc/lispref/positions.texi (Word Motion): Fix reference to `char-script-table'. * src/syntax.c (forward-word): Add link to 'Word Motion' manual section. --- doc/lispref/positions.texi | 2 +- src/syntax.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 0a03e246c0..fdc8bb96ae 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi @@ -210,7 +210,7 @@ Word Motion modes can override that by setting up a suitable @code{find-word-boundary-function-table}, described below. Characters that belong to different scripts (as defined by -@code{char-syntax-table}), also define a word boundary +@code{char-script-table}), also define a word boundary (@pxref{Character Properties}). In any case, this function cannot move point past the boundary of the accessible portion of the buffer, or across a field boundary (@pxref{Fields}). The most common case of diff --git a/src/syntax.c b/src/syntax.c index 378064611c..d3dd79229a 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1555,7 +1555,8 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", table, but `find-word-boundary-function-table', such as set up by `subword-mode', can change that. If a Lisp program needs to move by words determined strictly by the syntax table, it should -use `forward-word-strictly' instead. */) +use `forward-word-strictly' instead. See Info node `(elisp) Word +Motion' for details. */) (Lisp_Object arg) { Lisp_Object tmp; -- 2.11.0 --=-=-= Content-Type: text/plain > Also, as I understand the thread it seems like this is "by design" and > there's no good/accepted way to get it to behave as I want without > risking breaking unknown things. Well, just taking the syntax entry as the sole source of truth and ignoring the character script is probably the wrong thing. Maybe there is some other way to get the wanted behaviour though. I also found Bug#13129 asking about this. --=-=-=--