From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: BUG: org-archive-subtree LOSES DATA when run on unsaved buffer Date: Wed, 10 Apr 2019 15:37:48 +0200 Message-ID: <877ec256c3.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEDQH-0005ib-Ev for emacs-orgmode@gnu.org; Wed, 10 Apr 2019 09:37:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEDQG-0001Uq-EN for emacs-orgmode@gnu.org; Wed, 10 Apr 2019 09:37:53 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38285) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEDQG-0001Tw-3q for emacs-orgmode@gnu.org; Wed, 10 Apr 2019 09:37:52 -0400 In-Reply-To: (Malcolm Cook's message of "Tue, 9 Apr 2019 21:18:44 +0000") 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: "Cook, Malcolm" Cc: Org-mode Hello, "Cook, Malcolm" writes: > 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. I do not understand your report. Is it about subtree archiving not asking for confirmation? I don't understand the symlink part either. There is no "symlink" occurrence in "org-archive.el". Regards, -- Nicolas Goaziou