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>
This commit is contained in:
parent
510fc3761b
commit
c1f515840d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue