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: Sat, 13 Aug 2016 14:14:49 -0400 Message-ID: <87fuq8wn6u.fsf@users.sourceforge.net> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1471112121 13575 195.159.176.226 (13 Aug 2016 18:15:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 18:15:21 +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 20:15: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 1bYdSm-0003Hq-9M for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 20:15:16 +0200 Original-Received: from localhost ([::1]:58200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYdSj-00078i-Be for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 14:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYdSc-00075E-Sn for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 14:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYdSY-0001tG-JY for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 14:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYdSY-0001tC-GG for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 14:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYdSY-0001TV-CQ for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 14:15: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: Sat, 13 Aug 2016 18:15: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.14711120905636 (code B ref 10494); Sat, 13 Aug 2016 18:15:02 +0000 Original-Received: (at 10494) by debbugs.gnu.org; 13 Aug 2016 18:14:50 +0000 Original-Received: from localhost ([127.0.0.1]:56570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYdSL-0001Sl-Pj for submit@debbugs.gnu.org; Sat, 13 Aug 2016 14:14:49 -0400 Original-Received: from mail-qk0-f170.google.com ([209.85.220.170]:35291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYdSI-0001SR-HO; Sat, 13 Aug 2016 14:14:48 -0400 Original-Received: by mail-qk0-f170.google.com with SMTP id v123so13928243qkh.2; Sat, 13 Aug 2016 11:14:46 -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:content-transfer-encoding; bh=BQYUtkdS4yKcYHLe6khNZvIO632u831zysBWjFbKSKc=; b=avYSeZ3H23tbxqQJPW/Zb7RBzc6RmQpKzuXb3Y2jrOFqMvkpDTW3EBNMN38KVKWJ95 3OewN04EcNKKJ6s6jKhyGvWqMWVpnyWfhlFCDMhvSr4ltKF4HxqDEMQwDrWdHs+0QNRQ pJfVB8kSsvhJvPBghGCmFDE4OqrmPJGHR5S9W5fvWAew64DL3tjXsrJtH/Gr+/MnqV7Z K/OrnotMVesWSwGJNjXv7aFD7bDVAm2OeTenFGfy5Im936cK3ZmSeqKXFfCtsqgN4cHs uEEphYCsHArMXkbAJzOFBruFNT+IdH6jEDxrQZWly+bdpCbHVXXNCwMHFNZcpgUxtaCw ZCcA== 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 :content-transfer-encoding; bh=BQYUtkdS4yKcYHLe6khNZvIO632u831zysBWjFbKSKc=; b=WfkNbnh50CPLaapJ3O6/YzqJmUEgE8w67CGSQ4fsg/znEFWNqfJaACuZ9WjUROcUBj xBbNKl7yWf3OlUxGWZPJM3L0T8nRVOXsrlWySksmgJAfhKWMV84jm4ENZSICXbMI07h3 hkOJZT8AHtE6p7UHWrZThLdqUmupF91MAQIjIWvr6ECKl3DH+QcYLwR8btHHD1D8U47H znNG4keFrqa0LrjtOGDUVB8vGkCT0cXrqn94Uza+R/v/XB2HnLt4QG6Gx6AVKf/zXczY Sm2a5Y9YU3wkP1mQShmHndujqwC9vvfr4ngXLGiQ6u/SLHLrnfuVj09FxKMJsc8ceK39 zYcQ== X-Gm-Message-State: AEkooutYa3t2iVTSO0G0oODsEyk8NOSMCRqGz1i5mdfwfDmu56Xj4WO2JDKAjCQBW6cLHg== X-Received: by 10.55.88.68 with SMTP id m65mr25129711qkb.89.1471112081026; Sat, 13 Aug 2016 11:14:41 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id m62sm6503686qke.13.2016.08.13.11.14.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Aug 2016 11:14:40 -0700 (PDT) In-Reply-To: <83shu8d9kb.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Aug 2016 17:31:48 +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:122179 Archived-At: Eli Zaretskii writes: >> From: npostavs@users.sourceforge.net >> Cc: 10494@debbugs.gnu.org, aaronecay@gmail.com >> Date: Sat, 13 Aug 2016 10:19:34 -0400 >>=20 >> >> (modify-syntax-entry ?=E2=80=99 "w" text-mode-syntax-table) >> >> (defconst my-text-char-script-table >> >> (let ((table (copy-sequence char-script-table))) >> >> (aset table ?=E2=80=99 'latin) >> >> table)) >> >>=20 >> >> (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? >>=20 >> Did you mean \> (word boundary) or \s. (punctation)? \s_ doesn't match >> =E2=80=99 regardless because its syntax class is punctuation, not symbol. > > Sorry, I guess I was thinking of \cl. It will not match =E2=80=99, altho= ugh > it might be expected. Which could be fixed by (modify-category-entry ?=E2=80=99 ?l). I would suggest this additional docstring patch, because I was confused at first as to what CATEGORY was supposed to be (I looked around a bit for how to create some kind of "category object"): diff --git i/src/category.c w/src/category.c index 4397f66..31ac2ec 100644 --- i/src/category.c +++ w/src/category.c @@ -336,6 +336,7 @@ DEFUN ("modify-category-entry", Fmodify_category_entry, the current buffer's category table. CHARACTER can be either a single character or a cons representing the lower and upper ends of an inclusive character range to modify. +CATEGORY must be a category name (a character between ` ' and `~'). If optional fourth argument RESET is non-nil, then delete CATEGORY from the category set instead of adding it. */) (Lisp_Object character, Lisp_Object category, Lisp_Object table, Lisp_Ob= ject reset) > > Anyway, my point is that these char-tables should really be treated as > read-only by Lisp applications. Right, but I think this bug is about the user modifying stuff.