Explorar o código

ob-shell: Initialize header arguments for other shell names

* lisp/ob-shell.el (org-babel-shell-initialize) Initialize
  org-babel-default-header-args: for shell names.
stardiviner %!s(int64=6) %!d(string=hai) anos
pai
achega
dcf1796636
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/ob-shell.el

+ 2 - 1
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")