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:55:14 +0300 Message-ID: <83r39sd8h9.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> <83shu8d9kb.fsf@gnu.org> 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 1471100186 20916 195.159.176.226 (13 Aug 2016 14:56:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 14:56:26 +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:56:21 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 1bYaMB-00052w-GH for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 16:56:15 +0200 Original-Received: from localhost ([::1]:57539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYaMB-0006kN-Jz for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 10:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYaM2-0006kI-N4 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYaLy-0000in-BQ for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYaLy-0000ij-81 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYaLy-0005Di-0T for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 10:56: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:56:01 +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.147110013820037 (code B ref 10494); Sat, 13 Aug 2016 14:56:01 +0000 Original-Received: (at 10494) by debbugs.gnu.org; 13 Aug 2016 14:55:38 +0000 Original-Received: from localhost ([127.0.0.1]:56503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYaLZ-0005D7-RL for submit@debbugs.gnu.org; Sat, 13 Aug 2016 10:55:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYaLY-0005Cv-DJ for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 10:55:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYaLS-0000fs-5A for 10494@debbugs.gnu.org; Sat, 13 Aug 2016 10:55:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYaLN-0000fN-4j; Sat, 13 Aug 2016 10:55:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1678 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bYaLK-0006Jl-S4; Sat, 13 Aug 2016 10:55:23 -0400 In-reply-to: <83shu8d9kb.fsf@gnu.org> (message from Eli Zaretskii on Sat, 13 Aug 2016 17:31:48 +0300) 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:122173 Archived-At: > Date: Sat, 13 Aug 2016 17:31:48 +0300 > From: Eli Zaretskii > Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com > > > 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. Btw, some believe that using ’ as an apostrophe is wrong. They say U+02BC should be used instead; see, for example, this discussion: http://www.unicode.org/mail-arch/unicode-ml/y2015-m06/0047.html That character already is word-constituent.