From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#10494: 24.0.92; Syntax table and non-ASCII character interaction Date: Fri, 12 Aug 2016 18:37:56 -0400 Message-ID: <87h9apy5ob.fsf@users.sourceforge.net> References: <87wpjoxi5q.fsf@users.sourceforge.net> <83h9arfhw9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1471041512 25348 195.159.176.226 (12 Aug 2016 22:38:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2016 22:38:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 00:38:24 2016 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 1bYL5r-0006GS-Lt for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 00:38:23 +0200 Original-Received: from localhost ([::1]:55124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYL5o-0003p1-M7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Aug 2016 18:38:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYL5Z-0003fa-I2 for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2016 18:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYL5W-0006Ji-Tn for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2016 18:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYL5W-0006Je-QG for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2016 18:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYL5W-0006ly-MA for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2016 18:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Aug 2016 22:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10494 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 10494-submit@debbugs.gnu.org id=B10494.147104147726010 (code B ref 10494); Fri, 12 Aug 2016 22:38:02 +0000 Original-Received: (at 10494) by debbugs.gnu.org; 12 Aug 2016 22:37:57 +0000 Original-Received: from localhost ([127.0.0.1]:55526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYL5R-0006lR-15 for submit@debbugs.gnu.org; Fri, 12 Aug 2016 18:37:57 -0400 Original-Received: from mail-it0-f51.google.com ([209.85.214.51]:37404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYL5P-0006l3-Cg for 10494@debbugs.gnu.org; Fri, 12 Aug 2016 18:37:55 -0400 Original-Received: by mail-it0-f51.google.com with SMTP id f6so26418514ith.0 for <10494@debbugs.gnu.org>; Fri, 12 Aug 2016 15:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lqfWCne9InzAxePbYEYdhqbYlXVCSyCDoJHf6uGDPdQ=; b=ODBbW+eZImv59Fs7RUMmBSXDRp1ZpXbMZV+W+OWgO2z2iMdMpsjJvAx6cm1zsB6uxS vIY1gDFG/cLj6VlqEHPJMvE8vKTVxcKUxg+lfEiBtSi1Hzl6t8hDdOaGc2e5x7Hadq4t D0uXTQycoebs6FFrpZ5ZwAy3hWRfFkJ3sNiLEh/xKk7kKnb+b7PG3oxyxl3Vn+gb8Kpc Iln4fXLvCTjPXf/YCxd0yf2FkcbtjNuN7ci/nJiCkWiODTKz1n0X3EHb1Bzjwymd6p/V zTcWbPxPI/kTPDaMRKTwTqTiGxnZ+Ympzek6Ct3D/CdnfWOBlGS89UsA6vToDwBkGG+h qijg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=lqfWCne9InzAxePbYEYdhqbYlXVCSyCDoJHf6uGDPdQ=; b=UwECgL4yAHKfXx/U8AdmJAOgQ8JbbdmGcJ8OaHu2eD5z+K2qUzc1qDFLKVUyBtCLJd v32q0VBL7YZrbpBf1NVSRBUY08p9rtXA4CL3U9lsGZecVxwR9u0eC6V0L4Yuy2QUrrXS /LAd/yYVGf9r7me4c9nbGVEhMWH1F3SqIDmxeIZHa2R5967Oo3KArsTqPPl1iHCR53jC baR+8mlzWcxnrqRxwd9l7rqufg95j6Tww/1GRPW4SZiBG+NmQUCuEIF2xZdGyyky+cFN 1cxD8Nv95HhhimGr+KOHFVT9cAr/mq5mOMK5XuD3jlZuXQCqiCpyB7l7g5qhMwmlv8wq D1+Q== X-Gm-Message-State: AEkooutPlaU3IAZG6hTCie/AdsYu4oGbTrhLu0nWTJsbxk5cyXQ1/ZppUqy9kYcAfhavtg== X-Received: by 10.36.19.75 with SMTP id 72mr1432379itz.83.1471041469862; Fri, 12 Aug 2016 15:37:49 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id o15sm2362334ith.2.2016.08.12.15.37.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Aug 2016 15:37:48 -0700 (PDT) In-Reply-To: <83h9arfhw9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Aug 2016 18:24:22 +0300") 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:122140 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: > Indeed. This is a feature: Ah, so doing (modify-syntax-entry ?=E2=80=99 "w" text-mode-syntax-table) (aset char-script-table ?=E2=80=99 'latin) does let word motion skip over =E2=80=99 as OP wanted. > > Maybe we should document this somewhere, like the ELisp manual. `(elisp) Word Motion' looks like a good place for it: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=v1-0001-Document-char-script-table-s-effect-on-word-motio.patch Content-Description: patch >From 03dbee2bf6bae29b21ea36ff3d73bce773458f78 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Fri, 12 Aug 2016 18:33:17 -0400 Subject: [PATCH v1] Document char-script-table's effect on word motion * doc/lispref/positions.texi (Word Motion): Talk about char-script-table (Bug #10494). --- doc/lispref/positions.texi | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 1d748b8..3359ced 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi @@ -192,8 +192,8 @@ Word Motion @subsection Motion by Words The functions for parsing words described below use the syntax table -to decide whether a given character is part of a word. @xref{Syntax -Tables}. +and @code{char-script-table} to decide whether a given character is +part of a word. @xref{Syntax Tables} and @xref{Character Properties}. @deffn Command forward-word &optional count This function moves point forward @var{count} words (or backward if @@ -207,11 +207,13 @@ Word Motion that begin and end words, known as @dfn{word boundaries}, are defined by the current buffer's syntax table (@pxref{Syntax Class Table}), but modes can override that by setting up a suitable -@code{find-word-boundary-function-table}, described below. 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 a field boundary is the end -of the prompt in the minibuffer. +@code{find-word-boundary-function-table}, described below. Characters +that belong to a different script (as defined by +@code{char-syntax-table}), also mark 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 a field boundary +is the end of the prompt in the minibuffer. If it is possible to move @var{count} words, without being stopped prematurely by the buffer boundary or a field boundary, the value is -- 2.9.2 --=-=-=--