emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* if we operate on a subtree, perhaps we could adjust levels
@ 2014-03-27  3:44 Samuel Wales
  2014-04-11  9:07 ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2014-03-27  3:44 UTC (permalink / raw)
  To: emacs-orgmode

in maint, if you encrypt with org-crypt on an entry with children, then
demote, then decrypt, the subtree levels do not match up.
for example, the children can end up as uncle/aunt nodes.

maybe something like these are possibilities:

  1) optionally adjust subtree levels to match the location
     of the header at time of decryption.  this is similar
     to how org-yank behaves.  it would have to re-encrypt
     if you encrypt, demote, decrypt, encrypt.

  2) optionally put the subtree in an org source block so
     that it is no longer an active subtree (can't search
     headlines in agenda, they are not where they belong, can't export
as part of parent, have to edit with c-c ')

  3) restrict the function to only operate on body text
     (can't do subtrees).

  4) status quo (allow outline corruption at user's risk).

  5) a combination.

maybe there are more possibilities.

comments?

samuel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-07-29 21:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27  3:44 if we operate on a subtree, perhaps we could adjust levels Samuel Wales
2014-04-11  9:07 ` Bastien
2014-04-17  9:43   ` Samuel Wales
2014-04-17 10:12     ` Bastien
2014-06-09  4:54       ` Samuel Wales
2014-06-09  5:54         ` Achim Gratz
2014-07-28 15:05           ` Bastien
2014-07-28 19:08             ` Samuel Wales
2014-07-29 14:30               ` Bastien
2014-07-29 16:03             ` Achim Gratz
2014-07-29 21:32               ` Bastien

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