emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Create visibility overlays properly
Date: Mon, 31 Oct 2011 22:40:28 +0100	[thread overview]
Message-ID: <87sjm8262b.fsf@blackbird.nest.zamazal.org> (raw)
In-Reply-To: 87ipna7kjx.fsf@blackbird.nest.zamazal.org

* org.el (org-set-outline-overlay-data): Use outline-flag-region to make a
region invisible.  This ensures all necessary actions, especially adding
isearch-open-invisible property, are applied.
 lisp/org.el |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index a75f96e..c4196e8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6599,8 +6599,7 @@ DATA should have been made by `org-outline-overlay-data'."
 	(mapc (lambda (c)
-		(setq o (make-overlay (car c) (cdr c)))
-		(overlay-put o 'invisible 'outline))
+		(outline-flag-region (car c) (cdr c) t))
 ;;; Folding of blocks

  reply	other threads:[~2011-10-31 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 11:14 org-save-outline-visibility and isearch Milan Zamazal
2011-10-31 21:40 ` Milan Zamazal [this message]
2011-11-12 10:56   ` [PATCH] Create visibility overlays properly Milan Zamazal
2011-11-12 11:06     ` Bastien
2011-11-15 17:41     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjm8262b.fsf@blackbird.nest.zamazal.org \
    --to=pdm@zamazal.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).