From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains "; " Date: Wed, 26 Jun 2024 15:39:35 +0300 Message-ID: <86v81v98u0.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18903"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71777@debbugs.gnu.org To: Gabriele Nicolardi , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 26 14:40:12 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 1sMRwZ-0004YV-II for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jun 2024 14:40:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMRwQ-00013C-1d; Wed, 26 Jun 2024 08:40:02 -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 1sMRwN-00012v-JJ for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:39:59 -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 1sMRwN-0008GQ-BV for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:39:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMRwP-0007La-Ju for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 12:40:01 +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.171940559228218 (code B ref 71777); Wed, 26 Jun 2024 12:40:01 +0000 Original-Received: (at 71777) by debbugs.gnu.org; 26 Jun 2024 12:39:52 +0000 Original-Received: from localhost ([127.0.0.1]:38744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMRwF-0007L3-UV for submit@debbugs.gnu.org; Wed, 26 Jun 2024 08:39:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMRwD-0007Ko-7u for 71777@debbugs.gnu.org; Wed, 26 Jun 2024 08:39:49 -0400 Original-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 ) 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==; In-Reply-To: (message from Gabriele Nicolardi on Tue, 25 Jun 2024 19:53:59 +0200) 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:287934 Archived-At: > Date: Tue, 25 Jun 2024 19:53:59 +0200 > From: Gabriele Nicolardi > > 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.