From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4HALJoikkWB1MgAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 21:46:16 +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 UAumIYikkWCQBwAAB5/wlQ (envelope-from ) for ; Tue, 04 May 2021 19:46:16 +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 02A9E1A30F for ; Tue, 4 May 2021 21:46:14 +0200 (CEST) Received: from localhost ([::1]:36996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le0zk-0008Mv-Cb for larch@yhetil.org; Tue, 04 May 2021 15:46:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0ys-0008Mh-SV for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:45:18 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:37846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1le0yr-00005k-9E for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:45:18 -0400 Received: by mail-qk1-x72a.google.com with SMTP id i67so6707278qkc.4 for ; Tue, 04 May 2021 12:45:16 -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:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=SOpbEuKPPwSaT+dzAgsgWjh0LAV/I2irkAGpTOmFU48=; b=nBvUVyq6Fmk1sX6SDVirQ2CThPLiXUHb5V6FciDbKrf3hW3flvQ0EJEUasE0LH9Yqg DCk48HSZyIHq/KWSxjyoeotrfOr881oT7xPYSg5BScwA0RdopBzpm9Q5DKfeUKZM2B/C NILXWjf5MjOPwFemyIzeHbtzPiG2WnsW4YoaId9NDViDI0zBG9H+gZq3ObQZSGCahk2N +FiMudmUTKMREB4cFPXY1wIq1zoOCoFpf4ey4ILwRFc16pdjo+0DZlggPS4DcFjBuWD2 4MNqYk7Tq3OWtP+w4RKcCCpb0WC4poZtDH92YDzWU3wQFDrYbU6VoFRFkstru2egKMHG H0XA== 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:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=SOpbEuKPPwSaT+dzAgsgWjh0LAV/I2irkAGpTOmFU48=; b=aWGhBi2SJHA61Mk41j3PifOg130lUDi/zyfvfTfkpLjsOEWsz+iD3Y6pSrF0Knn/Mg 8oKaEzvfamxqy6Aq6bbzy1dNJuR+uJsXSmgi6S4M1B28Qnkx+DC8+6OsEHFwp4rVdjxP 41vXZ69ZSzj5jsFGwN3oGp33cQgMO3b9lrSxPwecB9elwkpsjVfB6B6J8OU5CFRFNaCF 5H3GFpNWWq37/cWOtRt/+NXG+f1SdW/d9idhYPb2HowlJa3AWWOFwc3hmRj+3rKWILON Y4mYLr57JSbaaFpcsnzUk3rkEMMH4drcmO8cwO2lCINq60E1fDPZfCUn9lTw7osRwzww jqww== X-Gm-Message-State: AOAM533STiTuge9vk/FMVb46AnC4SxLWwTElsUpGZFTQmXzw9XX4HG6Y 2JBW1o0/aZcKVgXrFxMTOXHm+DcRvYw= X-Google-Smtp-Source: ABdhPJxAi6/zwW/G5cazRtxWk3HijM/+jWI3Bo6b3MkYV9w199gmjvM/Fi4JhXz4nSvZPsR/lwtJig== X-Received: by 2002:a05:620a:2282:: with SMTP id o2mr22120182qkh.479.1620157515968; Tue, 04 May 2021 12:45:15 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id z18sm6385279qki.55.2021.05.04.12.45.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 12:45:15 -0700 (PDT) References: <875yzy73k0.fsf@gmail.com> <1e5a447a-2453-09da-fa51-379c9187b210@posteo.eu> User-agent: mu4e 1.5.13; emacs 28.0.50 From: No Wayman To: sebastien.miquel@posteo.eu Subject: Re: Bug: org-babel-tangle: persmission denied when tangling [9.4.5 (9.4.5-gbc2659 @ /home/n/.emacs.d/straight/build/org/)] Date: Tue, 04 May 2021 15:33:10 -0400 In-reply-to: <1e5a447a-2453-09da-fa51-379c9187b210@posteo.eu> Message-ID: <8735v2706t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x72a.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: 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=1620157574; 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=SOpbEuKPPwSaT+dzAgsgWjh0LAV/I2irkAGpTOmFU48=; b=eov/xxrDsZRtPlFxhOXftJl/F/Z8sEcao+M+PgVQN7R0hnEvMiePHvLwnE0cJitSPEd3yH 6afW8RwyUPv+eubPmBNrWj4+Zqt8QR7q4ijUFlaa/yZq16TYZuCRd7WzwcShVh/3Lu0FV+ J47FEO7sLdkWjApOM1pOYgoybbf7e1492wMeQQBwO+Y6J2XL/U0nqtfFiHFGkiIl+Nas4y q5FfCZ+ijpeRr+PTypq91qYiqRCeaVrhDfSKuIXO6IViI5dj+w95v0OWk6R5srN81Mz2Pv wyG5uApjnTa7TT8KMxcmD0VhvJnSawddJlAM7F9TSMHUDI53GJP37uuReC86Sg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620157574; a=rsa-sha256; cv=none; b=MqQay7MaMKGn0zkvSbaMraG9CwWM/PjEisvZANOO29tKgJxILg1UuXgJHyFidxTtulx9zz a87QVqPqF54TxpzPdm+ORni7KPV6jR7RFgg7oYbZdjy5ykojqjgvxEhnjBEpOj4b3szl+T BEDoACRGoRsx3/TycmmVs+5BlzPUI8D6TZrQjQQiWqFpwYRfuN9FlKSCww9/Vz1FIBQhPw S+3eDnmWs87HXzJPBl4aps8CUuL6wx0M8diiIfjfY+/IRDENdw7r5iyBHSTbvXUmO1z4h0 cjvQifBpIJwr0gwPIYFilk/BBwB6M5v2h26Y6U51hFOQ/HcaTTaCZ4bBcyRZKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nBvUVyq6; 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: -0.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nBvUVyq6; 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: 02A9E1A30F X-Spam-Score: -0.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: sQSiXOUt44xu S=C3=A9bastien Miquel writes: > Hi, > > No Wayman writes: >> I'm tangling my early-init/init.el with the :tangle-mode header=20 >> arg set to >> (identity (#o444)). > This should be `(identity #o444)` I believe ? > Apologies, I transcribed that incorrectly. I do have `(identity=20 #o444)`.=20 > File permissions are now set before writing to the file, for=20 > security > reasons. In this case, you remove write permission so emacs=20 > fails to > write to the file. Perhaps we should try to support this use=20 > case. > > However, even with the previous version, it seems that=20 > subsequent > tangles should have failed (emacs should fail to delete the=20 > previous > tangled file). Can you confirm this and explain how you dealt=20 > with it ? =20 Subsequent tangles did not fail for me. I just tested by building=20 Org from a2cb9b853's parent: f84033b08. Multiple tangles work with no permission errors on subsequent=20 tangles. Here's my init.org, if that's useful: https://raw.githubusercontent.com/progfolio/.emacs.d/master/init.org > As a workaround, you could use a file-local > `org-babel-post-tangle-hook` to set file permission. Although > subsequent tangles will still fail. Unfortunately, I don't have much use for the workaround if=20 subsequent tangles will fail. I currently have an after-save-hook function which tangles the=20 files if I've edited any of the src blocks. It's very convenient and I often will edit/tangle=20 files set up like this multiple times.