Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
This commit is contained in:
commit
de5d40ba98
|
@ -98,8 +98,10 @@ return nil."
|
||||||
(let ((case-fold-search t)
|
(let ((case-fold-search t)
|
||||||
type args new-refere new-referent result lob-info split-file split-ref
|
type args new-refere new-referent result lob-info split-file split-ref
|
||||||
index index-row index-col)
|
index index-row index-col)
|
||||||
;; if ref is indexed grab the indices
|
;; if ref is indexed grab the indices -- beware nested indicies
|
||||||
(when (string-match "\\[\\(.+\\)\\]" ref)
|
(when (and (string-match "\\[\\(.+\\)\\]" ref)
|
||||||
|
(let ((str (substring ref 0 (match-beginning 0))))
|
||||||
|
(= (count ?( str) (count ?) str))))
|
||||||
(setq index (match-string 1 ref))
|
(setq index (match-string 1 ref))
|
||||||
(setq ref (substring ref 0 (match-beginning 0))))
|
(setq ref (substring ref 0 (match-beginning 0))))
|
||||||
;; assign any arguments to pass to source block
|
;; assign any arguments to pass to source block
|
||||||
|
|
Loading…
Reference in New Issue