bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26328: 26.0.50; checkdoc action for join lines drops final "


From: Noam Postavsky
Subject: bug#26328: 26.0.50; checkdoc action for join lines drops final "
Date: Thu, 15 Aug 2019 20:11:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)

Alex Branham <alex.branham@gmail.com> writes:

> How about we just use delete-indentation along with the
> already-calculate position p that we just asked the user about? Patch
> attached.

> +                (when (checkdoc-autofix-ask-replace
> +                       p (1+ p)
> +                       "1st line not a complete sentence.  Join these lines? 
> "
> +                       " " t)
> +                  ;; They said yes.  We have more fill work to do...
> +                  (delete-indentation nil p (1+ p))
> +                  (setq msg nil)))))

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]