X-Loop: help-debbugs@HIDDEN Subject: bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) Resent-From: Vincenzo Pupillo <v.pupillo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 18 Apr 2025 18:58:05 +0000 Resent-Message-ID: <handler.77906.B.174500263928472 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 77906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 77906 <at> debbugs.gnu.org X-Debbugs-Original-To: Bug Emacs <bug-gnu-emacs@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.174500263928472 (code B ref -1); Fri, 18 Apr 2025 18:58:05 +0000 Received: (at submit) by debbugs.gnu.org; 18 Apr 2025 18:57:19 +0000 Received: from localhost ([127.0.0.1]:52859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5qto-0007Ol-7E for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 14:57:18 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36144) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <v.pupillo@HIDDEN>) id 1u5qtl-0007NM-JC for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 14:57:14 -0400 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 <v.pupillo@HIDDEN>) id 1u5qtf-0007E8-Mx for bug-gnu-emacs@HIDDEN; Fri, 18 Apr 2025 14:57:07 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <v.pupillo@HIDDEN>) id 1u5qtd-000378-QR for bug-gnu-emacs@HIDDEN; Fri, 18 Apr 2025 14:57:07 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-39c0e0bc733so1981039f8f.1 for <bug-gnu-emacs@HIDDEN>; Fri, 18 Apr 2025 11:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745002623; x=1745607423; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SSx+vRAqoHVGQoWVsnd1vtZay1OBTT4aGoJ3R6YxrsA=; b=F8lxTCxoCOGUWkdq5a64QijzzDvqivq6gQMgwWwcK6jga098eQ3QUR0LktTK6Zg/8y aADVYfYIxGB1gioqLUq5b34MGSay+W7YBwE4JxzKKPaySKa2ZkQ1pAjCAoPzwPJE5lfu q5LSH/fJzBgtvcVrpG5nBwCcZX9jdebC5qFQxD202/GsRNDEzAY6vd5DDO0+5DOUJuAt /zQ4AGLs/QjAYHJW2nDFj1lxXzDU4aQHAevzwd70hSGke0Sm6mY96x/Rg8lQLD+88LqX Z57r0bcTbHY3rBCdQuWKRjgbKCNAFVX3VdcuUexGxL1zBQ4BoytjaJMoT4XnW9k/aZWA Xdpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745002623; x=1745607423; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SSx+vRAqoHVGQoWVsnd1vtZay1OBTT4aGoJ3R6YxrsA=; b=CppPfSa5YI3VpMLoz+FIsDDFEdjDlYAMN7E5cOQCHfg4/93J0+zcQm+LizCAq/IkHb yWBoZmPX1O2YJY1BSgvmW7E56Kp6N2PjLZs8yhhBR8VbHbFyrSWxD0KhpSV1Ts7cqgOk OMEhoCoqN44nPKouRh37EdPSpRJY2+zfahSiUnGXPLdtwGHz0+QbunAjqfgOF5rZgC5C gjw3glIH3I4GKtR95hi3fjkC80NqFUcrLB7KKm6nbW64i8RyChFPK1HtfFitAl6fWNxN sVI2HZhposB1XFymy2BaKm7752VJ8dmxkqe1/vdqGETLyWx8r/f6eKMRqhsH5M7HUsMb VquQ== X-Gm-Message-State: AOJu0YxZ/mHmk/Qe4ykR+M4pKQlAx5TL87GXRs1bPFI7goxBRJ6LTnRH +moIAcmA9B/iQ3f53JMYjcBfhEloQkXvMPmNY7eibmxaezztoBndaSGwAQ== X-Gm-Gg: ASbGncughsy/6nvYVDXRa1a73lpX9XEW4dasbqxRGcastzCJSvx0d9qe6dshTrKtsN0 Bc+h2hUxicw+U7De5Aupd1X6tJURfzoC8WuMslfbEAT8XnFi4FPKpQANwoV9bWRZKMFDMREBRDL IEG9lukC1XkQJbgMcEKB6OJcgnZlhpMUSScQ9WNR1rYABrhOCzGRjEw/g7dUCVf5Rom5soMWb8E AsGEweiDaBJKDBf6EnsxyKBpaqVgAQNpwr/w41Zi8agBLjjTS40iEKhWAcWM7jiaTitLvC/GaRo 2qZmhc04cujE0Gzcc7Te4q/AIsBp3hG5AWEAiuWQfXizdJHfAB3niuuNI1YBjw3MBC4hjFfa/+0 uohjOwXDmGICtXKY= X-Google-Smtp-Source: AGHT+IF+fhVP7b3qIbo6ACbIl/EXrUHgu+8/CHMLsAtBIsFa6r7lQhTX93meuF+6r/Ccp91ycbw/qA== X-Received: by 2002:a05:6000:188e:b0:390:e9b5:d69c with SMTP id ffacd0b85a97d-39efba61aa5mr3142681f8f.25.1745002623222; Fri, 18 Apr 2025 11:57:03 -0700 (PDT) Received: from fedora.localnet (2-230-139-124.ip202.fastwebnet.it. [2.230.139.124]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5ccd43sm31583015e9.26.2025.04.18.11.57.02 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Apr 2025 11:57:02 -0700 (PDT) From: Vincenzo Pupillo <v.pupillo@HIDDEN> Date: Fri, 18 Apr 2025 20:57:01 +0200 Message-ID: <3544088.LZWGnKmheA@fedora> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=v.pupillo@HIDDEN; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) Ciao, both php-ts-mode and js-ts-mode show the same error. It is similar to bug #75456. It was fixed by me at the time, for js-ts-mode, with a patch to js--treesit-language-at-point. The problem arises when there are languages other than the main language in the buffer. The following snippet shows the problem, just put the cursor at the end of the comment (jsdoc parser required): function MyBigFunc(param1, param2) { const abc = 'def'; } /** * Rapresent * @param {int} a dada */| <-- cursor here var variablename = function(a) { console.log("text"); // dada /** dada */ // dada }; With php it is even worse because of the number of embedded languages. Any idea? Thanks. Vincenzo
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Vincenzo Pupillo <v.pupillo@HIDDEN> Subject: bug#77906: Acknowledgement (31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list)) Message-ID: <handler.77906.B.174500263928472.ack <at> debbugs.gnu.org> References: <3544088.LZWGnKmheA@fedora> X-Gnu-PR-Message: ack 77906 X-Gnu-PR-Package: emacs Reply-To: 77906 <at> debbugs.gnu.org Date: Fri, 18 Apr 2025 18:58:06 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 77906 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 77906: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77906 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Apr 2025 06:28:03 +0000 Resent-Message-ID: <handler.77906.B77906.17451304749078 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vincenzo Pupillo <v.pupillo@HIDDEN> Cc: Yuan Fu <casouri@HIDDEN>, 77906 <at> debbugs.gnu.org Received: via spool by 77906-submit <at> debbugs.gnu.org id=B77906.17451304749078 (code B ref 77906); Sun, 20 Apr 2025 06:28:03 +0000 Received: (at 77906) by debbugs.gnu.org; 20 Apr 2025 06:27:54 +0000 Received: from localhost ([127.0.0.1]:43896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6O9h-0002MM-Pf for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:27:54 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38289) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1u6O9c-0002Lk-Kn for 77906 <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:27:49 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4E2D141D1E; Sun, 20 Apr 2025 06:27:38 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> In-Reply-To: <3544088.LZWGnKmheA@fedora> Organization: LINKOV.NET References: <3544088.LZWGnKmheA@fedora> Date: Sun, 20 Apr 2025 09:19:18 +0300 Message-ID: <8734e3e4nt.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfeejudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopeejjeeltdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoheptggrshhouhhrihesghhmrghilhdrtghomhdprhgtphhtthhopehvrdhpuhhpihhllhhosehgmhgrihhlrdgtohhm X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) 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 (-) > both php-ts-mode and js-ts-mode show the same error. It is similar to bug > #75456. It was fixed by me at the time, for js-ts-mode, with a patch to > js--treesit-language-at-point. The problem arises when there are languages > other than the main language in the buffer. > The following snippet shows the problem, just put the cursor at the end of the > comment (jsdoc parser required): > > function MyBigFunc(param1, > param2) { > const abc = 'def'; > } > /** > * Rapresent > * @param {int} a dada > */| <-- cursor here > var variablename = function(a) { > console.log("text"); // dada > /** dada */ > // dada > }; > > With php it is even worse because of the number of embedded languages. > > Any idea? I noticed the same problem that the end of a range unexpectedly belongs to its host that breaks many things such as navigation to the start of the embedded root node from its end. Instead it uses the host node. Maybe point at the end of the range should belong to the embedded parser?
X-Loop: help-debbugs@HIDDEN Subject: bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) Resent-From: Yuan Fu <casouri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Apr 2025 14:56:03 +0000 Resent-Message-ID: <handler.77906.B77906.174516092717123 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: Vincenzo Pupillo <v.pupillo@HIDDEN>, 77906 <at> debbugs.gnu.org Received: via spool by 77906-submit <at> debbugs.gnu.org id=B77906.174516092717123 (code B ref 77906); Sun, 20 Apr 2025 14:56:03 +0000 Received: (at 77906) by debbugs.gnu.org; 20 Apr 2025 14:55:27 +0000 Received: from localhost ([127.0.0.1]:50501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6W4t-0004S6-2I for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 10:55:27 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:58747) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <casouri@HIDDEN>) id 1u6W4o-0004Qu-MZ for 77906 <at> debbugs.gnu.org; Sun, 20 Apr 2025 10:55:25 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-af28bc68846so2816715a12.1 for <77906 <at> debbugs.gnu.org>; Sun, 20 Apr 2025 07:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745160916; x=1745765716; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=omeHKX1kiH07K5rRriTrOXbR6D10ymLx/TS8fj3XTX4=; b=ODHofauyS18I+/tNN3NeadTAc7B6/+qKMqxC8LwZbnU1c1CdJ+WQi53SIFqsuCAhC5 631kLnxLDS7YcjHM3cgzmPLUDWMjCKcGIBYDA1tJTqVyfX1TI2GRwELDnEg6CLQsI4wH +Pz6Zgb9tSjxLIyrrMpz+6DtPnhjWNdA2nDulZxXT+KEawxJvhuXXgzm0sy/JFWEoVsD oT7Po0OQQHWbTNmJehVoDow6kzwNaOkAL1qC4PHLZWhDNeK0xHiMSJCBVw0BftM2eI2/ vPS6ZrOjVkKSJr+wpILZq3ffPXbStrBUkJdmL7/kRuXaWoK5rt5gU5/57SwlQaT7w0QC SkBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745160916; x=1745765716; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=omeHKX1kiH07K5rRriTrOXbR6D10ymLx/TS8fj3XTX4=; b=XLfbH8Q0GiLiezVYricM/cP/t/hch3UyHxyEqivk409L+lmkBItNhcHWxAOVuZDV7Q tVSqgU+LUmBycLBByy2EZ0iDQSuL7jCB+DR7n/Hva/LCZyLgyWgp390MCdKrl8hcv5D0 2DoM4n+CYzkbA+NyDB4G0/QZ6Kvfe/uc2nGTf3tZ2Q0JtnxbHAPA5l5r+V85nbD9bE0b xP7ZInEFQzcnt7/zkkc7LDzaaI6RH+Xn5JJCZN/DLxBpgq+y3wZBsJECkPe556ePyfif C6H82nO2nnYyN0/rkbdt7g4s5AuFtmmAU9HHmavhsyVnZWkWUVBkmneNGJb2cLym4yJf FWpg== X-Forwarded-Encrypted: i=1; AJvYcCVtY57D5yitaM3UjjyAnMx5s5+FS9tjID0jAIP/L17/LwV07ZV/517N4RA10TWRr5jWRlAyyA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwbcztWfCVXCrke+BhDGwWujrcb/ELGo5lsQNq7k0u3EHmCRGvX QlM/YE4p1sRzY9pqTE3g/W35g9/Y072ohtDAo8+ZiXG65TD2gyX8 X-Gm-Gg: ASbGncvrH5wPuoKZqf6R/stHxTFHYyGIRiVVDA6Hb4GeFBNRgFlICBXlO6035bA0Abk n45Qp6OxRVzwU+VrQUqOkuppr/fQgNUA7gtcpHbH8lo27rACuoY/yr57JuQcTRgal05z2IGQQdv D1cYkoSA8e9A70Se6U2NnDyuA420BzTr65Tn3x2KbmjgGllFWiivyQ8TMEzvuo4LvrCEs4zEyqV yczBYBCRWlfHIpSV/eawFkivvCQnkiy9g0qPinGzGudC17h4RH9rdK6A/lAuu5wpqe5s/1d+8CV /qpHknNtnaDnXZzRsUrhiwEEeY7knMT1VO6r5M4AAYQOMThXO0drN94cKug4StJA X-Google-Smtp-Source: AGHT+IGB/WmpGRnmMRMWFTrHJwe8jqSVPVS5J+S2LH9OcAEhI2gJ9yJDDwP1LFPxl71GSPGixIUNxQ== X-Received: by 2002:a17:903:40cc:b0:223:5c33:56b4 with SMTP id d9443c01a7336-22c53583807mr113653905ad.20.1745160916476; Sun, 20 Apr 2025 07:55:16 -0700 (PDT) Received: from smtpclient.apple ([2601:646:8f81:6120:9db2:4caa:f4da:502f]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c50fdb97esm48603985ad.219.2025.04.20.07.55.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Apr 2025 07:55:15 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) From: Yuan Fu <casouri@HIDDEN> In-Reply-To: <8734e3e4nt.fsf@HIDDEN> Date: Sun, 20 Apr 2025 07:55:04 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <31AF2138-2D14-476B-B3D4-587C38869EE6@HIDDEN> References: <3544088.LZWGnKmheA@fedora> <8734e3e4nt.fsf@HIDDEN> X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Spam-Score: 0.0 (/) 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 (-) > On Apr 19, 2025, at 11:19=E2=80=AFPM, Juri Linkov <juri@HIDDEN> = wrote: >=20 >> both php-ts-mode and js-ts-mode show the same error. It is similar to = bug=20 >> #75456. It was fixed by me at the time, for js-ts-mode, with a patch = to=20 >> js--treesit-language-at-point. The problem arises when there are = languages=20 >> other than the main language in the buffer. >> The following snippet shows the problem, just put the cursor at the = end of the=20 >> comment (jsdoc parser required): >>=20 >> function MyBigFunc(param1, >> param2) { >> const abc =3D 'def'; >> } >> /** >> * Rapresent >> * @param {int} a dada >> */| <-- cursor here >> var variablename =3D function(a) { >> console.log("text"); // dada >> /** dada */ >> // dada >> }; >>=20 >> With php it is even worse because of the number of embedded = languages. >>=20 >> Any idea? >=20 > I noticed the same problem that the end of a range > unexpectedly belongs to its host that breaks many things > such as navigation to the start of the embedded root node > from its end. Instead it uses the host node. >=20 > Maybe point at the end of the range should belong > to the embedded parser? The end position of a region has always been considered not part of a = region, not only in Emacs, but pretty much everywhere. Let=E2=80=99s fix = treesit-show-paren-data=E2=80=94categorize instead. We can add optional = arguments to treesit-language-at and friends to make it easier to handle = the end-of-range case. Yuan=
X-Loop: help-debbugs@HIDDEN Subject: bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Apr 2025 18:33:02 +0000 Resent-Message-ID: <handler.77906.B77906.17451739321130 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu <casouri@HIDDEN> Cc: Vincenzo Pupillo <v.pupillo@HIDDEN>, 77906 <at> debbugs.gnu.org Received: via spool by 77906-submit <at> debbugs.gnu.org id=B77906.17451739321130 (code B ref 77906); Sun, 20 Apr 2025 18:33:02 +0000 Received: (at 77906) by debbugs.gnu.org; 20 Apr 2025 18:32:12 +0000 Received: from localhost ([127.0.0.1]:53206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6ZSd-0000I9-HP for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 14:32:11 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33325) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1u6ZSZ-0000HO-6M; Sun, 20 Apr 2025 14:32:08 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5DC791FCE8; Sun, 20 Apr 2025 18:31:58 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> In-Reply-To: <31AF2138-2D14-476B-B3D4-587C38869EE6@HIDDEN> Organization: LINKOV.NET References: <3544088.LZWGnKmheA@fedora> <8734e3e4nt.fsf@HIDDEN> <31AF2138-2D14-476B-B3D4-587C38869EE6@HIDDEN> Date: Sun, 20 Apr 2025 21:29:47 +0300 Message-ID: <87wmbe7kkk.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfeekieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepieffteejgeehffejuedtiefhudekgeejteekiefgveeuheetvdefgeekkeevkedunecukfhppeeluddruddvledruddthedruddujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddthedruddujedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheptghonhhtrhholhesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopeejjeeltdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvhdrphhuphhilhhlohesghhmrghilhdrtghomhdprhgtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhm X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) 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 (-) close 77906 31.0.50 thanks > The end position of a region has always been considered not part of > a region, not only in Emacs, but pretty much everywhere. Let’s fix > treesit-show-paren-data—categorize instead. Ah, I missed that this bug report is about treesit-show-paren-data--categorize because it was mentioned only in the subject, and who reads subjects 😄 So now fixed the off-by-one error in treesit-show-paren-data--categorize.
Received: (at control) by debbugs.gnu.org; 20 Apr 2025 18:32:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 20 14:32:28 2025 Received: from localhost ([127.0.0.1]:53208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6ZSt-0000Ie-Tt for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 14:32:28 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33325) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1u6ZSZ-0000HO-6M; Sun, 20 Apr 2025 14:32:08 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5DC791FCE8; Sun, 20 Apr 2025 18:31:58 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Yuan Fu <casouri@HIDDEN> Subject: Re: bug#77906: 31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list) In-Reply-To: <31AF2138-2D14-476B-B3D4-587C38869EE6@HIDDEN> Organization: LINKOV.NET References: <3544088.LZWGnKmheA@fedora> <8734e3e4nt.fsf@HIDDEN> <31AF2138-2D14-476B-B3D4-587C38869EE6@HIDDEN> Date: Sun, 20 Apr 2025 21:29:47 +0300 Message-ID: <87wmbe7kkk.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfeekieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepieffteejgeehffejuedtiefhudekgeejteekiefgveeuheetvdefgeekkeevkedunecukfhppeeluddruddvledruddthedruddujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddthedruddujedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheptghonhhtrhholhesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopeejjeeltdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvhdrphhuphhilhhlohesghhmrghilhdrtghomhdprhgtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhm X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control Cc: Vincenzo Pupillo <v.pupillo@HIDDEN>, 77906 <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 (-) close 77906 31.0.50 thanks > The end position of a region has always been considered not part of > a region, not only in Emacs, but pretty much everywhere. Let’s fix > treesit-show-paren-data—categorize instead. Ah, I missed that this bug report is about treesit-show-paren-data--categorize because it was mentioned only in the subject, and who reads subjects 😄 So now fixed the off-by-one error in treesit-show-paren-data--categorize.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.