From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IBkcIw50VGFklAAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 16:11:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4GS6Hg50VGH6RgAAbx9fmQ (envelope-from ) for ; Wed, 29 Sep 2021 14:11:26 +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 2B2AD338BD for ; Wed, 29 Sep 2021 16:11:26 +0200 (CEST) Received: from localhost ([::1]:33862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVaIv-0005mq-9M for larch@yhetil.org; Wed, 29 Sep 2021 10:11:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVaB4-0003fB-M2 for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 10:03:18 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:41499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVaB2-0002Nx-8v for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 10:03:18 -0400 Received: by mail-pg1-x531.google.com with SMTP id k24so2818574pgh.8 for ; Wed, 29 Sep 2021 07:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=DJYuUZxoNn1XJszpw0Uef2vIHX2/JaDcAqYQHgpk5N4=; b=QfTWwOG83HLL3fEe9g0T5dyW9hu+dOrHpeFlq5pAsznBReCKZ1bu5QMc12Za8pcElV rY6TrnfVOydWx3yJq56d8S0H0w0UEXvw8tYfUFp0BIpeW9oMeoytl9eWyqqyvWyh0SIY 5Psm63CISS6/38mftjplW8Dsw3u0oeUZsrO8liFH8NDdKmmm41SuTU+HK5u72oRPmEvU vk65WOFYzSlDANQI2d23TDNywNeIjt1a2I7GXj+1Ucs/N4Cb/5VunX6TNAqq/Ryg8XaP 4URrn1ie+2HH9aj3PkodgoaXhE4zw1P3z/Z73sBhEOq7YxLWLAjgvRxCq6lZfsu3xkjS mUwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=DJYuUZxoNn1XJszpw0Uef2vIHX2/JaDcAqYQHgpk5N4=; b=ijqvWY2vFAaokN8klk3IZ1Z9wxMW/BuczGGRymoaLt4STmJ4PfPeJaw7m/ajhu4FUi 1jkaDbAznx/HNeOqSOuggBvrARTTn6R8I9OhtYLdXZWMRVdupqsWd2Z9dVlaKsT7Pvqf QSeP15H9b4Qt9QTtJZv/Ibt3s+MYZvI8KCk3qK1oQevhFnVuYWzGx4su1tYJdLSztlwh mt12M6m9/cgJNMVuEo/zeWchteaOWkBKEo7M14buOAtJHdczjihSDUzz+Urq3NuVXiGV 3TJCFra5Z7/n6HhirtyOzktNAzqokYALkDHSTfVckBdvi5HVAj3anl/nusvVwONfgavx dcvA== X-Gm-Message-State: AOAM533TAhFAHgSwxGDQy2cPAk91x3DqOGSHLVE8AfCSkX+MNR0WBQSD t1iDN4YPfwVjX4+i+3y67kYmUEdtHrI= X-Google-Smtp-Source: ABdhPJwhHGghF237MiSbuyF4uYcJO5Chq+sk/Cif5+1GcVcCKsexwJMYa7ezDHkdv7jili4A2X2FqQ== X-Received: by 2002:a62:7c04:0:b0:44b:e071:2089 with SMTP id x4-20020a627c04000000b0044be0712089mr74491pfc.80.1632924194502; Wed, 29 Sep 2021 07:03:14 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id t6sm1803pfh.63.2021.09.29.07.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 07:03:13 -0700 (PDT) From: Timothy To: Jeremy Cowgar Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer Date: Wed, 29 Sep 2021 21:48:47 +0800 References: <20210928145448.245883-1-jeremy@cowgar.com> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: <20210928145448.245883-1-jeremy@cowgar.com> Message-ID: <87a6jvcwdd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x531.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=1632924686; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DJYuUZxoNn1XJszpw0Uef2vIHX2/JaDcAqYQHgpk5N4=; b=Fz1M0Wdjug6b+wp1yLXwticvUybYiuOZoPHHeMyeAWRz5h/pl8gTOEU7SgC3bcNT7xIBgs z1NKEKmMJxe5WYMJAVsfoRQnZmNSmN/+tNapY2gL0bk8UucjhmIP1gb6WOlMbSQpVcfPr1 G4/89GZZRtlASE8t3M5wmTNj7FnoE0xxNWyeE42OSwQcA3nCVUCDtiwDaxMeLwYND5r2Eb gTKahaHz2gPY4bOafEJcTYUYiu/SZuaL+uRElF1hUiBKg1Ds0NFBREx+8QBfBgBycWCpHr B1Ji2vAa1IyWuHygfLTe1C6I7tXbujGeZCGI6HGuiZAYSyGdhSjfBC1dJFKqVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632924686; a=rsa-sha256; cv=none; b=QryxjB+zToSBFloQPB76OJfVZXZqUlILq8WZdusGSvwWZiPKtg4AW40nOglNnrWIRi90S/ 1BpwTYSJtQXwoEy4zfMmgNeg3Ayf5wY6k3uIXUrik2A6Kzg8Q0RSPzLtJgOVnrjhqy4MYY NRLg5BONV9FSzmvvQXqx/mgnd3cHn9AiBK11dnpVIMsJUV81kM2dkS9WYotVV6BVgKkCTB NLMq+1G/pnTwWVb1KJRqNRsMMIV2//He2VVAKoMH24291ytbA6xEXjo8milD6mSARvO/R+ /YPI6K5JEVxcJ4uqdsB0dTg5oeSF4hHQqcRMQDfBJORB6D1x6iVES+oaSYwofQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QfTWwOG8; 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.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QfTWwOG8; 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: 2B2AD338BD X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ev6G43A0Ktkd --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jeremy, > As an org user I would expect :tangle-mode 0660 to produce a file that > has user rw, group rw, other nothing. Instead, what really happens > currently is 0660 is treated as an integer which is actually > 3140. This produces unexpected file permissions. I agree that :tangle-mode could be more user-friendly. However, I think we = can go further. Currently, only (identity #o755 / 493) works, however I think i= t would be good if it worked like chmod and accepted most of the following forms: =E2=81=83 `#o755' =E2=81=83 `755' (because people are used to this, as technically misleading= as it may be, as long as we can tell =E2=80=9C:tangle-mode 356=E2=80=9D from =E2=80=9C:= tangle-mode (identity #o544)=E2=80=9D) =E2=81=83 `rw' (equivalent to a=3Drw, and so #o555) =E2=81=83 `a=3Drw,u+x' (equivalent to #o755) [hardest to support, so maybe?] And then I=E2=80=99d also be in favour of accepting =E2=81=83 `rw-r--r--' (equivalent to #o544) I think as long as it=E2=80=99s clear what=E2=80=99s intended, and it=E2=80= =99s not some home-baked non-standard format, or terribly annoying to support =E2=80=94 why not? All the best, Timothy --=-=-=--