summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2011-12-13 01:32:17 +0100
committerBastien Guerry <bzg@altern.org>2011-12-13 01:32:17 +0100
commitef3d83d0cfe64b076a14344a02aa21cf12523a47 (patch)
tree7c7f317db42bc833d6663f2d8071cf72fe4dbc34
parent9351ad31e55f21a39a60f409795ccc089cb101fa (diff)
parentb21da5f5d6cb0f3e888ff018a3b2507c8ef2a3b8 (diff)
downloadorg-mode-ef3d83d0cfe64b076a14344a02aa21cf12523a47.tar.gz
Merge branch 'master' of orgmode.org:org-mode
-rw-r--r--README_DIST2
-rw-r--r--doc/org.texi2
-rw-r--r--doc/orgcard.tex2
-rw-r--r--doc/orgguide.texi2
-rw-r--r--lisp/ob-fortran.el2
-rw-r--r--lisp/ob-ref.el15
-rw-r--r--lisp/org.el4
-rw-r--r--testing/lisp/test-ob.el7
8 files changed, 15 insertions, 21 deletions
diff --git a/README_DIST b/README_DIST
index 756d53f..5eab85f 100644
--- a/README_DIST
+++ b/README_DIST
@@ -1,7 +1,7 @@
The is a distribution of Org, a plain text notes and project planning
tool for Emacs.
-The version of this release is: 7.8
+The version of this release is: 7.8.01
The homepage of Org is at http://orgmode.org
diff --git a/doc/org.texi b/doc/org.texi
index 2cbb7d1..e685228 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -4,7 +4,7 @@
@setfilename ../../info/org
@settitle The Org Manual
-@set VERSION 7.8
+@set VERSION 7.8.01
@set DATE December 2011
@c Use proper quote and backtick for code sections in PDF output
diff --git a/doc/orgcard.tex b/doc/orgcard.tex
index f9c20d4..a7a85de 100644
--- a/doc/orgcard.tex
+++ b/doc/orgcard.tex
@@ -1,5 +1,5 @@
% Reference Card for Org Mode
-\def\orgversionnumber{7.8}
+\def\orgversionnumber{7.8.01}
\def\versionyear{2011} % latest update
\def\year{2011} % latest copyright year
diff --git a/doc/orgguide.texi b/doc/orgguide.texi
index d3adf38..734b83c 100644
--- a/doc/orgguide.texi
+++ b/doc/orgguide.texi
@@ -3,7 +3,7 @@
@setfilename ../../info/orgguide
@settitle The compact Org-mode Guide
-@set VERSION 7.8
+@set VERSION 7.8.01
@set DATE December 2011
@c Use proper quote and backtick for code sections in PDF output
diff --git a/lisp/ob-fortran.el b/lisp/ob-fortran.el
index c1fd2da..f810403 100644
--- a/lisp/ob-fortran.el
+++ b/lisp/ob-fortran.el
@@ -5,7 +5,7 @@
;; Authors: Sergey Litvinov (based on ob-C.el by Eric Schulte), Eric Schulte
;; Keywords: literate programming, reproducible research, fortran
;; Homepage: http://orgmode.org
-;; Version: 7.8
+;; Version: 7.8.01
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el
index fb3bff6..304e478 100644
--- a/lisp/ob-ref.el
+++ b/lisp/ob-ref.el
@@ -244,20 +244,7 @@ to \"0:-1\"."
(defun org-babel-ref-split-args (arg-string)
"Split ARG-STRING into top-level arguments of balanced parenthesis."
- (let ((index 0) (depth 0) (buffer "") holder return)
- ;; crawl along string, splitting at any ","s which are on the top level
- (while (< index (length arg-string))
- (setq holder (substring arg-string index (+ 1 index)))
- (setq buffer (concat buffer holder))
- (setq index (+ 1 index))
- (cond
- ((string= holder ",")
- (when (= depth 0)
- (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)))))
- (mapcar #'org-babel-trim (reverse (cons buffer return)))))
+ (mapcar #'org-babel-trim (org-babel-balanced-split arg-string 44)))
(defvar org-bracket-link-regexp)
(defun org-babel-ref-at-ref-p ()
diff --git a/lisp/org.el b/lisp/org.el
index 43244e3..4761738 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6,7 +6,7 @@
;; Maintainer: Bastien Guerry <bzg at gnu dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.org
-;; Version: 7.8
+;; Version: 7.8.01
;;
;; This file is part of GNU Emacs.
;;
@@ -203,7 +203,7 @@ identifier."
;;; Version
-(defconst org-version "7.8"
+(defconst org-version "7.8.01"
"The version number of the file org.el.")
(defun org-version (&optional here)
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index 70b7dc7..6c7ac6c 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -576,6 +576,13 @@ on two lines
#+end_src"
(should (string= (org-babel-expand-noweb-references) "barbaz"))))
+(ert-deftest test-ob/splitting-variable-lists-in-references ()
+ (org-test-with-temp-text ""
+ (should (= 1 (length (org-babel-ref-split-args
+ "a=\"this, no work\""))))
+ (should (= 2 (length (org-babel-ref-split-args
+ "a=\"this, no work\", b=1"))))))
+
(provide 'test-ob)
;;; test-ob ends here