projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73e7a8
)
Fix problem when replacing the final char in checkdoc
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 25 Oct 2020 13:34:47 +0000
(14:34 +0100)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/checkdoc.el
b/lisp/emacs-lisp/checkdoc.el
index 23121c245ef2abf9256aced05ff2c1eda9d103fb..a485378a926606be3df8fbbddf9023a4fe946125 100644
(file)
--- 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)