|
From: | Dmitry Gutov |
Subject: | bug#60322: 30.0.50; [PATCH]: Search for comment at bol in prog-fill-reindent-defun |
Date: | Thu, 29 Dec 2022 18:04:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
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)
[Prev in Thread] | Current Thread | [Next in Thread] |