forked from mirrors/org-mode
ob: preserve the order of variable parameters
* lisp/ob.el (org-babel-merge-params): Ensure variable parameters are not reversed. * lisp/ob-ref.el (org-babel-ref-split-args): Ensure variable parameters are not reversed.
This commit is contained in:
parent
d1f0ae650f
commit
27c3cad589
|
@ -207,7 +207,7 @@ to \"0:-1\"."
|
|||
(cond
|
||||
((string= holder ",")
|
||||
(when (= depth 0)
|
||||
(setq return (reverse (cons (substring buffer 0 -1) return)))
|
||||
(setq return (cons (substring buffer 0 -1) return))
|
||||
(setq buffer "")))
|
||||
((or (string= holder "(") (string= holder "[")) (setq depth (+ depth 1)))
|
||||
((or (string= holder ")") (string= holder "]")) (setq depth (- depth 1)))))
|
||||
|
|
|
@ -1805,6 +1805,7 @@ parameters when merging lists."
|
|||
(setq params (cons pair (assq-delete-all (car pair) params))))))
|
||||
plist))
|
||||
plists))
|
||||
(setq vars (reverse vars))
|
||||
(while vars (setq params (cons (cons :var (cddr (pop vars))) params)))
|
||||
(mapc
|
||||
(lambda (hd)
|
||||
|
|
Loading…
Reference in a new issue