From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: BUG: org-archive-subtree LOSES DATA when run on unsaved buffer Date: Tue, 9 Apr 2019 21:18:44 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0DM5PR20MB2039namp_" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDy8y-0003HF-Fh for emacs-orgmode@gnu.org; Tue, 09 Apr 2019 17:19:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDy8x-0006ki-0Q for emacs-orgmode@gnu.org; Tue, 09 Apr 2019 17:19:00 -0400 Received: from mail-eopbgr820081.outbound.protection.outlook.com ([40.107.82.81]:7723 helo=NAM01-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDy8w-0006Xh-FK for emacs-orgmode@gnu.org; Tue, 09 Apr 2019 17:18:58 -0400 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" To: Org-mode --_000_DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0DM5PR20MB2039namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I never use org's archiving capabilities. So imaging my surprise when I accidently invoked org-archive-subtree from i= ts key-binding and I lost a whole subtree of a new buffer which (alas) I ha= d 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 ma= ke 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 --_000_DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0DM5PR20MB2039namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 b= uffer 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-subt= ree will create a symlink to a non-existent target and try to move the subt= ree there (which does not make sense) and does not check for errors or conf= irm completion. 

 

This arguably should be addressed.

 

This is emacs 26.1 running org-version 9.2.3-4<= /o:p>

 

In the mean time…

 

Still livin’ in emacs + Org,

 

~Malcolm

 

--_000_DM5PR20MB2039FF0588E543CF0D0ABDADBE2D0DM5PR20MB2039namp_--