From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun Date: Sat, 10 Dec 2022 21:25:40 +0200 Message-ID: References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <4d605e69-7df9-6480-c1c5-dcb22abd3bde@yandex.ru> <83y1ri2wnj.fsf@gnu.org> <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> <9e327f59-15d2-4af1-837c-53e8a793754e@yandex.ru> <83sfhnwe1p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32355"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: larsi@gnus.org, 59662@debbugs.gnu.org, theo@thornhill.no, casouri@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 20:26:21 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 1p45UL-0008Bt-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 20:26:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p45U4-0005mK-7d; Sat, 10 Dec 2022 14:26:04 -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 1p45U2-0005mA-JC for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 14:26:02 -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 1p45U2-0003jI-8h for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 14:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p45U1-0004zt-Vz for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2022 19:26:01 +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.167070035019202 (code B ref 59662); Sat, 10 Dec 2022 19:26:01 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 10 Dec 2022 19:25:50 +0000 Original-Received: from localhost ([127.0.0.1]:44612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p45Tq-0004ze-30 for submit@debbugs.gnu.org; Sat, 10 Dec 2022 14:25:50 -0500 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:35616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p45To-0004zY-JX for 59662@debbugs.gnu.org; Sat, 10 Dec 2022 14:25:49 -0500 Original-Received: by mail-wr1-f53.google.com with SMTP id y16so8300772wrm.2 for <59662@debbugs.gnu.org>; Sat, 10 Dec 2022 11:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vG7jpIKYI9UzBpybULchDPQ/s2DR5yMcLMvRockL8yQ=; b=fkZW4raSXg/d34JKmabvpNZiv+i9nxlJNKfiS3OmzjfI47HcylyRR24NW+HgbE+TEI GGtKstDiNn8PmavUUOxMzadFKZInuvEGMfZhYVbWA9GvxJwNLu1VpYtOfiB8Cx0UUzDC 7kF4Dw+qL/AoviNzw4qtnN6zFg8PIQbnxK8gvzvVa0efSqeBGtN3lyWsJQvaMCozqNTe EXqxSH/4rs7znSzTvKAyTDQNRnpOtmA6S1ESP1TSMXzweEXsUD5YcjI7c5o7jt2G8YAB 1vRCza4mKmORHjvc1RavLnMyL35vNlnvkoI3yYMwxThpA212U/7etJm+6P64vp+gvZvQ HuQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vG7jpIKYI9UzBpybULchDPQ/s2DR5yMcLMvRockL8yQ=; b=snkzd+0gNFJPZYM6ll5y8+hJo6QIlAnxARmmgapbgf8hjVar4c+NtZmEU6kFxOLSyw KrizN+pn/Dl9FNjymt8/7Ag0fmg0WuH6AZGn9pju149ouHhIjymBx6le6I/CSD+QXidD f6ZiajxEtMQ8lvguVWX04QDTUFSHmktMGhqJHvtMz2ge9GGq42OYHoDwg/8uRn1Je/Md ra3Ul03ftCA2xKFgZepmB2QDu5+RTaI8Ut3EQ/Fyw+JmUaz4eH8C+PiSSJHPogd6mR8g 7dTpcc0mIfYI7Q8ONdOIlS8Hc6inLq2p3tzYDzD1McAoMDD/BjIwzC6vgO5vGCI8RJZK e71g== X-Gm-Message-State: ANoB5pk2IsMLMDt19Yq5JcFajJoSXp0TGal6eUITSyvHkQv5RdypeoJ9 p3E+SSqTiBt8AvE8QRhL7Lg= X-Google-Smtp-Source: AA0mqf6uYPhomPw+WZuXi/Vd0tBaJUqusUSXhT7ekVbsSJCacZB0Ho5Wk3Br4s7nhb1BVZC2BeSiGg== X-Received: by 2002:a5d:4a0e:0:b0:242:643e:6954 with SMTP id m14-20020a5d4a0e000000b00242643e6954mr7003656wrq.14.1670700342951; Sat, 10 Dec 2022 11:25:42 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j18-20020a5d5652000000b002427bfd17b6sm5364560wrw.63.2022.12.10.11.25.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Dec 2022 11:25:42 -0800 (PST) Content-Language: en-US In-Reply-To: <83sfhnwe1p.fsf@gnu.org> 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:250549 Archived-At: On 10/12/2022 16:04, Eli Zaretskii wrote: >> Date: Fri, 9 Dec 2022 22:30:55 +0200 >> Cc:larsi@gnus.org,59662@debbugs.gnu.org,casouri@gmail.com, >> monnier@iro.umontreal.ca >> From: Dmitry Gutov >> >> On 09/12/2022 22:20, Eli Zaretskii wrote: >> >>>> +(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". >> The comment may start after point. > Only after, not before? Either point is in a comment (possibly multiline), or the comment starts after point on the same line. >>>> +Otherwise, reindent the definition around or below point." >>> Likewise this one is confusing. >> The intent was to describe the behavior that follows 'mark-defun'. Which >> has this in its docstring: >> >> Put mark at end of this defun, point at beginning. >> The defun marked is the one that contains point or follows point. > That one is clear. Does "below point" means before point (i.e. lower > buffer position) or after point (i.e. lower on the screen)? Same as "after point", yes.