From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Visibility cycling at end of headline Date: Fri, 24 Apr 2015 10:37:23 -0700 Message-ID: References: <87fv7qtgc1.fsf@vostro.rath.org> <87pp6u8d9b.fsf@kmlap.domain.org> <87a8xyt946.fsf@vostro.rath.org> <87egnarnce.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlhXe-0001eG-UO for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 13:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlhXa-0003hr-Pi for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 13:37:30 -0400 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:19582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlhXa-0003hM-G3 for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 13:37:26 -0400 In-Reply-To: <87egnarnce.fsf@pinto.chemeng.ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org 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