From mboxrd@z Thu Jan 1 00:00:00 1970 From: Milan Zamazal Subject: org-save-outline-visibility and isearch Date: Thu, 27 Oct 2011 13:14:58 +0200 Message-ID: <87ipna7kjx.fsf@blackbird.nest.zamazal.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNvZ-0005uS-Dm for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 07:15:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJNvY-00033b-Il for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 07:15:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:47664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNvX-000338-RF for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 07:15:16 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJNvT-0004f3-8J for emacs-orgmode@gnu.org; Thu, 27 Oct 2011 13:15:11 +0200 Received: from ip51.strelice.net ([217.66.176.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 13:15:11 +0200 Received: from pdm by ip51.strelice.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 13:15:11 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org After using org-save-outline-visibility the invisible parts of the buffer become invisible to isearch. I have to do something like calling org-global-cycle to restore the buffer to its original state and allow searching in its invisible parts again. The problem seems to be in the functions org-outline-overlay-data and org-set-outline-overlay-data. They save and restore just `invisible' overlays. They should do the same with `isearch-open-invisible' overlays. Or perhaps org-set-outline-overlay-data could simply use outline-flag-region? What do you think?