summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-11-18 09:34:21 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-11-18 09:34:21 -0700
commite34033fec2c8bbfa000ac291a9889ca49fa5dc17 (patch)
treeccd61e82189bc990e30dc117d9682fb053dae0a3
parent14b52a05fa9c0a560ed257d4dd3e1f9f6d27bfa0 (diff)
downloadorg-mode-e34033fec2c8bbfa000ac291a9889ca49fa5dc17.tar.gz
using higher level function for checking list membership
Thanks to Nicolas Goaziou for pointing this out * lisp/ob-ref.el (org-babel-ref-at-ref-p): Use higher level function for testing list membership. * lisp/ob.el (org-babel-read-result): Use higher level function for testing list membership. (org-babel-result-end): Use higher level function for testing list membership.
-rw-r--r--lisp/ob-ref.el2
-rw-r--r--lisp/ob.el4
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el
index dd59b39..e482cb8 100644
--- a/lisp/ob-ref.el
+++ b/lisp/ob-ref.el
@@ -215,7 +215,7 @@ to \"0:-1\"."
Return nil if none of the supported reference types are found.
Supported reference types are tables and source blocks."
(cond ((org-at-table-p) 'table)
- ((org-list-in-item-p-with-indent 0) 'list)
+ ((org-in-item-p) 'list)
((looking-at "^[ \t]*#\\+BEGIN_SRC") 'source-block)
((looking-at org-bracket-link-regexp) 'file)
((looking-at org-babel-result-regexp) 'results-line)))
diff --git a/lisp/ob.el b/lisp/ob.el
index 30f54b8..96c2744 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1309,7 +1309,7 @@ following the source block."
(let ((case-fold-search t) result-string)
(cond
((org-at-table-p) (org-babel-read-table))
- ((org-list-in-item-p-with-indent 0) (org-babel-read-list))
+ ((org-in-item-p) (org-babel-read-list))
((looking-at org-bracket-link-regexp) (org-babel-read-link))
((looking-at org-block-regexp) (org-babel-trim (match-string 4)))
((looking-at "^[ \t]*: ")
@@ -1500,7 +1500,7 @@ code ---- the results are extracted in the syntax of the source
(save-excursion
(cond
((org-at-table-p) (progn (goto-char (org-table-end)) (point)))
- ((org-list-in-item-p-with-indent 0) (- (org-list-bottom-point) 1))
+ ((org-in-item-p) (- (org-list-bottom-point) 1))
(t
(let ((case-fold-search t))
(cond