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#59662: 29.0.50; [PATCH] Add treesit--indent-defun Date: Fri, 02 Dec 2022 20:52:17 +0200 Message-ID: <83zgc5eizi.fsf@gnu.org> References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <83o7sniokt.fsf@gnu.org> <56840149-5EB9-4C22-841F-45F410BFC885@thornhill.no> <83edtjimyo.fsf@gnu.org> <875yet975l.fsf@thornhill.no> <834judg67m.fsf@gnu.org> <87359x8xmm.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 59662@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 19:53:18 2022 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 1p1B9x-0005eg-Qf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 19:53:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1B9l-0008F1-7d; Fri, 02 Dec 2022 13:53:05 -0500 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 1p1B9i-0008EU-WB for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 13:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1B9i-0005al-OS for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 13:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1B9i-0008UB-EN for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59662 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59662-submit@debbugs.gnu.org id=B59662.167000717232611 (code B ref 59662); Fri, 02 Dec 2022 18:53:02 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 2 Dec 2022 18:52:52 +0000 Original-Received: from localhost ([127.0.0.1]:48243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1B9X-0008Tv-Rt for submit@debbugs.gnu.org; Fri, 02 Dec 2022 13:52:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1B9S-0008Tl-82 for 59662@debbugs.gnu.org; Fri, 02 Dec 2022 13:52:49 -0500 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 1p1B9M-0005Y3-HZ; Fri, 02 Dec 2022 13:52:40 -0500 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=IQomG/UGfFBnG1ZnqvOoA4/149ajcdoXLY0JawAI8Bc=; b=PAseKP89ciy8 05JgzOGU1f6uQinlnPN6vmlHbtZ5XzM9IUlPFxCfZkTMeOxj4zJ4hVsvwbikDEWNlbmizhqUYTYsU vtUd3ITwsb+ofSfRcspR+JcRvwCsZU45kGSj+12akp/uvwxkw2UvbtZtIX4+CP8NVIH7ACbeVAwPb ym66Mn5TMypH85Q/XlYu9dOM+ZQD8saTXY/+zNepH3mJ4xg9fyMdfbPI3X6feYGWQiUkTne5+Rwdg +wmWbzgPHsgD+rSfwn7J6JR3g+s4boY2Q6edF61W8xX6Lg+Qoxfu+161o+LHaeBfVpZjnH05T+ZZd 0DYXZxO02YaaSdfiangFOA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1B9L-0006FB-Tz; Fri, 02 Dec 2022 13:52:40 -0500 In-Reply-To: <87359x8xmm.fsf@thornhill.no> (message from Theodor Thornhill on Fri, 02 Dec 2022 19:32:33 +0100) 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:249772 Archived-At: > From: Theodor Thornhill > Cc: casouri@gmail.com, 59662@debbugs.gnu.org > Date: Fri, 02 Dec 2022 19:32:33 +0100 > > However - mark-defun signals an error on some constructs because of > number-or-marker error: > > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > treesit-end-of-defun() > c-ts-mode--end-of-defun() > end-of-defun() > mark-defun(1 nil) > mark-defun(1 23209) > funcall-interactively(mark-defun 1 23209) > call-interactively(mark-defun record nil) > command-execute(mark-defun record) > execute-extended-command(nil "mark-defun" nil) > funcall-interactively(execute-extended-command nil "mark-defun" nil) > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) > > I'll file a separate bug report for this one, if that's ok? Yes, please.