GNU bug report logs - #60322
30.0.50; [PATCH]: Search for comment at bol in prog-fill-reindent-defun

Previous Next

Package: emacs;

Reported by: Theodor Thornhill <theo <at> thornhill.no>

Date: Sun, 25 Dec 2022 21:55:02 UTC

Severity: normal

Tags: patch

Merged with 60360

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 60322 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Theodor Thornhill <theo <at> thornhill.no>, 60322 <at> debbugs.gnu.org
Subject: Re: 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
On 29/12/2022 21:23, Theodor Thornhill wrote:
> Dmitry Gutov <dgutov <at> yandex.ru> 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.





This bug report was last modified 2 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.