From aa9fbbb323c0752105114729f37b4a651275ba93 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 6 Nov 2010 17:08:19 +0100 Subject: [PATCH] Fix cycling indentation with inline tasks * org.el (org-current-level): ignore inline tasks when getting current level of entry --- lisp/org.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index e006c360c..e03e9cae3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7020,11 +7020,12 @@ in the region." "Return the level of the current entry, or nil if before the first headline. The level is the number of stars at the beginning of the headline." (save-excursion - (condition-case nil - (progn - (org-back-to-heading t) - (funcall outline-level)) - (error nil)))) + (let ((outline-regexp (org-get-limited-outline-regexp))) + (condition-case nil + (progn + (org-back-to-heading t) + (funcall outline-level)) + (error nil))))) (defun org-get-previous-line-level () "Return the outline depth of the last headline before the current line.