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#60322: 30.0.50; [PATCH]: Search for comment at bol in prog-fill-reindent-defun Date: Thu, 29 Dec 2022 11:02:35 +0200 Message-ID: <83k02a8tw4.fsf@gnu.org> References: <87r0wn87yz.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60322@debbugs.gnu.org To: Theodor Thornhill , Dmitry Gutov , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 10:03:24 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 1pAoot-0003Sq-NL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 10:03:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAooa-0003wI-IH; Thu, 29 Dec 2022 04:03: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 1pAooZ-0003vx-7f for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 04:03: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 1pAooY-0002UY-Nx for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 04:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAooY-0002br-IW for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 04:03: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: Thu, 29 Dec 2022 09:03: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.16723045549990 (code B ref 60322); Thu, 29 Dec 2022 09:03:02 +0000 Original-Received: (at 60322) by debbugs.gnu.org; 29 Dec 2022 09:02:34 +0000 Original-Received: from localhost ([127.0.0.1]:59235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAoo6-0002b4-2q for submit@debbugs.gnu.org; Thu, 29 Dec 2022 04:02:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAoo3-0002an-1T for 60322@debbugs.gnu.org; Thu, 29 Dec 2022 04:02:32 -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 1pAonx-0002Qa-GA; Thu, 29 Dec 2022 04:02:25 -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=L9EUGVyVhOwXp64126YXbw55js9tH4HSm1X49CYcvQ0=; b=a0JW/+tSV622 +hDxhWY7Lyh3TBOPyuhlVSIdDKXIwBOkoUw0E7VDPelNHZQpi5DPCFsbaHTb8cI8AnTgYx6cZIn41 LK9aWFuKCbSXv2hNXiqIUMZsZrgKk26DaVF9AgDZ9Fr+eF00pVtN2smBYk9Zg9hDuhGfAtXk83l/V l9bOqsuMBcXPpzD0jxUt3sT4mfDP08XBi50uiAPL7wc8DAaqHHexhRTY9MasbzJRKTWYQ4yIseaR5 drqpHLdvSxaQxAPXJyaRcKFh1qlV6oIBi0b753qdCi3VPufnKlWHGhyJPkmdsJsnOtGZBcKg0R1Q/ /FrVFRhsNsG/yAllzMd6MA==; 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 1pAonw-0000zU-M9; Thu, 29 Dec 2022 04:02:25 -0500 In-Reply-To: <87r0wn87yz.fsf@thornhill.no> (bug-gnu-emacs@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:252018 Archived-At: > Date: Sun, 25 Dec 2022 22:54:44 +0100 > From: Theodor Thornhill via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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. Dmitry, Yuan, any comments?