From mboxrd@z Thu Jan 1 00:00:00 1970 From: No Wayman Subject: Bug: org-archive-subtree-save-file-p results in data loss [9.3.6 (release_9.3.6-432-g73bd24 @ /home/n/.emacs.d/straight/build/org/)] Date: Tue, 31 Mar 2020 17:53:38 -0400 Message-ID: <877dz0nqce.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60263) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJOpM-0002px-Fr for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 17:53:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJOpK-0005tT-5u for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 17:53:43 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:37881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJOpI-0005nQ-3d for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 17:53:40 -0400 Received: by mail-qv1-xf30.google.com with SMTP id n1so11764625qvz.4 for ; Tue, 31 Mar 2020 14:53:39 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id b7sm171860qkc.61.2020.03.31.14.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 14:53:38 -0700 (PDT) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org I'm bumping this because it's bitten me several times. The default value of 'from-org is not covered in the saving logic in org-archive-subtree: https://lists.gnu.org/archive/html/emacs-orgmode/2020-03/msg00009.html I keep notes in Org for development projects. Archiving removes the node from the original file, but does not modify the archive file. Unless I remember about this bug or have patched it on that machine, the data is missed in the commit until I do notice it. I've also had a crash or two where the archive file was not saved because of this.