summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-10-22 09:20:05 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-10-22 09:20:05 +0200
commit9dc28ea0ed703fa304c33f6c712675e56610dbff (patch)
treeaa88b8de5e6975133e7f624078238c677e2e526f
parentca991d2ad445a5c0b9e8775ced6be820673928c3 (diff)
parent8d85a67deba113adeb262b09c03f88cbe4d572fa (diff)
downloadorg-mode-9dc28ea0ed703fa304c33f6c712675e56610dbff.tar.gz
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
-rw-r--r--lisp/ob-R.el2
-rw-r--r--lisp/org-exp.el23
2 files changed, 14 insertions, 11 deletions
diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index a2b9925..339be23 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -53,7 +53,7 @@
(defun org-babel-expand-body:R (body params)
"Expand BODY according to PARAMS, return the expanded body."
- (let (out-file (cdr (assoc :file params)))
+ (let ((out-file (cdr (assoc :file params))))
(mapconcat
#'identity
((lambda (inside)
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 5d552f7..36a5d99 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1831,16 +1831,19 @@ Also, store forcedalignment information found in such lines."
nodesc)
(goto-char (point-min))
(while (re-search-forward re-plain-link nil t)
- (goto-char (1- (match-end 0)))
- (org-if-unprotected-at (1+ (match-beginning 0))
- (let* ((s (concat (match-string 1)
- "[[" (match-string 2) ":" (match-string 3)
- "][" (match-string 2) ":" (org-export-protect-sub-super
- (match-string 3))
- "]]")))
- ;; added 'org-link face to links
- (put-text-property 0 (length s) 'face 'org-link s)
- (replace-match s t t))))
+ (unless (org-string-match-p
+ "\\[\\[\\S+:\\S-*?\\<"
+ (buffer-substring (point-at-bol) (match-beginning 0)))
+ (goto-char (1- (match-end 0)))
+ (org-if-unprotected-at (1+ (match-beginning 0))
+ (let* ((s (concat (match-string 1)
+ "[[" (match-string 2) ":" (match-string 3)
+ "][" (match-string 2) ":" (org-export-protect-sub-super
+ (match-string 3))
+ "]]")))
+ ;; added 'org-link face to links
+ (put-text-property 0 (length s) 'face 'org-link s)
+ (replace-match s t t)))))
(goto-char (point-min))
(while (re-search-forward re-angle-link nil t)
(goto-char (1- (match-end 0)))