From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73307: Fix ctype(3) usage Date: Wed, 18 Sep 2024 11:18:21 -0400 Message-ID: References: <86r09ibiq3.fsf@gnu.org> <89deb908-92a6-489f-bab9-116556ce8ce4@cs.ucla.edu> <86r09h9odm.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, 73307@debbugs.gnu.org, Paul Eggert , wiz@gatalith.at To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 17:19:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqwSZ-0003Bh-5p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 17:19:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqwS8-0002EQ-3K; Wed, 18 Sep 2024 11:18:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqwS6-0002EH-Gx for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 11:18:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqwS6-000446-7w for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 11:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=AToXpOAdSbLpsin/Uvoap2Ajo3Iiwb/pp+n+47x5g7M=; b=qPebBxct8+LOb7EPdcRxThzGerLWg3GbRpsQ91sxnHkkCrDBQCdeWo0UV86osFtOoG61KtCDrUC9zELgY/WhQa2S4e855LN7LUoQZTPwbeazXgUXEJJE4fzQ0xngfJU4GRabCSM0RhyMIpwxk45R6fTojpYQCfYOnQme11JEqXOldfh3wpU0edxO0OGpj6gqp1W03WMFRSPyMr43EtEDRRtrorvTmbBQd4lvfEtZycUpHmsjTCzZglfTCgfLY3W+sm2M5/1okUHgims1WoyFyLRbHALUZiWmd0UFr6Lir/lbCYgeLuyvCNXZcCMQhzJ7Vn2uij6DOygqKbTxdp7efQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqwSL-0002PR-Pz for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 11:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73307-submit@debbugs.gnu.org id=B73307.17266727279225 (code B ref 73307); Wed, 18 Sep 2024 15:19:01 +0000 Original-Received: (at 73307) by debbugs.gnu.org; 18 Sep 2024 15:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:59114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqwS7-0002Oi-Im for submit@debbugs.gnu.org; Wed, 18 Sep 2024 11:18:47 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqwS5-0002OU-90 for 73307@debbugs.gnu.org; Wed, 18 Sep 2024 11:18:46 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3B4E2100045; Wed, 18 Sep 2024 11:18:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1726672702; bh=Y2B4efn1nQcik5v/XjYv+se58wkacgIG2ILF3syHh7c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=i6VDVU/r9DBZbnWgIUIo+Sxy4juc+bFUemgUX0BMAaQ7a908kvU7LZvs3b26jCBpi tGZOdZhH50w1C6OoxsFLnqfIUhTGJR+EzxgbTLPoghJBBtjffs6IhJ5q6iOjRtvwDN tHvC1B0S/ka95fs9aisC+4ROGYxJuETh0JWiborWNRaFkRxgEye3SpW6fkyAoTE0Z4 WDnHteLo6p8djOS6lhbknsKwCNWEj4Xcu9cmTdOUGXmdqDiWjQcGhYhimDxwEyd/xz MT7hXUeOzFa9BhThxP/f4cx6QAx3U+gZxV2+BJQWYJ08FzS6NSFLcxI/jRHTdQmMje Vk+zQWqf5SJ5g== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 30F65100035; Wed, 18 Sep 2024 11:18:22 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1DCB41202E2; Wed, 18 Sep 2024 11:18:22 -0400 (EDT) In-Reply-To: <86r09h9odm.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Sep 2024 14:45:25 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292007 Archived-At: > You are testing characters for whitespace syntax, which is AFAIU > subject to buffer-local syntax tables. Thus, a strange enough setting > of buffer syntax could make this code return unexpected results. > > Stefan, am I right? Yup. > Why can't we use something closer to the original code, which doesn't > depend on buffer-local customizations? We could use the global/default syntax table? [ Or rely on some of the unicode tables? ] Stefan