emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Visibility cycling at end of headline
Date: Fri, 24 Apr 2015 10:37:23 -0700	[thread overview]
Message-ID: <alpine.OSX.2.00.1504241031280.587@charles-berrys-macbook.local> (raw)
In-Reply-To: <87egnarnce.fsf@pinto.chemeng.ucl.ac.uk>

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

  reply	other threads:[~2015-04-24 17:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24  2:23 Visibility cycling at end of headline Nikolaus Rath
2015-04-24  2:35 ` Kyle Meyer
2015-04-24  4:59   ` Nikolaus Rath
2015-04-24  7:34     ` Eric S Fraga
2015-04-24 17:37       ` Charles C. Berry [this message]
2015-04-25  7:13         ` Nicolas Goaziou
2015-04-25 18:28           ` Charles C. Berry
2015-04-25 22:11             ` Nicolas Goaziou
2015-04-25  9:06         ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.00.1504241031280.587@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).