|
@@ -403,6 +403,7 @@ then run `org-babel-switch-to-session'."
|
|
|
(file . :any)
|
|
|
(file-desc . :any)
|
|
|
(file-ext . :any)
|
|
|
+ (file-mode . ((#o755 #o555 #o444 :any)))
|
|
|
(hlines . ((no yes)))
|
|
|
(mkdirp . ((yes no)))
|
|
|
(no-expand)
|
|
@@ -734,7 +735,11 @@ block."
|
|
|
(with-temp-file file
|
|
|
(insert (org-babel-format-result
|
|
|
result
|
|
|
- (cdr (assq :sep params))))))
|
|
|
+ (cdr (assq :sep params)))))
|
|
|
+ ;; Set file permissions if header argument
|
|
|
+ ;; `:file-mode' is provided.
|
|
|
+ (when (assq :file-mode params)
|
|
|
+ (set-file-modes file (cdr (assq :file-mode params)))))
|
|
|
(setq result file))
|
|
|
;; Possibly perform post process provided its
|
|
|
;; appropriate. Dynamically bind "*this*" to the
|