GNU bug report logs -
#26328
26.0.50; checkdoc action for join lines drops final "
Previous Next
Reported by: Marco Wahl <marcowahlsoft <at> gmail.com>
Date: Sat, 1 Apr 2017 08:53:01 UTC
Severity: normal
Tags: confirmed, fixed, patch
Found in version 26.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #37 received at 26328 <at> debbugs.gnu.org (full text, mbox):
Alex Branham <alex.branham <at> gmail.com> writes:
> On Thu 15 Aug 2019 at 20:11, Noam Postavsky <npostavs <at> gmail.com> wrote:
>
>> Note that the checkdoc-autofix-ask-replace is already replacing the
>> newline with a space (which is kind of a strange behaviour, IMO, but
>> that's how it is currently), so I'm not sure it makes much sense to call
>> delete-indentation after.
>
> Ah, indeed. Starting with this buffer:
>
> (defun foo ()
> "bla bla
> bla."
> )
>
> (defun foo ()
> "Bla bla
> bla bla. More words
> bla bla bla.")
>
> If we just remove the call to delete-indentation we wind up with:
>
> (defun foo ()
> "Bla bla bla."
> )
>
> (defun foo ()
> "Bla bla bla bla.
> More words bla bla bla.")
>
> So perhaps the we just remove that bit? Updated patch attached.
> + (when (checkdoc-autofix-ask-replace
> + p (1+ p)
> + "1st line not a complete sentence. Join these lines? "
> + " " t)
> + (setq msg nil)))))
This is like Lars' suggestion, and using this I get
(defun foo ()
"Bla bla bla bla. More words
bla bla bla.")
for the second case which is incorrect, I think.
This bug report was last modified 5 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.