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: Re: Is there a save-outline-visibility excursion or so? Date: Wed, 22 May 2013 15:41:03 +0200 Message-ID: <87li77jfo0.fsf@gmail.com> References: <877gircr8b.fsf@gmail.com> <87sj1ffk53.fsf@gmail.com> <87y5b7b9c1.fsf@gmail.com> <87txlvyyrn.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369230149 32581 80.91.229.3 (22 May 2013 13:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 13:42:29 +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 15:42:28 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 1Uf9JD-0002xA-OU for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 15:42:27 +0200 Original-Received: from localhost ([::1]:46950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9JD-0006sM-BV for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 09:42:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9IB-0005M6-KW for help-gnu-emacs@gnu.org; Wed, 22 May 2013 09:41:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf9IA-000823-GI for help-gnu-emacs@gnu.org; Wed, 22 May 2013 09:41:23 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9IA-00081q-AU for help-gnu-emacs@gnu.org; Wed, 22 May 2013 09:41:22 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uf9I7-0002Ds-L6 for help-gnu-emacs@gnu.org; Wed, 22 May 2013 15:41: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 15:41: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 15:41:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 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:NwO8AbCG3Pam2NSF0UZRUpO48xE= 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:90980 Archived-At: Jambunathan K writes: > Thorsten Jolitz writes: > >> Jambunathan K writes: > ---------------------------------------------------------------- > > You may find it easier to work with `make-indirect-buffer' and > `clone-indirect-buffer' (See Elisp manual). > > (I think) In the first case, the indirect buffer starts with no > overlays. In the second case, the indirect buffer starts with same > *overlay values* as the first one. > > You can see that any visibility operation on the indirect buffer doesn't > affect the visibility of the original buffer. > > ---------------------------------------------------------------- Thanks for the tip, indirect buffers are exactly what I needed for editing partly folded outshine buffers without changing visibility or point-position. I reimplemented the relevant outshine function and now it works as expected. -- cheers, Thorsten