From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YK7yA0FTV2FOigAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 20:28:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GNEwO0BTV2HONgAA1q6Kng (envelope-from ) for ; Fri, 01 Oct 2021 18:28: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 8F68D8837 for ; Fri, 1 Oct 2021 20:28:16 +0200 (CEST) Received: from localhost ([::1]:42344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWNGZ-0007Cf-KV for larch@yhetil.org; Fri, 01 Oct 2021 14:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWNFs-00079O-6M for emacs-orgmode@gnu.org; Fri, 01 Oct 2021 14:27:32 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:40744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWNFq-00088F-Lj for emacs-orgmode@gnu.org; Fri, 01 Oct 2021 14:27:31 -0400 Received: by mail-pf1-x42f.google.com with SMTP id y8so8691733pfa.7 for ; Fri, 01 Oct 2021 11:27:29 -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=3AQ4U/ozS9Q5wXqP77DpKsrx1xbVsv1dknXj0GFzuiA=; b=dmYdl/5q3kzjc4ln5LXh9KDZE/9PHsrOSTh4oi8c7Lhp+tVV13hezg10CJO2siWpii VY7wpQv0Pgdklw/+0tPJficSVFBhVmeGkELStulC93xY1+dyWqlEiut3xfDTPZOA7Cu0 A7cjABjeeZ6Dz4piKO7pA/4ar5rjYSB03K31Y8r1Z/YBuWNIqvMdn0lBgQSlwclVTeCz NI80nhF2hrru/i25I2BtBrg5i7YOjdKEoIRIA2ZJup8VZEx0dbq/cqLnCNAi2gge8lRa NMoH4gNse0XN+QnLOUp9W/1FYqNcZeP3fy4JzuI3xdsld6J1WhusB84L/JEF/Q0q0+wt f2sA== 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=3AQ4U/ozS9Q5wXqP77DpKsrx1xbVsv1dknXj0GFzuiA=; b=4OnUGg3AlhQyE8zufS3t45JRGKI9FNoBmdzOnFecLCqcqXx6iEX2qV/IttZsKmTIsy iCt5j9kfKkQkPYgt45i+wAzwgOrRrxTQAib7hKGFnsigBS77P6wKwqWDaMEadSZ+kGHQ ohRx3N99Oxw6OLNAZyZjQZtAa54y2fjOkPDGXFcZRkHwAVXDRUVlTUNbeP9upTqdwkE2 s1t9OiZuC8cHLllAPQhCl3iiKv2XIPrdAkF40XDNZ4HaT3LIECtYyj5k/OMVZCJznbiJ pTb+bg428KP8I0e7tnHOYEUBNVyZ9FpEZ+htO5ZgYYiQxrFOdRkmHGb+vUaVgw6nLVZB juQw== X-Gm-Message-State: AOAM533wip5PVc0A+Ty/rBVw83yOFsFnIYnt83Sm05itQoDMKO34WdhJ NmNm9P4uMZNyCzIAAA3lRMA= X-Google-Smtp-Source: ABdhPJz+1nh7SoOXKH8SjWqsCn+8w/a1+RRk+npQxp2LBLvpGg9z5xmrbbnyyAZ29WT2lNi3twwtOg== X-Received: by 2002:a63:4610:: with SMTP id t16mr10993056pga.176.1633112848918; Fri, 01 Oct 2021 11:27:28 -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 v4sm6074100pjr.32.2021.10.01.11.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 11:27:28 -0700 (PDT) From: Timothy To: Tom Gillespie Subject: Re: [PATCH] Accept more :tangle-mode specification forms Date: Sat, 02 Oct 2021 02:14:34 +0800 References: <875yuh9b3t.fsf@gmail.com> <87a6jtjj20.fsf@gmail.com> <87ilyh5aci.fsf@ucl.ac.uk> <20211001102957.GF16352@tuxteam.de> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: Message-ID: <871r54k3cj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x42f.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: tomas@tuxteam.de, emacs-orgmode , mail@christianmoe.com 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=1633112896; 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=3AQ4U/ozS9Q5wXqP77DpKsrx1xbVsv1dknXj0GFzuiA=; b=RMTxj175UNY/B8faIg4mx3XvwwIJcPz8D8SXacI00p3R4YM3t5CXTM9bZsB5JPvOThESf/ 9PzPUszSQeQXLSC9gGzzOrsAQ9iDUe6wXnTix9a6jt1NkOLK7rkLUBkquyeFXfKjDZXDen kEAqBrdGX8rLxgUMxuCPmlJbgCNxsisxB7hmdMBYUwcMy7oTcDEmgs0WZdQ2jCYA/U7spV CRsVMJxr2v84Q0W0uymSH5R/kU1f8Cmg/DlRuXml6FuwyM/btcieUkRwbnPE7KVUpJMR6C kS2meXRmD2qeKXq2ofN6iBXCNdCbqR848pDmOijj1LMm5iMAV7fxe5z9xqgBEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633112896; a=rsa-sha256; cv=none; b=WhroJH7A3flhxU0N0kvQAquTkqQsG5c5sEWhHVCfdOiKp7VQaRrW8XF0rqBeMNng6X6Cej JdV8f6e3vqT7WEnikozpmgHcQIE7M94sWQHs3U5l56K8Mk/tyPbXbp0FUbcm3NT614UBUC ENpy4JJ8HeAfE372AzzhzM39DrxUbKHIiFMYMqJfOr5lXfKcRG1ihf6vwhdfRnnOxO4R84 BIGntHhyWsNG1BwBab/Y+y2TQDLROpSWz0edxTMnLJNOzgqx+DX9Y3nGK6ddCIV8VjqquJ f5UxQbmjygxmAnttoT/IeidA7Zurkkdntc8CPGfwXSABLZIL22HLmXdgeZnAwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="dmYdl/5q"; 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.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="dmYdl/5q"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 8F68D8837 X-Spam-Score: -0.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7S9vqWItGhxP --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Tom, Thanks for going through the replies so far and refining your thoughts. > *snip a whole bunch of comments* I think I=E2=80=99m of the same mind as you that if we try to mentally sepa= rate Org the markup format and Org the emacs mode, the format should not specify the interpretation of the :tangle-mode value. I think the best way to have it would be, =E2=81=83 Org the format, :tangle-mode takes a value representing the file = permissions the tangled file should have. Optional: here are some common examples that might be recognised =E2=81=83 Org the emacs mode, :tangle-mode=E2=80=99s value is interpreted l= ike so (=E2=80=A6) > That said, reducing the number of forms as Eric suggests would > be a happy medium. Indeed, I=E2=80=99ve basically supported every form I could think of. I=E2= =80=99m currently inclined to cut it down to: =E2=80=A2 755 =E2=80=A2 =E2=80=9Crwxrw-r=E2=80=93=E2=80=9D (`ls -l' style) =E2=80=A2 chmod style with `org-babel-tangle-default-mode' and `file-modes-= symbolic-to-number' Maybe with (if anybody says they would like this) =E2=80=A2 #o755 (elisp octal) =E2=80=A2 0755 (C octal) =E2=80=A2 =E2=80=9Crwx=E2=80=9D =3D user perm, bit-or=E2=80=99d with `org-b= abel-tangle-default-mode' for the rest (i.e. `org-babel-tangle-default-mode', but not exceeding the user perm) All the best, Timothy --=-=-=--