emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dale Sedivec <dale@codefu.org>
To: emacs-orgmode@gnu.org
Subject: org-save-outline-visibility no longer saves drawer visibility
Date: Fri, 2 Feb 2018 18:16:06 -0600	[thread overview]
Message-ID: <CAEj9N4JJk-JfQdnHS57-cfTdG1j=s9W4LD3C3H+0H3rWgO4Fvg@mail.gmail.com> (raw)

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

Hi!  I think maybe there's a bug in org-save-outline-visibility, or else I
misunderstand what that macro is supposed to do.  Test case:

1. Start Emacs 26.0.91 with -Q and load org-mode from master
(release_9.1.6-419-g4b2006).

2. Make an org-mode buffer with contents:

~~~~~~
* Foo
  :PROPERTIES:
  :bar:      baz
  :END:
~~~~~~

3. Fold the PROPERTIES drawer by moving to the line with :PROPERTIES: and
hitting TAB.

4. M-: (org-save-outline-visibility t (org-show-all)) RET

Expected result: PROPERTIES drawer is still folded

Observed result: PROPERTIES drawer is no longer folded, its contents have
become visible

Should org-save-outline-visibility save the visibility of drawers along
with other visibility?

I am wondering if this is perhaps a consequence of 4403d4685e19, "Give
drawers their own invisibility spec", where the 'org-hide-drawer
invisibility spec was introduced?  As a consequence,
org-outline-overlay-data (called by org-save-outline-visibility) no longer
saves the invisible overlays for drawers, since those overlays' 'invisible
property is no longer 'outline, but instead 'org-hide-drawer.

Thanks,
Dale

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

             reply	other threads:[~2018-02-03  0:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-03  0:16 Dale Sedivec [this message]
2018-02-11 10:45 ` org-save-outline-visibility no longer saves drawer visibility Nicolas Goaziou

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='CAEj9N4JJk-JfQdnHS57-cfTdG1j=s9W4LD3C3H+0H3rWgO4Fvg@mail.gmail.com' \
    --to=dale@codefu.org \
    --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).