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: Wed, 14 Mar 2018 19:19:22 -0400 Message-ID: <87lgeuw8hx.fsf@gmail.com> References: <87fu53xxzc.fsf@gmail.com> <87y3ivwg0h.fsf@gmail.com> <83a7vasl56.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1521069496 1755 195.159.176.226 (14 Mar 2018 23:18:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 23:18:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30815@debbugs.gnu.org, aaronjensen@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 15 00:18:11 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 1ewFet-0000Lh-DT for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Mar 2018 00:18:11 +0100 Original-Received: from localhost ([::1]:49068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewFgv-0000G8-Sw for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 19:20:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewFgk-0000ET-DA for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 19:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewFgg-00015t-87 for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 19:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewFgg-00015g-3R for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 19:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ewFgf-0008IF-LN for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 19:20: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 23:20: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.152106957231835 (code B ref 30815); Wed, 14 Mar 2018 23:20:01 +0000 Original-Received: (at 30815) by debbugs.gnu.org; 14 Mar 2018 23:19:32 +0000 Original-Received: from localhost ([127.0.0.1]:33758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewFgB-0008HP-Ug for submit@debbugs.gnu.org; Wed, 14 Mar 2018 19:19:32 -0400 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:33052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewFgA-0008H8-5V for 30815@debbugs.gnu.org; Wed, 14 Mar 2018 19:19:30 -0400 Original-Received: by mail-io0-f180.google.com with SMTP id f1so6379010iob.0 for <30815@debbugs.gnu.org>; Wed, 14 Mar 2018 16:19:30 -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=0a/t6ILHNfYNaAh7uh6osRWAQd5tFqd6zNAOP8MxO7A=; b=WJsUsedy8jleRiOJ81uo/DB3p7uonhKUj9CazNlaBCBwLr5yyRIa64Pa2f6McxCsLI CeATAsD8DTgk3IxXuOwdm1hrFmKpnyAuMFIv+bNYx7rnzS6n3rWZFU4pnQqLLo2g8F7U +RnpTVUikSYM/B6sde9HwFVojDTnJjbKa9XDcBuFPWEcbu/qaaWuWcp8vhQr0NhXDu5Q Qx46kY4J0at86k3dJVMZBTgKEU+d1a31rWm/RY7sg/ZRs9RlY77RDITcM4s8nRgjtckQ Au/qVNbMT0jnpPPlqczLqpooWklpqFxhNietA5wzLPBozZBr/puvotusEx13cDJj692K 02cA== 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=0a/t6ILHNfYNaAh7uh6osRWAQd5tFqd6zNAOP8MxO7A=; b=nAKAU3ou/oHFuDzv23qYen55zi9eLX+Z2HSKfM2F2vkNlHD+jJSOBU3wSSCDSnRl38 IqTWqJOf6ic5b3E1vxbLS7H9Lqi900SG58Kf6vKXLjabDSMT+ke2izt1UVooncpRYs3Z 21hUqTV15SURvNEchdZhSxTZilo3DitJJDK8h7P0guRhWkQrsqUVF09wUX9WOVzzCErZ RZCs9h50ypWmkS/RJzHfwStlVsgsKSE8Y8BIT2a0oBbHMJgeCC8+KE6SJXBh86gCpaWj ZyekwoHH74U7dSVnL6z7d/OLnJ7aKEtlb/6L2rAupI3f+mNTVRjyHlxEmIYEEmDCx+au K4jg== X-Gm-Message-State: AElRT7G14IqPhvpK8hjKskDJgnaCXfClH7zZgLYa9hjLnlHSR0WuSRCg 3C2umj7xTbtM2Kwi3m/EQEY= X-Google-Smtp-Source: AG47ELsXJs8hf2FuFWZIe/sRmh6S3ER8JHyjO+vLIxWxgCPYiMgyV47ZDDlaQt544Hxif+vVZfNRMQ== X-Received: by 10.107.178.196 with SMTP id b187mr7228452iof.9.1521069564691; Wed, 14 Mar 2018 16:19:24 -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 g62sm2402855iod.3.2018.03.14.16.19.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Mar 2018 16:19:23 -0700 (PDT) In-Reply-To: <83a7vasl56.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Mar 2018 17:59:49 +0200") 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:144292 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > I think we should at least mention char-script-table before sending > the reader to the manual. Currently we mention the syntax table, but > keep complete silence regarding the script differences. But if we give away everything in the doc string, nobody will read the manual ;) --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Improve-word-motion-docs-Bug-30815.patch Content-Description: patch >From a37a09873b962e4fc273c690b34ed9aa43d17dd6 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'. * lisp/simple.el (backward-word): * src/syntax.c (forward-word): Mention `char-script-table' and add link to the 'Word Motion' manual section. --- doc/lispref/positions.texi | 2 +- lisp/simple.el | 12 +++++++----- src/syntax.c | 9 +++++---- 3 files changed, 13 insertions(+), 10 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/lisp/simple.el b/lisp/simple.el index b7ad6ebd79..d8abeb3000 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -7027,11 +7027,13 @@ backward-word With argument ARG, do this that many times. If ARG is omitted or nil, move point backward one word. -The word boundaries are normally determined by the buffer's syntax -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 `backward-word-strictly' instead." +The word boundaries are normally determined by the buffer's +syntax table and character script (according to +`char-script-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 `backward-word-strictly' instead. See Info +node `(elisp) Word Motion' for details." (interactive "^p") (forward-word (- (or arg 1)))) diff --git a/src/syntax.c b/src/syntax.c index 378064611c..e54325589f 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1552,10 +1552,11 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", noticed if `inhibit-field-text-motion' is non-nil. The word boundaries are normally determined by the buffer's syntax -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. */) +table and character script (according to `char-script-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. See Info node `(elisp) Word Motion' for details. */) (Lisp_Object arg) { Lisp_Object tmp; -- 2.11.0 --=-=-=--