summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-10-25 14:34:47 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-10-25 14:34:47 +0100
commitb0a7a19d5ddef9887032fe3c2f943e6b6545f253 (patch)
tree43a4d0b1adb6d3b0a42d1d7b231e81e23a5013da /lisp/emacs-lisp
parente73e7a8bd6782b24045ea64aa9147bee5f44d65d (diff)
downloademacs-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.el2
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)