On Fri, 24 Apr 2015, Eric S Fraga wrote:
On Thursday, 23 Apr 2015 at 21:59, Nikolaus Rath wrote:
[...]
Well, obviously I meant a way to *automatically* have Tab work at the
end of the line
I also would really like tab to work at the end of a headline with
hidden text as it would anywhere else on the line. I see no benefit
from org treating the cursor at the absolute end of the line as being
within the hidden text but maybe somebody can explain?
This change in org-cycle line 131 seems to have the desired effect:
--- 128,134 ---- Original
;; 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)
(looking-at org-outline-regexp)))
(or (bolp) (not (eq org-cycle-emulate-tab 'exc-hl-bol))))
(org-cycle-internal-local))
*** 128,134 **** NEW
;; At an item/headline: delegate to `org-cycle-internal-local'.
((and (or (and org-cycle-include-plain-lists (org-at-item-p))
! (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))
Caveat: I've not run this thru make test.
Having to hit C-a first is annoying...
Agree. Less (keystrokes) is more (productivity).
HTH,
Chuck