From c1f515840d6e30978189bbdd7182193c9e9178f2 Mon Sep 17 00:00:00 2001 From: Charles Berry Date: Sat, 25 Apr 2015 11:18:26 -0700 Subject: [PATCH] org-cycle: Cycle visibility when point is at the end of a folded headline * lisp/org.el: (org-cycle): Ignore invisible newlines and cycle visibility when point is visibly on a headline. Requested by: Nikolaus Rath --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 5d0b6a9d6..526bfc97c 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -6781,7 +6781,7 @@ in special contexts. ;; At an item/headline: delegate to `org-cycle-internal-local'. ((and (or (and org-cycle-include-plain-lists (org-at-item-p)) - (save-excursion (beginning-of-line 1) + (save-excursion (move-beginning-of-line 1) (looking-at org-outline-regexp))) (or (bolp) (not (eq org-cycle-emulate-tab 'exc-hl-bol)))) (org-cycle-internal-local)) -- 2.11.4.GIT