summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2014-01-09 21:37:11 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2014-01-09 21:37:11 +0100
commitb8028c607d69e79e979c043bd0e4da37ca9fb480 (patch)
tree91d888e364538a82d3f56f1ef1dcba9cfb2bf716
parent9c1bc61cce306bf50389ca1051e72e5175589613 (diff)
parent81ce406d8fccebf2449f6d45d0bf59abd747e70d (diff)
downloadorg-mode-b8028c607d69e79e979c043bd0e4da37ca9fb480.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ob-core.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 08c1c7f..5d3f035 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -224,7 +224,7 @@ Returns non-nil if match-data set"
(let ((src-at-0-p (save-excursion
(beginning-of-line 1)
(string= "src" (thing-at-point 'word))))
- (first-line-p (= 1 (line-number-at-pos)))
+ (first-line-p (= (line-beginning-position) (point-min)))
(orig (point)))
(let ((search-for (cond ((and src-at-0-p first-line-p "src_"))
(first-line-p "[[:punct:] \t]src_")