[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: |
Lars Ingebrigtsen |
Subject: |
bug#26328: 26.0.50; checkdoc action for join lines drops final " |
Date: |
Thu, 15 Aug 2019 16:18:30 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Alex Branham <alex.branham@gmail.com> writes:
>>> AFAICT, both proposed patches will do the wrong thing for this case:
>>>
>>> (defun foo ()
>>> "Bla bla
>>> bla bla. More words
>>> bla bla bla.")
[...]
> + (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)))))
This looks like the right thing for the original use case, but will it
fix the example above?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no