Commit 454eb095 authored by Chong Yidong's avatar Chong Yidong

* subr.el (text-clone-maintain): Fix clone overlay deletion

when a syntax is specified.

Fixes: debbugs:13025
parent 75498db0
2012-12-07 Chong Yidong <cyd@gnu.org>
* subr.el (text-clone-maintain): Fix clone overlay deletion when a
syntax is specified (Bug#13025).
* info.el (Info-set-mode-line): Remove the file extension from
Info-current-file if there is one (Bug#13016).
......
......@@ -3847,7 +3847,7 @@ This is used on the `modification-hooks' property of text clones."
(if (not (re-search-forward
(overlay-get ol1 'text-clone-syntax) cend t))
;; Mark the overlay for deletion.
(overlay-put ol1 'text-clones nil)
(setq end cbeg)
(when (< (match-end 0) cend)
;; Shrink the clone at its end.
(setq end (min end (match-end 0)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment