From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Is there a save-outline-visibility excursion or so? Date: Wed, 22 May 2013 11:13:08 +0200 Message-ID: <877gircr8b.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369214055 15723 80.91.229.3 (22 May 2013 09:14:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 09:14:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 22 11:14:11 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uf57b-0005NC-JS for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 11:14:11 +0200 Original-Received: from localhost ([::1]:43495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf57b-0002UG-5T for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 05:14:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf56s-0001r8-Fm for help-gnu-emacs@gnu.org; Wed, 22 May 2013 05:13:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf56n-0005PE-Fo for help-gnu-emacs@gnu.org; Wed, 22 May 2013 05:13:26 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf56n-0005NV-AR for help-gnu-emacs@gnu.org; Wed, 22 May 2013 05:13:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uf56l-0004t2-Ul for help-gnu-emacs@gnu.org; Wed, 22 May 2013 11:13:19 +0200 Original-Received: from e178191082.adsl.alicedsl.de ([85.178.191.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 11:13:19 +0200 Original-Received: from tjolitz by e178191082.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 11:13:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178191082.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:KS9z0XjdOlc/xusvRnhceQkXjIQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90974 Archived-At: Hi List, I wonder if there is something like a 'save-excursion' for outline visibility around? A kind of 'save-outline-visibility' function/macro that would enable to change visibility state of an outlined buffer, do some actions that depend on that visibility state in a program, and go back to that exact state of folded and unfolded subtrees afterwards. I'm not talking about global visibility cycling, more about something similar to what window managers do - go from one complicated visibility state to another (maybe simple) state (like show-all or hide-all), but be able to go back to that complicated state with exactly the same subtrees folded or unfolded like before. -- cheers, Thorsten