]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/outline.el (outline-flag-region): Evaporate overlays.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 21 Mar 2012 18:21:24 +0000 (14:21 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 21 Mar 2012 18:21:24 +0000 (14:21 -0400)
Fixes: debbugs:10789
lisp/ChangeLog
lisp/outline.el

index 4cedbe5f9a67c0e8e17dcc0071f4e6fb331db8a5..14d3859f392f62e61e17445e8b6bf1f14fd47d38 100644 (file)
@@ -1,5 +1,7 @@
 2012-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * outline.el (outline-flag-region): Evaporate overlays (bug#10789).
+
        * progmodes/etags.el (tags-completion-at-point-function):
        Improve last fix.
 
index 15af855ff43cda615f3634242b59d554055d61a8..da5519f95eb4debdc6a9e9294862d44282bf969f 100644 (file)
@@ -751,6 +751,7 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden."
     ;; very end of the heading, before the newline, so text inserted at FROM
     ;; belongs to the heading rather than to the entry.
     (let ((o (make-overlay from to nil 'front-advance)))
+      (overlay-put o 'evaporate t)
       (overlay-put o 'invisible 'outline)
       (overlay-put o 'isearch-open-invisible
                   (or outline-isearch-open-invisible-function