]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem when replacing the final char in checkdoc
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 25 Oct 2020 13:34:47 +0000 (14:34 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 25 Oct 2020 13:34:47 +0000 (14:34 +0100)
* lisp/emacs-lisp/checkdoc.el (checkdoc-autofix-ask-replace):
Ensure that the end-of-doc-string marker is really at the end,
even if we replace the final " char in the string (bug#44201).

lisp/emacs-lisp/checkdoc.el

index 23121c245ef2abf9256aced05ff2c1eda9d103fb..a485378a926606be3df8fbbddf9023a4fe946125 100644 (file)
@@ -2589,7 +2589,7 @@ This function will not modify `match-data'."
                    ;; going on.
                    (if checkdoc-bouncy-flag (message "%s -> done" question))
                    (delete-region start end)
-                   (insert replacewith)
+                   (insert-before-markers replacewith)
                    (if checkdoc-bouncy-flag (sit-for 0))
                    (setq ret t)))
              (delete-overlay o)