diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-25 14:34:47 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-25 14:34:47 +0100 |
commit | b0a7a19d5ddef9887032fe3c2f943e6b6545f253 (patch) | |
tree | 43a4d0b1adb6d3b0a42d1d7b231e81e23a5013da /lisp/emacs-lisp | |
parent | e73e7a8bd6782b24045ea64aa9147bee5f44d65d (diff) | |
download | emacs-b0a7a19d5ddef9887032fe3c2f943e6b6545f253.tar.gz emacs-b0a7a19d5ddef9887032fe3c2f943e6b6545f253.tar.bz2 emacs-b0a7a19d5ddef9887032fe3c2f943e6b6545f253.zip |
Fix problem when replacing the final char in checkdoc
* 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).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 23121c245ef..a485378a926 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -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) |