Re: [PATCH] Treat :tangle-mode as an octal value not integer

2021-09-29 Thread Jeremy Cowgar
On 2021-09-29 07:07, to...@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 sett

Re: [PATCH] Treat :tangle-mode as an octal value not integer

2021-09-29 Thread Jeremy Cowgar
On 2021-09-29 10:58, Timothy wrote: I think as long as it’s clear what’s intended, and it’s not some home-baked non-standard format, or terribly annoying to support — why not? Anyway, as an example here's a code snippet that implements everything I've mentioned. ... code removed for brevity

[PATCH] Treat :tangle-mode as an octal value not integer

2021-09-28 Thread Jeremy Cowgar
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. Prior to this patch to have rw,rw,none, one has to

Re: [PATCH] Treat :tangle-mode as an octal value not integer

2021-09-29 Thread Jeremy Cowgar
On 2021-09-29 02:39, to...@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