[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Treat :tangle-mode as an octal value not integer
From: |
Timothy |
Subject: |
Re: [PATCH] Treat :tangle-mode as an octal value not integer |
Date: |
Wed, 29 Sep 2021 21:48:47 +0800 |
User-agent: |
mu4e 1.6.5; emacs 28.0.50 |
Hi Jeremy,
> 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.
I agree that :tangle-mode could be more user-friendly. However, I think we 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:
⁃ `#o755'
⁃ `755' (because people are used to this, as technically misleading as it may
be,
as long as we can tell “:tangle-mode 356” from “:tangle-mode (identity
#o544)”)
⁃ `rw' (equivalent to a=rw, and so #o555)
⁃ `a=rw,u+x' (equivalent to #o755) [hardest to support, so maybe?]
And then I’d also be in favour of accepting
⁃ `rw-r--r--' (equivalent to #o544)
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?
All the best,
Timothy
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, (continued)
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, Greg Minshall, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, Jeremy Cowgar, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, tomas, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, dkrm, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, tomas, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, Gyro Funch, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, tomas, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, Jeremy Cowgar, 2021/09/29
- Re: [PATCH] Treat :tangle-mode as an octal value not integer, tomas, 2021/09/29
Re: [PATCH] Treat :tangle-mode as an octal value not integer, Bastien, 2021/09/29
Re: [PATCH] Treat :tangle-mode as an octal value not integer,
Timothy <=
Re: [PATCH] Treat :tangle-mode as an octal value not integer, Greg Minshall, 2021/09/29
Re: [PATCH] Treat :tangle-mode as an octal value not integer, tomas, 2021/09/29