* [PATCH] ob-shell initialize header arguments for other shell names too
@ 2018-06-04 4:07 stardiviner
2018-06-15 20:46 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: stardiviner @ 2018-06-04 4:07 UTC (permalink / raw
To: org-mode
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-ob-shell.el-Initialize-header-arguments-for-other-sh.patch --]
[-- Type: text/x-patch, Size: 985 bytes --]
From 4519624de8543205533b89e05d14e308d891f45b Mon Sep 17 00:00:00 2001
From: stardiviner <numbchild@gmail.com>
Date: Mon, 4 Jun 2018 12:02:55 +0800
Subject: [PATCH] ob-shell.el: Initialize header arguments for other shell
names too
* lisp/ob-shell.el (org-babel-shell-initialize) initialize
org-babel-default-header-args: for shell names.
---
lisp/ob-shell.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el
index f7c6718c7..29086acd3 100644
--- a/lisp/ob-shell.el
+++ b/lisp/ob-shell.el
@@ -57,7 +57,8 @@ is modified outside the Customize interface."
'org-babel-variable-assignments:shell
,(format "Return list of %s statements assigning to the block's \
variables."
- name)))))
+ name)))
+ (eval `(defvar ,(intern (concat "org-babel-default-header-args:" name)) '()))))
(defcustom org-babel-shell-names
'("sh" "bash" "zsh" "fish" "csh" "ash" "dash" "ksh" "mksh" "posh")
--
2.17.1
[-- Attachment #2: Type: text/plain, Size: 196 bytes --]
--
[ stardiviner ] don't need to convince with trends.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-15 20:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-04 4:07 [PATCH] ob-shell initialize header arguments for other shell names too stardiviner
2018-06-15 20:46 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.