From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yang Yingchao via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72489: 29.4.50; forward-comment not working as expected in toml-ts-mode Date: Tue, 06 Aug 2024 13:57:28 +0800 Message-ID: Reply-To: Yang Yingchao Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33138"; mail-complaints-to="usenet@ciao.gmane.io" To: 72489@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 08:07:53 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 1sbDMP-0008Tg-DM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 08:07:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbDMG-0001qz-QA; Tue, 06 Aug 2024 02:07:45 -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 1sbDMC-0001qd-P7 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 02:07:41 -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 1sbDMA-0001Kj-Vi for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 02:07:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=ecWyWao4KLO8Z6axu11LLzFTrLiIUvqYvTpcafv2EwQ=; b=nu7pYhFFbL6OhjztUF0d6Tw5/rB+afaBRTEPJxIA2Ek+n0MUs4FoTk90OSq+U9aJ8QYuHFsDMWtsARUbTrQqwjDNvUQZ9tyaFxagbrOstbToU+YuH98GOizS6+wGKfPU3N2wBJVmX7FqqyzA7ighB+WIOXi3wCBjRqJHyvi7GJIyQhki+6A2nUb9SSDVDIjsMBMch3IKX/LEkmkuFnBednVPGou4Z4DSNZcZJfilhfpd/oWdsJXUn2aA7NEpX62TSrR7MJD2nvaFBCrOpxc3RZdLt7bB9ZnZNeaIAHRYOVQDZY2+2LA0FyeSHdy/iP9P7gY/tNLIFaMcF91vNj3Lfw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbDMX-0007jV-Sb for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 02:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yang Yingchao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2024 06:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72489 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172292447529700 (code B ref -1); Tue, 06 Aug 2024 06:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2024 06:07:55 +0000 Original-Received: from localhost ([127.0.0.1]:59869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbDMQ-0007ix-EY for submit@debbugs.gnu.org; Tue, 06 Aug 2024 02:07:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbDMP-0007iq-3v for submit@debbugs.gnu.org; Tue, 06 Aug 2024 02:07:53 -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 1sbDM1-0001o3-Cb for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 02:07:29 -0400 Original-Received: from out203-205-221-235.mail.qq.com ([203.205.221.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbDLy-0001KC-I9 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 02:07:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1722924440; bh=ecWyWao4KLO8Z6axu11LLzFTrLiIUvqYvTpcafv2EwQ=; h=From:To:Subject:Date; b=IzCvYZ0cXNaDAKabbPqpChA+lq637ZMcLj+I66ZPSG1uyzu2uXIsxQ6DKAH2N/8tR Pj5tF8RDY1o4hEqEbaq0zgP5R3A/eJ+DsY2J10YWoOInT9/U1leNNzxVPGeJ2Ez7xW rB1+XVH6mT9WfMFSIfbByL4pXGQCyUUK1H45jBBQ= Original-Received: from tbook ([116.130.79.103]) by newxmesmtplogicsvrszc5-2.qq.com (NewEsmtp) with SMTP id EA323C25; Tue, 06 Aug 2024 13:58:35 +0800 X-QQ-mid: xmsmtpt1722923915tag5ffen8 X-QQ-XMAILINFO: MmpliBmRb3iCd6TQRZE4VTe4GvTLeeHsjpi+PVvNVTKqTbDSgg3f3lTJAJMeCr p3cri7m22NA/PZab2nTYkrWrWRpSRWeVdsLviFvNFgs/yptSXQJAhuRI1+Pvo/prpp//F2y1+4CO +DDlEq4e00bzyxSXqLSzUbHeeAKFqvcOPOXEVqIytat2S6IzFgrZPMDn5iZ9xs9PMh1bc5emmfQK gsC3IB/wnyL/qT/Z8Q69I7a96Tu1lhk90VtJceGgHZ6iQ7yJqQqNXAFIq8OegZXrxLrRGTAiI86x Ll9CQkL3Eqzwcytc5ODQOlHraZ8LNMTPKyrsmBbR+DZTHarDiGb2xDbQxlF/r5JIHEDoxJAr7pVA SPHzK/R8rO1A1wC/j1TtLwmAyHPy7aArXZTXh3WVjsusE4tkPmPETQGHv/lU+i5ZEI16xZkOtvU+ oFaBWCVgBRO7pKq8XmUE1YIbU8Nt0Y25+Ep8vxtepyuof+bzKwB8fYdz4MnGAoq5nfBAHdGB4Q2r SgyZELnLNqc1EBh91DqAg6t0xJMO/mDIIqtjA1B2VlTmLqZdar6g4ZhIMWlbiblTH0cltTMrPqfo P4drM6TQMGHbcZ8liOez9zpDEwYacGK7LqcRSEP/Um+XumY2tGV7Z1Jye/IqnVcurKZr2ZOE8Jh/ lSzdFGCnOK0FFnfMNxk2nopBQDle2c36m3Vx+ZasZuirtw8D1KrcBoGF5nACF+qh2clH40ZLVFc1 YAvBm3HX/4T6yeoor5HtuUDiWj/v/R37QEW/+wilTSIF5nre2J6Acsy5PB8LArcBMWifySUzSj/U 0CRjczIwUAMDw0RzlAAsb9FiRQxP5JpvzDzbj/we X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= Original-Message-ID: <87bk269os7.fsf@qq.com> Received-SPF: pass client-ip=203.205.221.235; envelope-from=yang.yingchao@qq.com; helo=out203-205-221-235.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 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, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:289816 Steps to reproduce: 1. Open a new buffer in `toml-ts-mode`. 2. Insert the following simple snippets: ``` # (forward-comment 1) # [[keyboard.bindings]] # chars = "a" # key = "Tab" # mods = "Alt" ``` 3. Move the cursor to the first line and call `eval-last-sexp`. This should move the cursor to the beginning of the line "chars = a", but actually it moves the cursor to the end of the whole block. This might be an issue with `toml-ts-mode--syntax-table`. Making a change in https://github.com/emacs-mirror/emacs/blob/e993e479c324bb720bca3f1cf194e55e32f01ccd/lisp/textmodes/toml-ts-mode.el#L53 can fix this issue: ``` - (modify-syntax-entry ?\n "> b" table) + (modify-syntax-entry ?\n ">" table) ``` Regards yang