From: Aitenate <aitenate@outlook.com>
To: emacs-orgmode@gnu.org
Subject: [Bug] Documentation error(s) for org-babel-tangle-default-file-mode
Date: Thu, 19 Dec 2024 19:21:36 +0000 [thread overview]
Message-ID: <DU2P250MB02064B420A34703CA679DB1EDB062@DU2P250MB0206.EURP250.PROD.OUTLOOK.COM> (raw)
I think there a couple of issues with the documentation for
org-babel-tangle-default-file-mode. It seemed easiest to describe using
a patch:
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 0f6d6a067..7d703993f 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -19521,7 +19521,7 @@ unexpected results (=444= is the same as =o674=).
Two other shorthands are recognized, ls-style strings like
=rw-r--r--=, and chmod-style permissions like =g+w=.
Note that chmod-style permissions are based on
-~org-babel-tangle-default-file-mode~, which is =#o544= by default.
+~org-babel-tangle-default-file-mode~, which is =#o644= by default.
When =:tangle-mode= and =:shebang= are both specified, the give
=:tangle-mode= will override the permissions from =:shebang=. When
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index fe353ec9c..c35525162 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -159,9 +159,10 @@ result. The default value is
`org-remove-indentation'."
:type 'function)
(defcustom org-babel-tangle-default-file-mode #o644
- "The default mode used for tangled files, as an integer.
-The default value 420 correspands to the octal #o644, which is
-read-write permissions for the user, read-only for everyone else."
+ "The default mode, an integer value, only used when the :tangle-mode
+header argument specifies chmod-style symbolic notation. The default
+value 420 corresponds to the octal #o644, which is read-write
+permissions for the user, read-only for everyone else."
:group 'org-babel-tangle
:package-version '(Org . "9.6")
:type 'integer)
If I've misread something, apologies for the noise.
Regards,
Aitenate
reply other threads:[~2024-12-19 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DU2P250MB02064B420A34703CA679DB1EDB062@DU2P250MB0206.EURP250.PROD.OUTLOOK.COM \
--to=aitenate@outlook.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).