From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Do not save target buffer after archiving subtree Date: Sun, 26 Nov 2017 10:52:48 +0100 Message-ID: <87a7z9tlhr.fsf@nicolasgoaziou.fr> References: <87d145elkn.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eItcK-0005dU-0m for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:52:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eItcJ-00057k-6l for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:52:52 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:51555) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eItcI-00057I-OS for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:52:51 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 04519A80C0 for ; Sun, 26 Nov 2017 10:52:48 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eItcG-0000YN-DZ for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 10:52:48 +0100 In-Reply-To: <87d145elkn.fsf@fastmail.fm> (Matt Lundin's message of "Sat, 25 Nov 2017 22:00:08 -0600") 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 Hello, Matt Lundin writes: > The attached patch removes the call to save-buffer in > org-archive-subtree. This significantly reduces the time necessary to > archive a subtree, especially when archiving many subtrees in a region. > Without this patch, Org Mode will save the archive buffer after each > subtree is archived. If one were archiving a region of 50 trees, this > would result in 50 writes to disk in quick succession. This patch makes > the behavior of org-archive-subtree match that of org-refile, which does > not save the target buffer after a refile. Good catch. Applied. Thank you. Regards, -- Nicolas Goaziou