From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UGigFaNwVGEMjQAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 15:56:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AAlUEaNwVGH2LgAA1q6Kng (envelope-from ) for ; Wed, 29 Sep 2021 13:56:51 +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 9C18827F46 for ; Wed, 29 Sep 2021 15:56:50 +0200 (CEST) Received: from localhost ([::1]:59484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVa4n-00012y-Lz for larch@yhetil.org; Wed, 29 Sep 2021 09:56:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVa3t-0000zE-EK for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 09:55:53 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:59493) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mVa3r-0005ly-9K for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 09:55:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=DvYpttrwKhUgIPV/JD6jO5xiSkZlOi/8K5njK69ucmQ=; b=n1PZcTrUxn6b/q8g3REnS9/b5fMuuuZWrBLBbqtB9RbWlEr5sRuKkAWDn7MLhhUd0k+/Qi/+AVMMqgxWUGOGk2VjwiDyH0M7biceqNzgPHJTBqBLSaLZKrcs2s/JDDlbevDIxlOWODSgADDjKX4xiLiaB9Q1NGCV3Q8plnPdX0iWj1Qz3yVvQ2JRZ4viCBChtVIRFUbkIjOQR4caaW1va5oGiyET5nUHjor9Y/LsLq1imWV5mZdboosRcElDpm10iC65gLHIc8fuuAnypWt5wmcxfcA6M0emwj49ZDTGDzTduqTqSJIywqbJJ8W8Gcfhv/KJjsD0zoDhmtu9xcoZow==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1mVa3o-0005Vz-PP for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 15:55:48 +0200 Date: Wed, 29 Sep 2021 15:55:48 +0200 To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer Message-ID: <20210929135548.GB15513@tuxteam.de> References: <20210928145448.245883-1-jeremy@cowgar.com> <20210929063925.GA6367@tuxteam.de> <7e1c208b9fa8845adff5e3c45d6f086b@cowgar.com> <8735pnyfvd.fsf@esthar.i-did-not-set--mail-host-address--so-tickle-me> <20210929082223.GE6367@tuxteam.de> <875f2e60-c36f-091e-043c-ae7a80656507@gmail.com> <20210929110749.GA15513@tuxteam.de> <90475ce545a6e10c1e2b27a3f7f537b7@cowgar.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <90475ce545a6e10c1e2b27a3f7f537b7@cowgar.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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: , 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=1632923810; 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=DvYpttrwKhUgIPV/JD6jO5xiSkZlOi/8K5njK69ucmQ=; b=JSQ8DwhFmFS2dGPfyHnFibAWmCby2xjxo8ed0bO24l3GJ/yAId0GyrWh8QrOVUvqtIuHta c0/rrHGnt+3MeRIz674LGakm72qbmlxxRM+YM6uBzsbxn0d+juD8SWuCXKT34giPwQQ2lI RakgZ5RFou4nZl5PdfnLYuEBoZQ9J8zpGD3Yqjep6EKUFoPW8OPhFJkrpr07BGtjfmt7Gr QEH+RvNJCjaaV9raTupq43NGJ9JGIB6LEJP+3Dy5CMrfF/DeMfEfndxMscvNqSFzHL+yte H+wmRSYvLCdCLNVGB8MnHvV6hrERfMV2sTBqg4xY4Ms3619FZeH6+jH1kn2Bag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632923810; a=rsa-sha256; cv=none; b=Ajqxlf481TXlShP/9tlJcER2LxTtU7VYMZM9uEqWSK/CPo7vg1mgxMpbm6wVRdi5rLpJ8+ 8RtrCcwj1PXQH3/g+dFGttQEfsXWjrVratxnYofkzG0GD4NwP0gBrs++v84Y9hW/UVP9q2 n3TalsJCgmsugWYgbGTuNnG0ui5LFuNBuAMxMc881zMsZaZYzb63p4s/NudZz31zU1t6S2 l5cVJDdT/eAu+i83kt/kRe+NWDa9b+bPu6jKBTaULu7S9X2bYbleNXPxAAoHvqUa79/bUB lGYFq/u72CTY5DaXI8zV9fwAKtqkbmoF1fAFVIoZShPyyU4qCkPslJ0gKR9rfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=n1PZcTrU; dmarc=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-Spam-Score: -4.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=n1PZcTrU; dmarc=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: 9C18827F46 X-Spam-Score: -4.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: aJIOc2VeERCu --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 29, 2021 at 09:17:54AM -0400, Jeremy Cowgar wrote: > On 2021-09-29 07:07, tomas@tuxteam.de wrote: > >On Wed, Sep 29, 2021 at 11:29:06AM +0200, Gyro Funch wrote: > > > >[...] > > > >>I don't know if it would ever be ambiguous, but could :tangle-mode > >>have the ability to infer if it were integer- or octal-format based > >>on checking against 'reasonable' permission settings in octal > >>notation? > > > >To me, that sounds rather scary. But I'm a timid person :-) > > >=20 > To keep things from breaking, what if the system were smart and > if it sees #o prefix, it then parses as an octal, otherwise it keeps > it's current behavior? That was roughly my idea: come closer to the Emacs Lisp int representation (whether only for this case or more generally). But I'm not deep enough in Org to even venture a recommendation. > Then add that to the docs. I understand about backwards compatibility > and that was my greatest fear with this patch when creating it. >=20 > Was just using org-babel-tangle for configuration files and had some > that I wanted to make 0700 and 0600. I soon learned, that didn't work > out as planned :-) I definitely understand your surprise. I know it the other way around. Back then (TM), it was customary in Windows to write out the leading zeros in the IPv4 octets, to fill them up to three places. Something like 192.168.042.001 -- Heavens knows why. Unix utilities interpret those with a leading zero as an octal representation (that's how atoi() or strtol() in its default mode work). I had hours of fun with my Windows colleagues ;-) Cheers - t --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmFUcGQACgkQBcgs9XrR2kYTAwCfWpFFLf9PxTESDz2yFnlc25NZ g8EAmQF38mFwGEkmCmlky2ApFr0YoN9j =AJ4l -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--