From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2NJUACXcf2D+TwEAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 10:02:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8K6wNyTcf2AkBAAAB5/wlQ (envelope-from ) for ; Wed, 21 Apr 2021 08:02:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6A227F3B4 for ; Wed, 21 Apr 2021 10:02:44 +0200 (CEST) Received: from localhost ([::1]:33286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ7oo-0007rx-58 for larch@yhetil.org; Wed, 21 Apr 2021 04:02:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ7oK-0007rk-6c for emacs-orgmode@gnu.org; Wed, 21 Apr 2021 04:02:12 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:41658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ7oI-00005p-Ch for emacs-orgmode@gnu.org; Wed, 21 Apr 2021 04:02:11 -0400 Received: by mail-pl1-x635.google.com with SMTP id e2so16872995plh.8 for ; Wed, 21 Apr 2021 01:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version:content-transfer-encoding; bh=XAq7QFdRtHtmY7ZGik59FVISE+UtFazvOP6qa2h0MD4=; b=cFsFab9IhtvJpRXY7iZyDh5cPg0J02W4pocECYWLvfdYgVPdUmIi01zU1hZz6Iwts2 usFUTqcmDrhs0rPV9K4R2xOp4HP9HY+7TkDIyXbWhxX62+7iI6Qiln6/xI5R0rOVylXl I/yZmDXmd7FGoI+GOLQYiiNU4jGdfVKnW8CToBlKRP03oGsuOtsbgNxTt5iwB31lKEVz u8sFjI5+vcIr2m9O1I/zluGzmnAe11tl0PdI1rBIlWxS34K2SiQ0fQd1tDFXN6JPgpgF X0fvYKnNa+0d9jsPLO9o98V42UOdFPWbErPk9ktdOKqkR4gF9khWxWxK985iksnekKYC F85w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=XAq7QFdRtHtmY7ZGik59FVISE+UtFazvOP6qa2h0MD4=; b=GO93NDSqVEheYGZgjwq1TqZk8w+jz/Y7AhI6tv/ljqv5wnXUrCmhQDsnd03ynVmncz KoB+5LkB5HTK4GOFN0Xj83R17g1JeoD3sBw7pfs4AGItAcyjn2dT1asJK4X3mPOqOJw4 eDQ5+8z59WZHYZD11khKT+mAjtthdYbNPprl6bx61d3mYZgsc6twCvu1UbxDDruKilbX VB/dI73oepZxkhnvA0vLaVT03kKNsyU8JS1/E+8Zt0/9DgJ44K7kGbHC+6eVt5ys8yZO SuReyedcKJancGwes7Z/p1n492Sc4xHM/3+SGhPwysBZhHhvGae67n4Xjv1EsY+UNvvP gjqw== X-Gm-Message-State: AOAM530vYerZqBgObqecpTBv/Q2bG3LvzyqXQYrthskPgUO3KBIH4JqJ 4vZCdvc2Wd5aq1cPgU7SYHU= X-Google-Smtp-Source: ABdhPJxMNj2XSOqGOVvFlaUQ0YpD/HmcrrORaGA5Ygsp/4sZdXXJo2bCDojgt2s28x0foBbWVxQN/A== X-Received: by 2002:a17:902:ce90:b029:eb:a5fa:3ace with SMTP id f16-20020a170902ce90b02900eba5fa3acemr29521269plg.43.1618992127660; Wed, 21 Apr 2021 01:02:07 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id kk9sm1314415pjb.23.2021.04.21.01.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 01:02:07 -0700 (PDT) References: <57480e77-024a-adcc-ec9a-c20b84ac762a@posteo.eu> <9dfb44d3-0c4a-6a66-0efa-c70e9434ee5e@posteo.eu> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: sebastien.miquel@posteo.eu Subject: Re: [PATCH] ob-tangle.el: Speed up tangling In-reply-to: <9dfb44d3-0c4a-6a66-0efa-c70e9434ee5e@posteo.eu> Message-ID: <87o8e883r8.fsf@gmail.com> Date: Wed, 21 Apr 2021 16:02:03 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Gillespie , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618992164; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XAq7QFdRtHtmY7ZGik59FVISE+UtFazvOP6qa2h0MD4=; b=OwIX9F8bbAfIVoeE2O5NCxPc0ytvFgsnH6xA8J4MH0W15It7YjQMBOtBuuU6wCAkF66smc qJWEjmlUVU85MPL6MjFufoEdqRHWR7hzMQmzzereGvSRZ8007HpYIyZQZ+gMGmQub8zRnB WyImS1wELnJOG08HkBsJaprqLa+JneF4XOFiDowfJvf27MPGd/mYFUMiyEQnCSwFD9IwKH lIySdeXnGn06V71ooTrkIFdUeIUYr5aispJzYa7EfjIW8FQZfobrFLYjdJWnMl0ZyTcsdG V4J3Er4Bg4eY0d8bUC0kzTvUyUJ8O5SN8JMhUx0gkStdQFQPye5E+LkLMKFnmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618992164; a=rsa-sha256; cv=none; b=SmlaghTigz3Kr88N+cWdRuQqZfXMHS1vAhb46v1MiySNWAhDu7DdxD9oOPgNr8zjaVBxlN ne2nxmRfRK/3v9O52o7NON84YmUOdsrVp1va0SLn2wMyQ+UGy14pKSaWvWK/Jx+cQQ7OXz pP8w6ATnDybQAW5MNdIoN6grqvze4f86z9/bn5Oe/DuqC9ujLAbVByOtjGWEkoIrvMYOdA SCj7GUahKCEtS7cUE3cpn7SypxXNbAn+sdpe+NYAMGc6Ck1Z6eRTc4xWflvGAK5I3oAcOK GPeDJXv8ZJ+CPM3ltMh8pkO0QoJVHNzHOtdFszRuf3Cj0ap75rdc/PdWEOctXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=cFsFab9I; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=cFsFab9I; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6A227F3B4 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: nquYeCK7j+FL S=C3=A9bastien Miquel writes: > On second thought, I'm uneasy about my approach. If tangling fails, > the user might miss the error message since it is quickly replaced by > the tangling info. Ideally we should backup all the tangled files and > restore them all if a single one fails to ensure we're back to a > consistent state. > > I'm unsure what would be best practices here. In case of a remote > tangled files, I don't know if temporary files should be remote or > not, and what guarantees do emacs primitives such as ~rename-file~ > offer. Just 2c from me on how I'd like this to work as a user, when tangling fails: + Every file that could be tangled is tangled, or there's a variable which controls what to do on an error + Loud message at the end that lists all files which files failed to tangle -- Timothy