summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Berry <ccberry@ucsd.edu>2015-04-25 11:18:26 -0700
committerCharles Berry <ccberry@ucsd.edu>2015-04-25 11:23:59 -0700
commitc1f515840d6e30978189bbdd7182193c9e9178f2 (patch)
treed41dc3cc61e832dfea933bd85982491ededab92d
parent510fc3761b31b0429be9bba4bad79786f5648698 (diff)
downloadorg-mode-c1f515840d6e30978189bbdd7182193c9e9178f2.tar.gz
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 <Nikolaus@rath.org> <http://permalink.gmane.org/gmane.emacs.orgmode/97125>
-rwxr-xr-xlisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 5d0b6a9..526bfc9 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))