emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loyall, David" <david.loyall@nebraska.gov>
To: 42 147 <aeuster@gmail.com>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: saving state of buffer
Date: Wed, 20 Mar 2013 18:57:11 +0000	[thread overview]
Message-ID: <FCEE4469EE8B234199968ECA9B0661E208CD342F@STNEEX10MB02.stone.ne.gov> (raw)
In-Reply-To: <CAMgvimGwhnSNhRSoPrrNUVqDmTGjxutf7uzGejmnE4GtAeEXyw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3058 bytes --]

42,

Try this:
Move the point to some headline.
Press C-c C-x p v <TAB> <ENTER> a <TAB> <ENTER>

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

Press C-u C-u <TAB> 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=nebraska.gov@gnu.org [mailto:emacs-orgmode-bounces+david.loyall=nebraska.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 <aeuster@gmail.com<mailto: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 == "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üßen,

42

2013/3/20 Bastien <bzg@altern.org<mailto:bzg@altern.org>>
Hi Fourtytwo,

42 147 <aeuster@gmail.com<mailto:aeuster@gmail.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 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 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' properties in individual
     entries.

HTH,

--
 Bastien



[-- Attachment #2: Type: text/html, Size: 8641 bytes --]

  reply	other threads:[~2013-03-20 18:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 11:19 saving state of buffer 42 147
2013-03-20 13:49 ` Bastien
2013-03-20 17:00   ` 42 147
2013-03-20 17:09     ` Christoph
2013-03-20 18:28     ` 42 147
2013-03-20 18:57       ` Loyall, David [this message]
2013-03-21  6:58       ` Carsten Dominik
2013-03-21  7:14         ` Marcin Borkowski
2013-03-21  9:05         ` 42 147
2013-03-21  9:23           ` Rainer M Krug
2013-03-21  9:28             ` Carsten Dominik
2013-03-21  9:42               ` Rainer M Krug
2013-03-21 10:16                 ` 42 147
2013-03-21 11:02                   ` Carsten Dominik
2013-03-21 11:25                     ` Rainer M Krug
2013-03-21 11:38                       ` Carsten Dominik
2013-03-21 11:59                         ` Rainer M Krug
2013-03-21 13:50                           ` Carsten Dominik
2013-04-06  1:03                             ` Bastien
2013-03-21 16:10                   ` Thomas S. Dye
2013-03-22 16:36                     ` 42 147
2013-03-22 21:30                       ` Thomas S. Dye
2013-03-22 22:24                         ` 42 147
2013-03-21  9:47           ` Carsten Dominik

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=FCEE4469EE8B234199968ECA9B0661E208CD342F@STNEEX10MB02.stone.ne.gov \
    --to=david.loyall@nebraska.gov \
    --cc=aeuster@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).