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: Fri, 9 Dec 2022 22:30:55 +0200 Message-ID: <9e327f59-15d2-4af1-837c-53e8a793754e@yandex.ru> 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> 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="35915"; 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, casouri@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii , Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 09 21:32:08 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 1p3k2S-0009CL-1l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Dec 2022 21:32:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3k2N-000857-Vu; Fri, 09 Dec 2022 15:32: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 1p3k2M-00084c-Gi for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 15:32: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 1p3k2M-0006ht-97 for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 15:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3k2M-0002yE-4u for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 15:32: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: Fri, 09 Dec 2022 20:32: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.167061786411397 (code B ref 59662); Fri, 09 Dec 2022 20:32:02 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 9 Dec 2022 20:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:38318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3k1Q-0002xl-Em for submit@debbugs.gnu.org; Fri, 09 Dec 2022 15:31:04 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:42615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3k1P-0002xO-C5 for 59662@debbugs.gnu.org; Fri, 09 Dec 2022 15:31:03 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id w15so6282367wrl.9 for <59662@debbugs.gnu.org>; Fri, 09 Dec 2022 12:31:03 -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=GoTdKGacXqxFRyDiDoPBaSFirSAb8wLfqempj3t90us=; b=epjtZRnsBl0L6vU08UYa9ceNQIEk1Hr+rZJvIdyK9SuvMRRJwMazrHt2IzmqjKAiKu /UiZjQSQinEYmJjQlRkrqFIJ5ICckUhzErbOw+aqRUl7OMGf1Ysc0wLETNPhmkHT4MyL CNhlFYRUAHA9BZerxh9B7qi+NYSSMFy82/bcM2nHYQ7DMq0bUWF0l5hCqTUPNo8QSMY9 xP7NKRwGyV/720YqJGWkEijByzGF/F2AnWY5I3lFiCj/wnZF2rdGHN3hvsYkAbMnCkAB zP1Nu/PKxNfDL/GvCMlUOBKAIz67UDle/f1HHVa25pJEVwSNe+IWwZgRctOxi/kS71bK PWcw== 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=GoTdKGacXqxFRyDiDoPBaSFirSAb8wLfqempj3t90us=; b=YC1LD1XwnLwElNup2pf+VTli4CROAbsEwRx0VPN/aoRrcTsPE2phzpheSoiO/090ta vAoZMvmxeqvinY9GghJpFWbB4B16ScYjQp3fAC+N9BbihPpEGOOXxKISsQuHxMGvaOTl jhtu03hNaOHW/WgUzMDwLiYpx9lzvzDZ4EANqXze/Tn478KMvpd0JzX6u6il4VkxScii 1HMsmLIdUEOK2w4Eckw/9qn+jnQt+xvDvzyTez1rO6h4ueLgbxdqM7SR9fIdW2z9deVz pXcPDbbwoo4zWUMIEwnuGmqWD801LMMnSzdjFuNjkkW4Cpwi3AuqI+m9Fnrv/nHkB3je aF2A== X-Gm-Message-State: ANoB5plZ+NmLdiYQ/26WJZn0mBiYAR99qTSRdIx3pryP1978D/NaFJw/ QGnVi9/nFRK0/aFFaPvO5Jk= X-Google-Smtp-Source: AA0mqf69lIrbNdYpEcbfph1wvX+U5s7zv7gQOPPlFWTaayCBDK8/iuJ7+05fWM2GpAcVNuh+r2dyQg== X-Received: by 2002:adf:eb83:0:b0:232:be5c:c009 with SMTP id t3-20020adfeb83000000b00232be5cc009mr4887707wrn.60.1670617857680; Fri, 09 Dec 2022 12:30:57 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id ay9-20020a5d6f09000000b0022ae0965a8asm2234737wrb.24.2022.12.09.12.30.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Dec 2022 12:30:57 -0800 (PST) Content-Language: en-US In-Reply-To: <834ju4z5vu.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:250451 Archived-At: 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. >> +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.