emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Cook, Malcolm" <MEC@stowers.org>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: BUG: org-archive-subtree LOSES DATA when run on unsaved buffer
Date: Tue, 9 Apr 2019 21:18:44 +0000	[thread overview]
Message-ID: <DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0@DM5PR20MB2039.namprd20.prod.outlook.com> (raw)

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

Hi,

I never use org's archiving capabilities.

So imaging my surprise when I accidently invoked org-archive-subtree from its key-binding and I lost a whole subtree of a new buffer which (alas) I had not yet saved to disk

Further alas, I was so alarmed not knowing where my content disappeared to that I did not think to try the obvious - undo.

What happens?  It appears that org-archive-subtree will create a symlink to a non-existent target and try to move the subtree there (which does not make sense) and does not check for errors or confirm completion.

This arguably should be addressed.

This is emacs 26.1 running org-version 9.2.3-4

In the mean time...

Still livin' in emacs + Org,

~Malcolm


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

             reply	other threads:[~2019-04-09 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09 21:18 Cook, Malcolm [this message]
2019-04-10 13:37 ` BUG: org-archive-subtree LOSES DATA when run on unsaved buffer 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=DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0@DM5PR20MB2039.namprd20.prod.outlook.com \
    --to=mec@stowers.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).