From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Rainbow-delimiters highlighting { and } for tex and latex Date: Wed, 07 Sep 2022 12:43:19 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: wilnerthomas@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 18:47:30 2022 Return-path: Envelope-to: geh-help-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 1oVyD4-0009pm-Jk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 18:47:30 +0200 Original-Received: from localhost ([::1]:35040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVyD3-0005Ng-Cr for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 12:47:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVy9L-0003hV-EU for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 12:43:39 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVy9I-0003wa-51 for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 12:43:37 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6159080343; Wed, 7 Sep 2022 12:43:33 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0A01F80636; Wed, 7 Sep 2022 12:43:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662569012; bh=ydVvEXynnl+XdyrqM9zM4K64+4UOAGs2oWXHea5BblE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OEQYBQHmO/lf9ATQPMRa/dm6Cm6b898tkWgVCKOZ2ST/4JLKrKP6vlQJgShtgCWUd 0bFtG6o8CO097L6I+JDcc3huysvsQHjUG/sxm990kJwd8wZ536/XVLdAyxIoXT9GXO 6m+489qVLJ6dKBsMAWSYyzGhBnfkGJybDp0VkdKwnNvGcSm/eQZq6i9Ge7kd/uYNWG Anmwdcc995dG/I8ZJclBa6HUzvTkaOpoQxaRPvyVNkJdov+LHgfBQneRQIvtEi6Z4w W3dxwGiVo+Rqf8uZDSr+tmCSO3n7rxZEbRKrL2tiaSjJ+lR89xfRDOr9WDhsPflIZv o3b4SnQVNZz7A== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E87F212076B; Wed, 7 Sep 2022 12:43:31 -0400 (EDT) In-Reply-To: (wilnerthomas@tutanota.com's message of "Wed, 7 Sep 2022 17:03:50 +0200 (CEST)") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139309 Archived-At: >> I don't know. For me it just works (I don't use rainbow-delimiters, >> I simply turned it on to double-check my intuition before replying to >> you, and it worked for (..), {..} and [..] in a `latex-mode` buffer). > What version are you using?=A0 Emacs-29.0.50, but I don't think this has changed for a long time. > (while (> end (progn (skip-syntax-forward "^()" end) Yes, that's the code. > I can see that "( )" and "[ ]" get highlighted, but not "{ }". The above code looks for chars with the "parenthesis syntax" according to the major mode's syntax-table. I.e. the same info used by `show-paren`. I'm using Emacs's built-in `latex-mode`. Maybe you're using a different major mode which doesn't give paren syntax to the braces? Check the "syntax:" info give by `C-u C-x =3D` when your cursor in on a bra= ce. Stefan