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 iNUnAnccVGH3YAEAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 09:57:43 +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 WNhAOXYcVGFNQQAAbx9fmQ (envelope-from ) for ; Wed, 29 Sep 2021 07:57:42 +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 16D422C375 for ; Wed, 29 Sep 2021 09:57:42 +0200 (CEST) Received: from localhost ([::1]:56700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVUTF-0003lp-5D for larch@yhetil.org; Wed, 29 Sep 2021 03:57:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVUS8-0003jX-Ut for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 03:56:33 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:39113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVUS4-0003Sl-CM for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 03:56:32 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AC6003201B5C for ; Wed, 29 Sep 2021 03:56:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 29 Sep 2021 03:56:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= references:from:to:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=wqA73zxAt57cowu93Kol4NjIg4 VPTJrvdu22SXrwp/I=; b=PmbnqS3DBPRsg7PEN0eWt/Hv8slOD92E4kiW9S9XSO Fms5naIRmMav2mu7GZ0MJRPgaU+Axhq3Lw/6WtUFTKVAmXzF3zW43xX+PterD6Ke VVcYrrb1P1rOLy8KnGn8X0Js1AEVrTyu8gcajAys8Ro94JJcZ+ZvN7Iv2eodFYVM M82m1OCLTbFtZZh90rmmF4Q/LXJBQaw/f6IwESzGIOv+HXs9H+t/ar4PRsquGJx9 dKTXoPesQWoPedKUAfH9638pzBNdLNrTfbBwrAdcSiGOgT3MywEgQSmSW+Y6tBSv 4etrooR63hK2M5hIaktjVr945PV8KStZx17LhNYG6t7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=wqA73z xAt57cowu93Kol4NjIg4VPTJrvdu22SXrwp/I=; b=Wa2zOLfv4YP9/0NfJbnOmi PORt6o5gpex7ZSVcxqP0+1t9AGbAhS0wvavfla6GHTkdE9IilFAvh2511IXiflIa 3+pWW/vY4RjabGgaKbWkAI/4qgvnUI3Z5gzBXAwp/5CS2ng68iHZ8U7aJYzQ8pYC rIWKqTZjO71L6DwF/AknK3VnCXKa4Arj5PnKW17PyGmsBygYu1ZvsKHBpr8YHLas 3AzFDYZUUYEsIcScAoGmnKJFwmJo1duq6AU9HRJOc1XfjTfTmtAuwa3dX7vOJqtR yg1gx+oIc5fTss9JrezoONkq1ipirrEA9XB1U49Fc3QItqdzqOyxQQKjE6paj01w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekuddguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpedfughkrhhmfdcuoegvmhgrtghsrdhorhhgmhhouggvsegu khhrmhdrfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeeugfdvgeetie ffheeukeefffekieetledthfevgfejheetfeehheehfffgtdejjeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvmhgrtghsrdhorhhgmhhoug gvsegukhhrmhdrfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 29 Sep 2021 03:56:23 -0400 (EDT) References: <20210928145448.245883-1-jeremy@cowgar.com> <20210929063925.GA6367@tuxteam.de> <7e1c208b9fa8845adff5e3c45d6f086b@cowgar.com> User-agent: mu4e 1.6.6; emacs 27.2 From: "dkrm" To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer Date: Wed, 29 Sep 2021 09:52:23 +0200 In-reply-to: <7e1c208b9fa8845adff5e3c45d6f086b@cowgar.com> Message-ID: <8735pnyfvd.fsf@esthar.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=emacs.orgmode@dkrm.fastmail.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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: , 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=1632902262; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=wqA73zxAt57cowu93Kol4NjIg4VPTJrvdu22SXrwp/I=; b=THtqlpqdTj7W/UhhxoFV0+/SB9ZqiAM0cyTJiEaAIGGRpr7+oyR9eSAW3EhXhZhPltQvll D9ab56uSJTtoDGBBk8yBwXWDjyjHZKl7y2vw0358o6UTIYRIeuyGE4QfvHPWAcePqGX1lm 65Us0W+0SyjwuZ9vXPnNyUmaeUCEpsdNVWDY9rNmhOEDlQq5kOvFmW48urkxO0wCoUI8qV QAPs8Ly9uIfTITrAxDjAk+63AZMPSfR9ZjHdPPEYkKvQX7NvZUNjpoFz/13XJFuxXMgQJu NTbdbDhz26TZUdtjhsK1EGW3q9WowcEUh330JoaF4PKJhdGX7Qurv/AC5jSn3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632902262; a=rsa-sha256; cv=none; b=Uhm4R/MzKFRGk5YJdY8Puumu96ms/+HR3k2yf8SOjDfQ2AsMaBH4AF43L3K/i1AYSmNf4L kKG8hmgMYj0ozPOYj9SZrxgzENbedM3UX8+SxSxIxssduiBwXKuhkRQeStndRD6S7jtbnW pXZpP1C7jqpMZLTXgfz0C+RnbLUAw7d9+Nsv33HIYrmzYBDdOoQjmepgAs4osQwF+ysJcG Drt5vqNq+Eg00YGG0GNmoFnjjMDXAbL9c7rH1nT1i+9cIr03BS0Sa0W9Gy8dKSykuklL1D XK8oPIKh0+HFgOMXQlM/f+8Vkm2g1ExrOitLIybYlxZsE4lLoV4fOiiaS+xHLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=PmbnqS3D; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Wa2zOLfv; 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: -5.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=PmbnqS3D; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Wa2zOLfv; dmarc=pass (policy=none) header.from=fastmail.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: 16D422C375 X-Spam-Score: -5.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: +91VwJg1CuVL Jeremy Cowgar writes: > On 2021-09-29 02:39, tomas@tuxteam.de wrote: >> On Tue, Sep 28, 2021 at 10:54:48AM -0400, Jeremy Cowgar wrote: >>> 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. >>> >> Hm. This looks dangerous: interpreting an integer as octal just >> due to the context? >> I do understand why, but still... >> Why not recommend Elisp's explicit syntax for octal representation, >> i.e. :tangle-mode #o660? And put a prominent note in the docs, >> of course. > > Are you suggesting this currently works or that the patch should be > changed to make that work? A quick try on my local system (pre-patch), > I receive the error: > > Wrong type argument: fixnump, "#o660" You have to use the `identity` function for it to works: :tangle-mode (identity #o660)