From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriele Nicolardi Newsgroups: gmane.emacs.bugs Subject: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";" Date: Wed, 26 Jun 2024 23:26:07 +0200 Message-ID: <13320bc8-bc76-4204-94b6-e81dbf74ef35@medialab.sissa.it> References: <86v81v98u0.fsf@gnu.org> <52e6657e-3cc4-4671-8676-86e9959d9bc1@medialab.sissa.it> <3ef0543b-8380-40b5-9bd1-949e24ca3c77@medialab.sissa.it> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------7D5X77vxm1mG0l2Lpqe877jj" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 71777@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 26 23:27:21 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 1sMaAj-0007Oi-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jun 2024 23:27:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMaAW-0003QR-QU; Wed, 26 Jun 2024 17:27:08 -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 1sMaAP-0003Pa-Dm for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 17:27:05 -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 1sMaAN-0005M2-Or for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 17:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMaAQ-0001kA-7W for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 17:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gabriele Nicolardi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 21:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71777 X-GNU-PR-Package: emacs Original-Received: via spool by 71777-submit@debbugs.gnu.org id=B71777.17194371816650 (code B ref 71777); Wed, 26 Jun 2024 21:27:02 +0000 Original-Received: (at 71777) by debbugs.gnu.org; 26 Jun 2024 21:26:21 +0000 Original-Received: from localhost ([127.0.0.1]:40473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMa9l-0001jC-6c for submit@debbugs.gnu.org; Wed, 26 Jun 2024 17:26:21 -0400 Original-Received: from smtp01.cbsolt.net ([185.97.217.40]:60094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMa9j-0001iz-Li for 71777@debbugs.gnu.org; Wed, 26 Jun 2024 17:26:20 -0400 Original-Received: from [10.0.2.15] (host-79-44-242-88.retail.telecomitalia.it [79.44.242.88]) by smtp01.cbsolt.net (Postfix) with ESMTPSA id 4W8ZWP6kLyz3wcF; Wed, 26 Jun 2024 23:26:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1719437171; bh=6pnesPKYFYQkDaQEJ2/T0gE7yTzN3xIsGmh8xaWoMWY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ogoZBCBopFOaGrT0qIrjMZCQphqDtgKG5Hear/J+HfY9eqZZogGrhnfUsVJQsERib wHLTP/JHgpBKTYdLBhxkUO3rG4xY9YscMrywgR5jSM4vxmSaQe5MOdJMqbNP/iduV9 bjQDl+w8+Ypv0Xln0oRjnbXSmsZPhfjc+tODvkWk= Content-Language: en-US In-Reply-To: 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:287969 Archived-At: This is a multi-part message in MIME format. --------------7D5X77vxm1mG0l2Lpqe877jj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > I don't think there's code in Emacs which does what you want, so if you > really need to check proper pairing you're going to have to write the code. > > > Stefan FYI. NickD offers me this code https://emacs.stackexchange.com/a/81604/15606: |(defun ndk/paren-match-p () (let ((mismatch (nth 4 (show-paren--default)))) (not mismatch))) It seems working. Gabriele | --------------7D5X77vxm1mG0l2Lpqe877jj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
I don't think there's code in Emacs which does what you want, so if you
really need to check proper pairing you're going to have to write the code.


        Stefan
FYI. NickD offers me this code https://emacs.stackexchange.com/a/81604/15606:

(defun ndk/paren-match-p ()
   (let ((mismatch (nth 4 (show-paren--default))))
      (not mismatch)))

It seems working.

Gabriele
--------------7D5X77vxm1mG0l2Lpqe877jj--