mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-01 11:15:00 +00:00
babel: smarter `org-babel-ref-split-args' -- fixes bug parsing indexed function-style args
This commit is contained in:
parent
b3e92a8193
commit
692c569215
@ -193,8 +193,8 @@ which case the entire range is returned."
|
||||
(when (= depth 0)
|
||||
(setq return (reverse (cons (substring buffer 0 -1) return)))
|
||||
(setq buffer "")))
|
||||
((string= holder "(") (setq depth (+ depth 1)))
|
||||
((string= holder ")") (setq depth (- depth 1)))))
|
||||
((or (string= holder "(") (string= holder "[")) (setq depth (+ depth 1)))
|
||||
((or (string= holder ")") (string= holder "]")) (setq depth (- depth 1)))))
|
||||
(mapcar #'org-babel-trim (reverse (cons buffer return)))))
|
||||
|
||||
(defun org-babel-ref-at-ref-p ()
|
||||
|
Loading…
Reference in New Issue
Block a user