From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10494: 24.0.92; Syntax table and non-ASCII character interaction Date: Sat, 13 Aug 2016 09:56:57 +0300 Message-ID: <83eg5tdume.fsf@gnu.org> References: <87wpjoxi5q.fsf@users.sourceforge.net> <83h9arfhw9.fsf@gnu.org> <87h9apy5ob.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1471071504 10126 195.159.176.226 (13 Aug 2016 06:58:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 06:58:24 +0000 (UTC) Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 08:58:20 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 1bYStg-0002Sl-Lr for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 08:58:20 +0200 Original-Received: from localhost ([::1]:56098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYStY-00016n-Id for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 02:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYStR-00016i-W5 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 02:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYStO-0008Br-Rn for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 02:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYStO-0008Bl-OK for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 02:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYStO-0006vN-EO for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2016 06:58: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.147107143626562 (code B ref 10494); Sat, 13 Aug 2016 06:58:02 +0000 Original-Received: (at 10494) by debbugs.gnu.org; 13 Aug 2016 06:57:16 +0000 Original-Received: from localhost ([127.0.0.1]:55662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYSsd-0006uM-QS for submit@debbugs.gnu.org; Sat, 13 Aug 2016 02:57:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYSsc-0006u7-Rc for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 02:57:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYSsW-000898-SQ for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 02:57:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYSsT-00088n-4O; Sat, 13 Aug 2016 02:57:05 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4403 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bYSsR-0006iL-99; Sat, 13 Aug 2016 02:57:03 -0400 In-reply-to: <87h9apy5ob.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122150 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com > Date: Fri, 12 Aug 2016 18:37:56 -0400 > > Eli Zaretskii writes: > > > Indeed. This is a feature: > > Ah, so doing > > (modify-syntax-entry ?’ "w" text-mode-syntax-table) > (aset char-script-table ?’ 'latin) > > does let word motion skip over ’ as OP wanted. Yes. But I don't recommend such a "solution", because that would most probably bite elsewhere, when we do want that character behave as a symbol. > `(elisp) Word Motion' looks like a good place for it: Right, thanks. > 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}. @xref generates a capitalized "See", so is inappropriate in the middle of a sentence. Please use "see @ref" instead. > +@code{find-word-boundary-function-table}, described below. Characters > +that belong to a different script (as defined by I'd say "belong to different scripts", otherwise the text begs the question "different from what?". > +@code{char-syntax-table}), also mark a word boundary (@pxref{Character "define a word boundary" sounds better to me. Othwrise, LGTM, thanks. Please push to emacs-25.