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 17:31:48 +0300 Message-ID: <83shu8d9kb.fsf@gnu.org> References: <87wpjoxi5q.fsf@users.sourceforge.net> <83h9arfhw9.fsf@gnu.org> <87h9apy5ob.fsf@users.sourceforge.net> <83eg5tdume.fsf@gnu.org> <87lh00x0r1.fsf@users.sourceforge.net> <83vaz4dca8.fsf@gnu.org> <87inv4wy2x.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 1471098801 21323 195.159.176.226 (13 Aug 2016 14:33:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 14:33:21 +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 16:33:17 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 1bYZzw-0005Ow-IQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 16:33:16 +0200 Original-Received: from localhost ([::1]:57495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYZzt-0003MS-LV for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 10:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYZzm-0003Iq-RY for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYZzi-0005Hm-LG for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYZzi-0005Hi-Hq for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYZzi-0004hs-9q for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:33: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 14:33: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.147109872818027 (code B ref 10494); Sat, 13 Aug 2016 14:33:02 +0000 Original-Received: (at 10494) by debbugs.gnu.org; 13 Aug 2016 14:32:08 +0000 Original-Received: from localhost ([127.0.0.1]:56498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYZyp-0004gg-Pu for submit@debbugs.gnu.org; Sat, 13 Aug 2016 10:32:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYZyo-0004gD-3l for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 10:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYZyh-0005De-VF for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 10:32:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYZye-0005Co-3j; Sat, 13 Aug 2016 10:31:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1614 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bYZyc-0007Yy-1a; Sat, 13 Aug 2016 10:31:54 -0400 In-reply-to: <87inv4wy2x.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:122172 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com > Date: Sat, 13 Aug 2016 10:19:34 -0400 > > >> (modify-syntax-entry ?’ "w" text-mode-syntax-table) > >> (defconst my-text-char-script-table > >> (let ((table (copy-sequence char-script-table))) > >> (aset table ?’ 'latin) > >> table)) > >> > >> (defun my-text-mode-hook () > >> (set (make-local-variable 'char-script-table) > >> my-text-char-script-table)) > >> (add-hook 'text-mode-hook 'my-text-mode-hook) > > > > Are you sure nothing in text-mode will ever want to use \s_ in any > > regexp? > > Did you mean \> (word boundary) or \s. (punctation)? \s_ doesn't match > ’ regardless because its syntax class is punctuation, not symbol. Sorry, I guess I was thinking of \cl. It will not match ’, although it might be expected. Anyway, my point is that these char-tables should really be treated as read-only by Lisp applications. > Pushed as 8342e748 Thanks.