From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aErxJNh3VGFfmwAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 16:27:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YKBwINh3VGFKUQAAbx9fmQ (envelope-from ) for ; Wed, 29 Sep 2021 14:27:36 +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 DBF828D54 for ; Wed, 29 Sep 2021 16:27:35 +0200 (CEST) Received: from localhost ([::1]:51312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVaYY-0001M7-3b for larch@yhetil.org; Wed, 29 Sep 2021 10:27:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVaY4-0001Ld-34 for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 10:27:04 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:59557) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mVaY1-00020O-RS for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 10:27:03 -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=raHqzcusSGyv25r216RtnznSZjQQoF8krcuwaeLQg6Y=; b=eUvQg9qjMHeinS+0H/1KjjRS8oSUZI8NegPw3MW/hlfms6Y/RJYTPpxJG29kM3dTK5S63i11KBdb6N3/+aUvLAlIeYFkaXcqdHThUe/HIa52c6wXlbLTlgRYMGdqBA65WQQTzl4vinNzsdh/HJ7tJ/L6rO0c+oo97t/P5yspAmF3fAB2lwLKLwB+ilH9gQ8J/gCW3yR0rwGRe37I3a6TfjN1B54WAFNP9ytQX8k0Rd1L/l7KsE2jSjzPObSshqL0X5IdwBiZ5KNF72lV5w58uoFpeNOHVwA4fS5xc5m8pRJ6jwkS2zIrkQEhNgUVEyP5ZsRK6TER/jr25UClw5mw/w==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1mVaXz-0005sk-Dr for emacs-orgmode@gnu.org; Wed, 29 Sep 2021 16:26:59 +0200 Date: Wed, 29 Sep 2021 16:26:59 +0200 To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer Message-ID: <20210929142659.GD15513@tuxteam.de> References: <20210928145448.245883-1-jeremy@cowgar.com> <87a6jvcwdd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5gxpn/Q6ypwruk0T" Content-Disposition: inline In-Reply-To: <87a6jvcwdd.fsf@gmail.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=1632925655; 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=raHqzcusSGyv25r216RtnznSZjQQoF8krcuwaeLQg6Y=; b=acs2N8nS0+Gdkhac4gC0aycxLDQVRaFQZlEorn7V4F+/mIo9AAsPi2zdtMtNvPjNRK4wp0 FSYL79Qt2HQ769qG4pacRAud3enIbw+VGKKdOsetZTd3Pf4SnmGO5eRrMcviA0TTJs88e0 DF9bWyucOa45IRFcgvN5mEfGzmP++r4UXqMgxOa42TUF0ulyZQ6GZpkJ5KoRjmb/TVYzvZ N8r3qr4mfGClumRFjDzeJDTAexc/MAxyvvGolNYGjtKy6o3F9MqiyLgQo08olESK3hJfUG wp6MFykRR6OuUSLxfZs3TSJPcc/YMNsDXRSNHsv7G7ZmC4d8WhM2qXoNJCKWVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632925655; a=rsa-sha256; cv=none; b=Fi0Aqqmcq+sXLNyCTkmKkfAaeZZtU8ODjjP9uEy4L9JicSM+TSGjoZX/JruTMrYRhn0mZf hSBsUNdT9QdAk5v39luHwrli1pvAYAZrnzqyovwpLjmsqmpAt2TtmN2m0Z0suzFeOGsomH +gQBGZanxhoZqBOlTqdgUW0Gl88MBfH8izbQkyU9vjUY0hEEftTJWdxxDMCFhXej72Oj2f i4OshIzuRYRFdF3QQ2YfB5bnUBGvi1XgD5VzV2c4dCP/lShL8xGII2pOWWYISxNJpwTYb2 JsPyxnziv1Ius+uVcTp+98Wzhzh4+CrDA6x9BEyKO3VngAKFYP+1uP39I23TJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=eUvQg9qj; 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=eUvQg9qj; 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: DBF828D54 X-Spam-Score: -4.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: zewq8yq8lP3K --5gxpn/Q6ypwruk0T Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 29, 2021 at 09:48:47PM +0800, Timothy wrote: > Hi Jeremy, >=20 > > 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. >=20 > I agree that :tangle-mode could be more user-friendly. However, I think w= e can > go further. Currently, only (identity #o755 / 493) works, however I think= it 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 misleadi= ng 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 mayb= e?] So you favour going the "full custom special parser". You're much more involved in Org, so I think your gut feeling counts more than mine here :) `755' is the funniest one, since, strictly speaking it doesn't correspond to anything "out there" (note that the shell command `chmod' wants the leading zero, or, well, it will do surprising things if you don't provide it ;-) But then, if it is clear that :tangle-mode is doing its own parsing, it won't matter much. Cheers - t --5gxpn/Q6ypwruk0T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmFUd7MACgkQBcgs9XrR2kZYBACbBodTQ3giGD/B9BQhwzoMKNs0 rKUAn1NDetYuJw5Id0VD4Hl286DIjKzm =5Pa5 -----END PGP SIGNATURE----- --5gxpn/Q6ypwruk0T--