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#60322: 30.0.50; [PATCH]: Search for comment at bol in prog-fill-reindent-defun Date: Thu, 29 Dec 2022 21:25:58 +0200 Message-ID: <664b3a60-2941-feba-b6f0-acb83d2fe64a@yandex.ru> References: <87r0wn87yz.fsf@thornhill.no> <1a6503f9-31be-7015-64a4-6776e510a855@yandex.ru> <87tu1eovz7.fsf@thornhill.no> 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="29543"; 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 To: Theodor Thornhill , 60322@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 20:27:12 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 1pAyYZ-0007WK-Oc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 20:27:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAyYT-0000Wg-OG; Thu, 29 Dec 2022 14:27: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 1pAyYQ-0000WC-Uv for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 14:27: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 1pAyYQ-0003ao-FG for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 14:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAyYQ-00037Y-7s for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 14:27: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: Thu, 29 Dec 2022 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60322 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60322-submit@debbugs.gnu.org id=B60322.167234197011935 (code B ref 60322); Thu, 29 Dec 2022 19:27:02 +0000 Original-Received: (at 60322) by debbugs.gnu.org; 29 Dec 2022 19:26:10 +0000 Original-Received: from localhost ([127.0.0.1]:32927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAyXa-00036R-DS for submit@debbugs.gnu.org; Thu, 29 Dec 2022 14:26:10 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:35387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAyXW-00035u-Hq for 60322@debbugs.gnu.org; Thu, 29 Dec 2022 14:26:08 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id i15so27901141edf.2 for <60322@debbugs.gnu.org>; Thu, 29 Dec 2022 11:26:06 -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:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=lcH9M+nbYrZoJdaxijA8iBGD9c97ZhXEluQpAF3qTJU=; b=SVAH99sTy3jeF+6OdGEA9awV6pRO5vwYsdxusTtovxJG24g5AnPizDf1VsxVN27I5n ykswZ18NRh8FZFTVLhyu5KifX1x8zx9XHSDcrGdI+CUoIVEKbas/dAyRoWAN9giIQN6U 4FjzsLx/O0Nzzv3jDsftPV+YYT9+VMg2j2tRx9U0x/NPzy0au3dsRZeWBQEWqOHBZu+D Rr2GgfIigQ6RHDVzkN0lZmm/nWwgwthGkWMiFDPqEVSiulLaI9w9LrpW7yZH7ATyKtz4 knw7c4wZ6UY0jxb3o5Kgm9g/UXd72uUW+c715yhfMAvfFoyo9kyUL0N/pfvf33IYS0Dr c03g== 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: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=lcH9M+nbYrZoJdaxijA8iBGD9c97ZhXEluQpAF3qTJU=; b=HjeRo2VHO/YnqGJiDegQGFdLcLpH9y1O82j3UE+/TlCclmKysZ4yWdIVQT7PBJdgQP VPoU8bgZSipTy5HPKKadIMJ1NDGHy6/v/eOrwl6/z8zKMtiyjaWhVfwdcFa/2DoZJmHR BGmXc2LHW6MNZiAxFgUJu00OmaB9vYcc4uV6SKmKHDhq8bZJePK4MCaGjCICfvabCySe ePT32sqwwuYer6UQtI0tRKyD9RRdh3nalKcyogdDzBi2kk12M3M/SGOVq10IYJqRZPGC 04ruRnySgEy/EAkuh0d0L070GBSIXrryXEUv1M/RWpvUUfHk7VuDXGQO1ZnuGZ7lOvxo VLYg== X-Gm-Message-State: AFqh2koV9B/OAZf3215V1eHc4kGuNBq7YnGZzZR1EQuerQLW1TofrS6/ dUspfP1QFx8vnWgr1BDlc48= X-Google-Smtp-Source: AMrXdXslZs1/vFDWUDZapQRcsgAoMK8VtzpY0NQba7SCAZyPQ4ZpynaeP5lDEsS4u7YK55xwp+Zz5A== X-Received: by 2002:a05:6402:33a:b0:468:3d69:ac81 with SMTP id q26-20020a056402033a00b004683d69ac81mr25340213edw.29.1672341960508; Thu, 29 Dec 2022 11:26:00 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id t18-20020a056402021200b0048447efe3fcsm5882283edv.84.2022.12.29.11.25.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Dec 2022 11:25:59 -0800 (PST) Content-Language: en-US In-Reply-To: <87tu1eovz7.fsf@thornhill.no> 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:252056 Archived-At: On 29/12/2022 21:23, Theodor Thornhill wrote: > Dmitry Gutov writes: > >> On 25/12/2022 23:54, Theodor Thornhill via Bug reports for GNU Emacs, >> the Swiss army knife of text editors wrote: >>> Attached is a small adjustment to the regex used in >>> prog-fill-reindent-defun. The point is that we shouldn't consider lines >>> where comments come after actual code as inside a comment. >> >> How about we allow indentation? >> >> And allow to be called not from BOL too? >> >> (re-search-forward "\\s-*\\s<" (line-end-position) t) > > Sure! > > Will you install it for me? Sure, done. I've also refilled the commit message a little.