aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-03-21 14:21:24 -0400
committerStefan Monnier2012-03-21 14:21:24 -0400
commit3d008e4f23fbb9ff7a3308eba745ab8d3a5e9698 (patch)
tree00d46bca8ffb436aed4382cc8980fdc51f1942ff
parentaf67c9d7cd1a44d1e7f168707486407d845ee357 (diff)
downloademacs-3d008e4f23fbb9ff7a3308eba745ab8d3a5e9698.tar.gz
emacs-3d008e4f23fbb9ff7a3308eba745ab8d3a5e9698.zip
* lisp/outline.el (outline-flag-region): Evaporate overlays.
Fixes: debbugs:10789
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/outline.el1
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4cedbe5f9a6..14d3859f392 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12012-03-21 Stefan Monnier <monnier@iro.umontreal.ca> 12012-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * outline.el (outline-flag-region): Evaporate overlays (bug#10789).
4
3 * progmodes/etags.el (tags-completion-at-point-function): 5 * progmodes/etags.el (tags-completion-at-point-function):
4 Improve last fix. 6 Improve last fix.
5 7
diff --git a/lisp/outline.el b/lisp/outline.el
index 15af855ff43..da5519f95eb 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -751,6 +751,7 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden."
751 ;; very end of the heading, before the newline, so text inserted at FROM 751 ;; very end of the heading, before the newline, so text inserted at FROM
752 ;; belongs to the heading rather than to the entry. 752 ;; belongs to the heading rather than to the entry.
753 (let ((o (make-overlay from to nil 'front-advance))) 753 (let ((o (make-overlay from to nil 'front-advance)))
754 (overlay-put o 'evaporate t)
754 (overlay-put o 'invisible 'outline) 755 (overlay-put o 'invisible 'outline)
755 (overlay-put o 'isearch-open-invisible 756 (overlay-put o 'isearch-open-invisible
756 (or outline-isearch-open-invisible-function 757 (or outline-isearch-open-invisible-function