From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loyall, David" Subject: Re: saving state of buffer Date: Wed, 20 Mar 2013 18:57:11 +0000 Message-ID: References: <878v5inpfd.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_FCEE4469EE8B234199968ECA9B0661E208CD342FSTNEEX10MB02sto_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOCO-0006Ax-IW for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIOCJ-0002Gn-Fg for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:57:20 -0400 Received: from mx03.ne.gov ([164.119.247.103]:55161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOCJ-0002GR-43 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:57:15 -0400 In-Reply-To: Content-Language: en-US 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: 42 147 , Org Mode --_000_FCEE4469EE8B234199968ECA9B0661E208CD342FSTNEEX10MB02sto_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 42, Try this: Move the point to some headline. Press C-c C-x p v a Observe how lines, like :PROPERTIES:, were added to your headline. Press C-u C-u to simulate closing the file and reopening it. I know that this isn't exactly what you're looking for. You're looking for= org-mode to automatically track and save the folding state. I'd like that= , too. But maybe this VISIBILITY property will suffice for now. Cheers, --Dave From: emacs-orgmode-bounces+david.loyall=3Dnebraska.gov@gnu.org [mailto:ema= cs-orgmode-bounces+david.loyall=3Dnebraska.gov@gnu.org] On Behalf Of 42 147 Sent: Wednesday, March 20, 2013 13:28 PM To: Org Mode Subject: Re: [O] saving state of buffer > (require 'saveplace) > (setq-default save-place t) > works for me. It just opens the place where I had the point, nothing > more, but that's what I need most. This is more convenient than Emacs bookmarks, but still breaks org-mode to a certain extent: all non top-level headlines below point are hidden. At least for me. 2013/3/20 42 147 > Apologies on behalf of my inferior cognitive faculty, but I do not see a solution to my problem in those options (perhaps merely a means to it). Between OVERVIEW, CONTENT, SHOWALL, SHOWEVERYTHING, which =3D=3D "allow me = to save and reopen the buffer in its current configuration." >From what I can gather from limited reading comprehension, these are still general settings, i.e., ALL headlines will be opened; ALL drawers will be opened; ALL text will be exposed. What I want is to just have those things exposed that I exposed in my particular session. mit freundlichen Gr=FC=DFen, 42 2013/3/20 Bastien > Hi Fourtytwo, 42 147 > writes: > When I return to this buffer, I want all of this to be opened. (info "(Org)Visibility cycling") When Emacs first visits an Org file, the global state is set to OVERVIEW, i.e., only the top level headlines are visible. This can be configured through the variable 'org-startup-folded', or on a per-file basis by adding one of the following lines anywhere in the buffer: #+STARTUP: overview #+STARTUP: content #+STARTUP: showall #+STARTUP: showeverything The startup visibility options are ignored when the file is open for the first time during the agenda generation: if you want the agenda to honor the startup visibility, set 'org-agenda-inhibit-startup' to nil. Furthermore, any entries with a 'VISIBILITY' property (*note Properties and Columns::) will get their visibility adapted accordingly. Allowed values f= or this property are 'folded', 'children', 'content', and 'all'. 'C-u C-u ' ('org-set-startup-visibility') Switch back to the startup visibility of the buffer, i.e., whatever is requested by startup options and 'VISIBILITY' properties in individual entries. HTH, -- Bastien --_000_FCEE4469EE8B234199968ECA9B0661E208CD342FSTNEEX10MB02sto_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

42,

 <= /p>

Try this:

Move the point to some he= adline.

Press C-c C-x p v <TAB= > <ENTER> a <TAB> <ENTER>

 <= /p>

Observe how lines, like := PROPERTIES:, were added to your headline.

 <= /p>

Press C-u C-u <TAB>= to simulate closing the file and reopening it.

 <= /p>

I know that this isn̵= 7;t exactly what you’re looking for.  You’re looking for o= rg-mode to automatically track and save the folding state.  I’d = like that, too.  But maybe this VISIBILITY property will suffice for now.=

 <= /p>

Cheers,=

--Dave<= /p>

 <= /p>

From: emacs-or= gmode-bounces+david.loyall=3Dnebraska.gov@gnu.org [mailto:emacs-orgmode= -bounces+david.loyall=3Dnebraska.gov@gnu.org] On Behalf Of 42 147
Sent: Wednesday, March 20, 2013 13:28 PM
To: Org Mode
Subject: Re: [O] saving state of buffer

 

> (require 'saveplace)
> (setq-default save-place t)
 
> works for me. It just opens the place where I had the point, noth=
ing 
> more, but that's what I need most.

This is more convenient= than Emacs bookmarks, but still breaks org-mode to
a certain extent: al= l non top-level headlines below point are hidden. At
least for me.

2013/3/20 42 147 <aeuster@gmail.com>

Apologies on behalf of my inferior cognitive faculty= , but I do not see a
solution to my problem in those options (perhaps merely a means to it).

Between OVERVIEW, CONTENT, SHOWALL, SHOWEVERYTHING, which =3D=3D "allo= w me to
save and reopen the buffer in its current configuration."

>From what I can gather from limited reading comprehension, these are still<= br> general settings, i.e., ALL headlines will be opened; ALL drawers will be opened; ALL text will be exposed.

What I want is to just have those things exposed that I exposed in my
particular session.

mit freundlichen Gr=FC=DFen,

42

 

2013/3/20 Bastien <bzg@altern.org>

Hi Fourtytwo,

42 147 <aeuster@g= mail.com> writes:

> When I return to this buffer, I want all of this to be opened.

(info "(Org)Visibility cycling")

   When Emacs first visits an Org file, the global state is set t= o
OVERVIEW, i.e., only the top level headlines are visible.  This can be=
configured through the variable 'org-startup-folded', or on a per-file
basis by adding one of the following lines anywhere in the buffer:

     #+STARTUP: overview
     #+STARTUP: content
     #+STARTUP: showall
     #+STARTUP: showeverything

   The startup visibility options are ignored when the file is op= en for
the first time during the agenda generation: if you want the agenda to
honor the startup visibility, set 'org-agenda-inhibit-startup' to nil.

Furthermore, any entries with a 'VISIBILITY' property (*note Properties and=
Columns::) will get their visibility adapted accordingly.  Allowed val= ues for
this property are 'folded', 'children', 'content', and 'all'.  'C-u C-= u
<TAB>' ('org-set-startup-visibility')
     Switch back to the startup visibility of the buffer, i.= e., whatever is
     requested by startup options and 'VISIBILITY' propertie= s in individual
     entries.

HTH,

--
 Bastien

 

 

--_000_FCEE4469EE8B234199968ECA9B0661E208CD342FSTNEEX10MB02sto_--