From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jason Vas Dias Newsgroups: gmane.emacs.devel Subject: Re: lisp-mode: how to disable parentheses matching on non-ASCII '[({]' '[})]' UTF-8 parenthesis chars ? Date: Tue, 8 Aug 2023 18:23:22 +0100 Message-ID: References: <87ttt93n84.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eric S Fraga Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 08 19:24:21 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qTQRQ-00053r-Mm for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Aug 2023 19:24:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTQQc-0000Si-PN; Tue, 08 Aug 2023 13:23:30 -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 1qTQQY-0000SC-Dv for emacs-devel@gnu.org; Tue, 08 Aug 2023 13:23:26 -0400 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTQQW-00072o-VQ for emacs-devel@gnu.org; Tue, 08 Aug 2023 13:23:26 -0400 Original-Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe5eb84d8bso17036375e9.2 for ; Tue, 08 Aug 2023 10:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691515403; x=1692120203; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oEgbCVxLlIGyu/0oH4yDy2iBcrdKbJ+59/buqbefmd0=; b=MS6DsLhCof4AplOrtNyMD4pCGqOUX7bqv1XzCVl9lanK34xjlHi8BJzuYZ2rvUAMgb f3IxyWHPhLEBhv27zSgXcEr8VVMvAvcvnqqr48ZL3Dbga+11MKef1toBwf3zOMixn1Ak fZW2baVL1G99zkVdw9RWD5aowMQSnL7yluopDKnwGwK8c1pkx7GYmvEhjUCyIj+h1CCi Xf/q5Iv2oBdi49iu/U4d7rzGk4pNODy8e3rRnmP62VA+3dP80cDxytL+yvGsdF1AzIOA sCLgzLhLSo2Xa7DCUV4IhhCy420jYccnok4fML7ZQLiI7pTd7qCR/lmPqBQgzksljLc9 zQVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691515403; x=1692120203; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oEgbCVxLlIGyu/0oH4yDy2iBcrdKbJ+59/buqbefmd0=; b=hW6sLsu19ame43w91iu1Z2YfjvPlp5hm5h5Ym0qdwG6u+0aqZoZeBzbl5NXFHLD/a3 vG/KOrmr6ZRxbrWath9cApf1cJss0F0gEfzKgXalqrvJyE1QstXxh/GUriIrhK3EmGNJ Z18gAOcTW2M7ZYul4yVFrBbcK8Zga6UViYJLt4KZOjMRTD1jj0RlsMMnuHwnczEIUKdC g3AlmVWlgMJ9w6DYIam6txaNZiqn5LCXcmwZMeMYse3Km1VPJbCfytrIqts/o8RnbeJQ RQjxJeRyQKx9pcqY7woOg2Fmh8NLhCvPw69i48id+u/ubaPGvAf5CM7cLxCstL/lCIup Dvug== X-Gm-Message-State: AOJu0Yy9/jeGm80PbmPSALRN0X4sjFB0N+me0DOI5zn9s/NDMQyXb849 EPf5s8ku4H73xUlMBrY/oIACxAm2YRJlTM7WRKE= X-Google-Smtp-Source: AGHT+IHpjhBX5XkMpbEBz8nKmBqCv+6aShpP5yZQC+zuYWKSHvyz2qey66qgz7TwsM8c0GDQlxHnF0lKBGjj/MeA8lQ= X-Received: by 2002:a05:6000:86:b0:317:ed01:dc48 with SMTP id m6-20020a056000008600b00317ed01dc48mr50128wrx.9.1691515402757; Tue, 08 Aug 2023 10:23:22 -0700 (PDT) Original-Received: by 2002:adf:f7c7:0:b0:317:64ca:29fb with HTTP; Tue, 8 Aug 2023 10:23:22 -0700 (PDT) In-Reply-To: <87ttt93n84.fsf@ucl.ac.uk> Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=jason.vas.dias@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308447 Archived-At: That worked, thank you! (mapcar (lambda (c) (eval (list 'modify-syntax-entry c ".")) ) '( ?\=E2=9D=A8 ?\=E2=9D=A9 ?\=E2=9D=AA ?\=E2=9D=AB ?\=E2=9F=AE ?\=E2=9F=AF= ?\=E2=A6=85 ?\=E2=A6=86 ?\=E2=B8=A8 ?\=E2=B8=A9 ?\=EF=B4=BE ?\=EF=B4=BF ?\= =E3=80=8A ?\=E3=80=8B ?\=EF=B9=99 ?\=EF=B9=9A ?\=EF=BC=88 ?\=EF=BC=89 ?\=EF=BD=9F ?\=EF=BD=A0) ) Strange, I am not able to get that to work without the 'eval' . On 08/08/2023, Eric S Fraga wrote: > On Tuesday, 8 Aug 2023 at 08:37, Jason Vas Dias wrote: >> Please could some emacs guru let me know how the 'lisp-mode' based >> source editing modes can be made to ignore / treat as normal >> characters such not-ascii-'(' and not-ascii-')' characters and to >> NOT attempt to balance them or to consider them parenthesis syntax >> ? No LISP parser I am using considers them to be syntax. > > You could try > > (modify-syntax-entry ?< ".") > > where you replace < with each individual character you do not wish to be > treated as a paren. > > -- > Eric S Fraga via gnus (Emacs 30.0.50 2023-08-07) on Debian 12.1 > > >