GNU bug report logs - #71777
29.4; sexp-at-point in latex-mode when sexp contains ";"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gabriele Nicolardi <gabriele@HIDDEN>; dated Tue, 25 Jun 2024 20:41:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 71777 <at> debbugs.gnu.org:


Received: (at 71777) by debbugs.gnu.org; 26 Jun 2024 13:47:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 09:47:11 2024
Received: from localhost ([127.0.0.1]:38833 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMSzO-0000jk-Sc
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:47:11 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37783)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1sMSzN-0000jX-AQ
 for 71777 <at> debbugs.gnu.org; Wed, 26 Jun 2024 09:47:09 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6B06910006B;
 Wed, 26 Jun 2024 09:47:01 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1719409620;
 bh=rtS7y2OHTrhlA2opha1zV3ZR3ZLfjCA0C1J84lYUZ7o=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=Hx34R2inQQNl8UW0FsqvRiE5N8YHecO5IkgURQQRFrq3rtPRKnTQ5QVIIrmSNW14f
 HFbdGUXLgsi8K/SNxy4App8o95r7HED+3CxSDzr4rOdVd1UQXw706RgF4UvO5YVFBR
 qAmi8xTJRY04m+C9bcQiL7msr9SCN2ZZGN0lj37Lv/0HJYzge4wWmCGPr8zt6kl0E/
 uf1P0eHlUYrTH4Ylrh0OpKNQ4+rxZg+VCNPHts5Jin6ntB1XiNL1Jssv+jFzUwzKSd
 t+EFVGcqTRu3ucNLxm4Kc4Rz2sBqgK7Jpp2Dfmc7IxpWBuQNUdbQhDjQ6qEqknjRKG
 mZtA6yDeth6JA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 11818100035;
 Wed, 26 Jun 2024 09:47:00 -0400 (EDT)
Received: from pastel (unknown [24.140.236.196])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DAE15120399;
 Wed, 26 Jun 2024 09:46:59 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains
 ";"
In-Reply-To: <86v81v98u0.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 26 Jun
 2024 15:39:35 +0300")
Message-ID: <jwvo77nzv42.fsf-monnier+emacs@HIDDEN>
References: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
 <86v81v98u0.fsf@HIDDEN>
Date: Wed, 26 Jun 2024 09:46:59 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.140 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71777
Cc: Gabriele Nicolardi <gabriele@HIDDEN>, 71777 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> $K(U_1, V_1, x_1; t_2, x_2)$
>> 
>> If the pointer is located on the opened "(" and I run "forward-sexp" it 
>> works and the
>> pointer goes after the closed ")".
>> 
>> But if, again, the pointer is located on the opened "(" and I evaluate
>> "(sexp-at-point)" it returns nil.
>> 
>> If I remove the ";" symbol from the expression it works and returns the 
>> sexp-at-point:
>> 
>> $K(U_1, V_1, x_1 t_2, x_2)$
>> 
>> Is it a bug?
>
> I don't think it's a bug.  forward-sexp moves across balanced
> expressions, so it is not specific to Lisp.  By contrast,
> sexp-at-point is specific to Lisp and Lisp-like syntax, and so it uses
> the buffer's syntax.  Which is why ';' affects the result.
>
> Adding Stefan in case he has comments for this.

AFAICT, `sexp-at-point` correctly finds the parenthesized thingy, but it
is asked to return the Lisp object it represents rather than a string,
so it `read`s, which inevitably obeys the ELisp syntax.

IOW, I suspect you want (thing-at-point 'sexp) rather than
(sexp-at-point).


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71777; Package emacs. Full text available.

Message received at 71777 <at> debbugs.gnu.org:


Received: (at 71777) by debbugs.gnu.org; 26 Jun 2024 12:39:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 08:39:52 2024
Received: from localhost ([127.0.0.1]:38744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMRwF-0007L3-UV
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2024 08:39:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37180)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sMRwD-0007Ko-7u
 for 71777 <at> debbugs.gnu.org; Wed, 26 Jun 2024 08:39:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sMRw3-0008Ez-Ow; Wed, 26 Jun 2024 08:39:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=yRPfesUmkITkRfwemHNvNRtMD3GmMYnV/tVsjkf/HtA=; b=NuBA4NVJ69uK
 q2/QnilJr18R850WTQL7gNmzPqrMbupvc9BKQvDbkh8KwtgaB/m31Ef9vw/J91lsPlxQA3Lxwt9/E
 8quQxDRazvlbhb8n8CkNwGMoA1Nx6yQs7bz7/kPWS3HqYmHd7i1GfTM0RoCbqvDH4PJtzMhC1WP6V
 56r3UTc27xkWFeWEeq81QlzTgurfuJwOVO15KZfzPRUn+eTbkmVUzxJUs/0MQvKUWPQfI8zAxlmGL
 8OH+gyVi8XDNY5+f7snLR4zX76HJqq5rytNFEN4PLJ4yqL3T36n1seXel8z1DxgvWw4NSavd6g/qv
 8Rbb37HC7pa6O/Apaz+Vfg==;
Date: Wed, 26 Jun 2024 15:39:35 +0300
Message-Id: <86v81v98u0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gabriele Nicolardi <gabriele@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN> (message
 from Gabriele Nicolardi on Tue, 25 Jun 2024 19:53:59 +0200)
Subject: Re: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";
 "
References: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71777
Cc: 71777 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 25 Jun 2024 19:53:59 +0200
> From: Gabriele Nicolardi <gabriele@HIDDEN>
> 
> I have this string expression in latex-mode:
> 
> $K(U_1, V_1, x_1; t_2, x_2)$
> 
> If the pointer is located on the opened "(" and I run "forward-sexp" it 
> works and the
> pointer goes after the closed ")".
> 
> But if, again, the pointer is located on the opened "(" and I evaluate
> "(sexp-at-point)" it returns nil.
> 
> If I remove the ";" symbol from the expression it works and returns the 
> sexp-at-point:
> 
> $K(U_1, V_1, x_1 t_2, x_2)$
> 
> Is it a bug?

I don't think it's a bug.  forward-sexp moves across balanced
expressions, so it is not specific to Lisp.  By contrast,
sexp-at-point is specific to Lisp and Lisp-like syntax, and so it uses
the buffer's syntax.  Which is why ';' affects the result.

Adding Stefan in case he has comments for this.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71777; Package emacs. Full text available.

Message received at 71777 <at> debbugs.gnu.org:


Received: (at 71777) by debbugs.gnu.org; 25 Jun 2024 22:51:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 18:51:55 2024
Received: from localhost ([127.0.0.1]:37738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMF0r-0000YF-5K
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 18:51:55 -0400
Received: from smtp01.cbsolt.net ([185.97.217.40]:51992)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriele@HIDDEN>) id 1sMF0X-0000Xe-A0
 for 71777 <at> debbugs.gnu.org; Tue, 25 Jun 2024 18:51:42 -0400
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 4W80Rt5CqCz3wcR;
 Wed, 26 Jun 2024 00:51:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net;
 s=201504-di4k2w; t=1719355868;
 bh=Oz7Z+d7udRX3RLYie70/lZ6roH9S72f6KwZ/THxkQs4=;
 h=Date:Subject:To:Cc:References:From:In-Reply-To:From;
 b=b7d6+iz8EdZzXZIN1xq5CoZTHuB+0HZpe9FMOOJJ4HsCUoqrijYD2TIlbXjt3gr5d
 dsiOeo4BnNCW1G9Ab03gZXIvVjytRvkHIqbb4el8/GXCCWMqrNHjeaudTcUcL9rYiF
 fgJcx79uxz5S0/owObk9939Fw5Z0CBCFrftRMd5g=
Content-Type: multipart/alternative;
 boundary="------------WOljIzw4G00of0yRV0JcNVUz"
Message-ID: <37a79184-c35f-4180-b3dc-e567272baee6@HIDDEN>
Date: Wed, 26 Jun 2024 00:51:05 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains
 ";"
To: Jeremy Bryant <jb@HIDDEN>
References: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
 <87tthg1yh8.fsf@HIDDEN>
From: Gabriele Nicolardi <gabriele@HIDDEN>
Content-Language: en-US
In-Reply-To: <87tthg1yh8.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71777
Cc: 71777 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

This is a multi-part message in MIME format.
--------------WOljIzw4G00of0yRV0JcNVUz
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Il 25/06/24 23:52, Jeremy Bryant ha scritto:
>> Important settings:
>> value of $LANG: it_IT.UTF-8
>> locale-coding-system: utf-8-unix
>>
>> Major mode: LaTeX
> This suggests you are using the major mode from AUCTeX, rather than the
> built-in latex-mode?  Is this right?
No, I'm using the built-in latex-mode. AUCTeX is not installed on my 
machine.
--------------WOljIzw4G00of0yRV0JcNVUz
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Il 25/06/24 23:52, Jeremy Bryant ha scritto:<br>
    <blockquote type="cite" cite="mid:87tthg1yh8.fsf@HIDDEN">
      <pre><blockquote type="cite" style="color: #007cff;"><pre
      class="moz-quote-pre" wrap="">Important settings:
value of $LANG: it_IT.UTF-8
locale-coding-system: utf-8-unix

Major mode: LaTeX
</pre></blockquote><pre class="moz-quote-pre" wrap="">This suggests you are using the major mode from AUCTeX, rather than the
built-in latex-mode?  Is this right?
</pre></pre>
    </blockquote>
    No, I'm using the built-in latex-mode. AUCTeX is not installed on my
    machine.<br>
  </body>
</html>

--------------WOljIzw4G00of0yRV0JcNVUz--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71777; Package emacs. Full text available.

Message received at 71777 <at> debbugs.gnu.org:


Received: (at 71777) by debbugs.gnu.org; 25 Jun 2024 21:54:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 17:54:17 2024
Received: from localhost ([127.0.0.1]:37733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sME78-0007iL-8F
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 17:54:17 -0400
Received: from out-174.mta0.migadu.com ([91.218.175.174]:30364)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jb@HIDDEN>) id 1sME6q-0007hP-0b
 for 71777 <at> debbugs.gnu.org; Tue, 25 Jun 2024 17:54:08 -0400
X-Envelope-To: 71777 <at> debbugs.gnu.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net;
 s=key1; t=1719352373;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=xcZTcO3O/+Eaja9b1JX+nfQ7E5FFSZc42mLN9QnoXG8=;
 b=QXnBYzKoi2/6oJEUhOmZbmVodO8V0Y+TUwxTSexVw8CZBvIfOlHgZF4OT3ByEu3b8X3KwI
 mvur5HXhjsai/WP2E+GEp7rWbNnkC3h/cubsKd8h6DdnqE6JWZe2xf7afCyNIcRQok6ZNc
 9ksfe09FzInd1kmWCaJIgpls7S/cyy30+tBVjDsL+7QYXz1I7y1pMij+A1+loC8T2Y+agN
 MigntKoK5ceQvLEghrA2S84jVvCFYfJlIM2GOs7HFkYutsSuE9m1T9H3iA6FOzWEX9rvpy
 LbikyuQNazdFvFuCVNgsVF++uITpdwJaqYx8+Aon48CjSvW23++Wj0kspWMPnQ==
X-Envelope-To: gabriele@HIDDEN
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and
 include these headers.
From: Jeremy Bryant <jb@HIDDEN>
To: Gabriele Nicolardi <gabriele@HIDDEN>
Subject: Re: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains
 ";"
In-Reply-To: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
 (Gabriele Nicolardi's message of "Tue, 25 Jun 2024 19:53:59 +0200")
References: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
Date: Tue, 25 Jun 2024 22:52:51 +0100
Message-ID: <87tthg1yh8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Migadu-Flow: FLOW_OUT
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71777
Cc: 71777 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gabriele Nicolardi <gabriele@HIDDEN> writes:

> Hi,
>
> I have this string expression in latex-mode:
>
> $K(U_1, V_1, x_1; t_2, x_2)$
>
> If the pointer is located on the opened "(" and I run "forward-sexp"
> it works and the
> pointer goes after the closed ")".
>
> But if, again, the pointer is located on the opened "(" and I evaluate
> "(sexp-at-point)" it returns nil.
>
> If I remove the ";" symbol from the expression it works and returns
> the sexp-at-point:
>
> $K(U_1, V_1, x_1 t_2, x_2)$
>
> Is it a bug?
>
> Best regards,
>
> Gabriele
>
>
> In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
> cairo version 1.16.0) of 2024-06-24 built on lcy02-amd64-050
> Repository revision: 176061eb965cf945e7627ce87bb16ec5a03f8a4d
> Repository branch: master
> Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
> System Description: Ubuntu 20.04.6 LTS
>

> Important settings:
> value of $LANG: it_IT.UTF-8
> locale-coding-system: utf-8-unix
>
> Major mode: LaTeX

This suggests you are using the major mode from AUCTeX, rather than the
built-in latex-mode?  Is this right?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71777; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jun 2024 20:40:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 16:40:16 2024
Received: from localhost ([127.0.0.1]:37682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMCxT-00062m-08
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 16:40:15 -0400
Received: from lists.gnu.org ([209.51.188.17]:51318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriele@HIDDEN>) id 1sMCwU-00060s-4t
 for submit <at> debbugs.gnu.org; Tue, 25 Jun 2024 16:40:05 -0400
Received: from [2001:470:142:3::10] (helo=eggs.gnu.org)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gabriele@HIDDEN>)
 id 1sMAXy-0002f8-HY
 for bug-gnu-emacs@HIDDEN; Tue, 25 Jun 2024 14:05:40 -0400
Received: from smtp01.cbsolt.net ([185.97.217.40])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gabriele@HIDDEN>)
 id 1sMAXH-0001Ys-Au
 for bug-gnu-emacs@HIDDEN; Tue, 25 Jun 2024 14:05:18 -0400
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 4W7ss43fpTz3wbM
 for <bug-gnu-emacs@HIDDEN>; Tue, 25 Jun 2024 19:53:59 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net;
 s=201504-di4k2w; t=1719338042;
 bh=NGhT444E9f72cHagFormoxignfeTgj4iyhai+1M2JRs=;
 h=Date:To:Subject:From:From;
 b=DyyrhMt/3jNuoAKPDxbfqErM3709YwuC0yaYetgzfC2isEeO4pJi9OknQvnG/e9eF
 ODgqhXdoUDr4Lno6Gr5WgfMOV/ye2Ng+CX+QqzVNVSfU+ayq+wH8LsfnnM7WDlVhQa
 eHcjCtNL2v1scjA21tjLM+OBrIvyXTlh3IbMsOtE=
Message-ID: <bdc05dba-8106-40cb-9a58-7c5ae12a26a8@HIDDEN>
Date: Tue, 25 Jun 2024 19:53:59 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: bug-gnu-emacs@HIDDEN
Subject: 29.4; sexp-at-point in latex-mode when sexp contains ";"
Content-Language: en-US
From: Gabriele Nicolardi <gabriele@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=185.97.217.40;
 envelope-from=gabriele@HIDDEN; helo=smtp01.cbsolt.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, SPF_HELO_NONE=0.001,
 T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

I have this string expression in latex-mode:

$K(U_1, V_1, x_1; t_2, x_2)$

If the pointer is located on the opened "(" and I run "forward-sexp" it 
works and the
pointer goes after the closed ")".

But if, again, the pointer is located on the opened "(" and I evaluate
"(sexp-at-point)" it returns nil.

If I remove the ";" symbol from the expression it works and returns the 
sexp-at-point:

$K(U_1, V_1, x_1 t_2, x_2)$

Is it a bug?

Best regards,

Gabriele


In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
cairo version 1.16.0) of 2024-06-24 built on lcy02-amd64-050
Repository revision: 176061eb965cf945e7627ce87bb16ec5a03f8a4d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.6 LTS

Configured using:
'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
--without-xaw3d --with-modules --with-cairo
--with-native-compilation=aot --without-pgtk --with-xinput2
--with-tree-sitter --with-json
'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
-isystem/build/emacs/stage/usr/include -O2'
'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
-isystem/build/emacs/stage/usr/include'
'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
-L/build/emacs/parts/emacs/install/usr/lib
-L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
-L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu
-L/build/emacs/stage/usr/lib''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM
GTK3 ZLIB

Important settings:
value of $LANG: it_IT.UTF-8
locale-coding-system: utf-8-unix

Major mode: LaTeX

Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils tex-mode compile text-property-search
shell pcomplete comint ansi-osc ansi-color ring time-date cl-loaddefs
comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 94745 6994)
(symbols 48 8180 0)
(strings 32 23981 1842)
(string-bytes 1 748444)
(vectors 16 18526)
(vector-slots 8 362068 6080)
(floats 8 40 162)
(intervals 56 343 0)
(buffers 984 12))





Acknowledgement sent to Gabriele Nicolardi <gabriele@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71777; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 26 Jun 2024 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.