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: Sat, 10 Dec 2022 16:09:09 +0200 Message-ID: <83r0x7wdtm.fsf@gnu.org> References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <875yemz55b.fsf@thornhill.no> <83r0xa2tc4.fsf@gnu.org> <87zgbyxohf.fsf@thornhill.no> <837cz22bgd.fsf@gnu.org> <2C2420B5-A0BE-4A81-A924-0F40DD57F211@thornhill.no> <877cz1d7vq.fsf@thornhill.no> <83ilil1wot.fsf@gnu.org> <877E42C0-4FDD-4ED7-933D-AB2199BBCEF3@thornhill.no> <83edt917z5.fsf@gnu.org> <87o7scww07.fsf@thornhill.no> <40acda30-cf00-b419-b726-2794206c96e9@yandex.ru> <87ilikws6a.fsf@thornhill.no> <87edt8wqyo.fsf@thornhill.no> <64801406-62b9-c691-da3e-b8dbcee203be@yandex.ru> <87wn70injy.fsf@thornhill.no> <834ju4z5vu.fsf@gnu.org> <87mt7wi8sp.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32135"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 59662@debbugs.gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 15:10:36 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 1p40Ym-0008Bd-N8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 15:10:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p40YV-0003Pv-SX; Sat, 10 Dec 2022 09:10:19 -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 1p40YJ-0003Mx-DG for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:10:13 -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 1p40YE-00070c-TQ for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:10:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p40YE-0007US-Ib for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 09:10: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: Sat, 10 Dec 2022 14:10: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.167068136428778 (code B ref 59662); Sat, 10 Dec 2022 14:10:02 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 10 Dec 2022 14:09:24 +0000 Original-Received: from localhost ([127.0.0.1]:42964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p40Xc-0007U5-Bd for submit@debbugs.gnu.org; Sat, 10 Dec 2022 09:09:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p40XX-0007Ts-MS for 59662@debbugs.gnu.org; Sat, 10 Dec 2022 09:09:23 -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 1p40XS-0005Hd-7f; Sat, 10 Dec 2022 09:09:14 -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=KbVsbxSL9AsHRS5s7TvvQ49kpknW8mrLLYSgV2KE1Fg=; b=iQUkUYoZ6H/T rvJR4c87ym4OSyGjFNqD0cAP5kwnI4yAYvGCrKjdz2Lt9JbBnhgY/s35awLevgPEw6J14eMrgTJuc vIONDzL+tpyM5/DuBBa9ClbMINbDnx2p4XHowpYxury+9Ng8HgK+Idj2/UjqFwWTMu2mSJXKW9kkL Oz29NgeCIIo8VPE4BSr2dO1ztsjIgRpiYU6dO+gvdmeb1qZPwX/MeKKGSgiBA5yo4N5NaDx0VyYPP N/E8CcZnXpsQeuSbF6QJkNMQZofR9Ugc2li/80GuHK9fSFxwm3q4Ta0vQnmDnkkpu8gTFAy9mFxm9 Y3MQ4801w4coxFrhhLBT6g==; 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 1p40XR-00076H-FH; Sat, 10 Dec 2022 09:09:13 -0500 In-Reply-To: <87mt7wi8sp.fsf@thornhill.no> (message from Theodor Thornhill on Fri, 09 Dec 2022 22:09:10 +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:250522 Archived-At: > From: Theodor Thornhill > Cc: dgutov@yandex.ru, larsi@gnus.org, 59662@debbugs.gnu.org, > casouri@gmail.com, monnier@iro.umontreal.ca > Date: Fri, 09 Dec 2022 22:09:10 +0100 > > Something like the patch below? Forgive me, but my texinfo-fu is > limited. You have nothing to worry in that department. > I'm a little unsure if I xrefed to the correct nodes. Maybe > it is better to just mention 'beginning-of-defun' rather than the > variable 'beginning-of-defun-function'? I meant a reference to where beginning-of-defun-function is mentioned, and that is in the ELisp manual. You can see examples of how to reference another manual in many places in doc/emacs/*.texi; seartch for "elisp". > >> +(defun prog-fill-reindent-defun (&optional argument) > >> + "Refill paragraph or reindent the definition that the point is on. > >> + > >> +If the point is in a string, or in a comment, or there is a > >> +comment on the current line, fill the paragraph that the point is > >> +in or is on the same line. > > > > I don't understand the difference between "point is in a string, or in > > a comment" and "there is a comment on the current line". > > > >> +Otherwise, reindent the definition around or below point." > > > > Likewise this one is confusing. > > I'm not sure how to word this differently, but I agree it's a mouthful. If you explain to me in plain English what you meant, I can suggest a better wording. Thanks.