From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: VISIBILITY property and C-u C-u Date: Sun, 24 Oct 2010 18:10:17 +0200 Message-ID: <2148E9A4-3B2D-45FB-8DE2-C0882135D506@gmail.com> References: <1ADD256551CD486E9D4C1122FE9D7CF7@alice> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=48690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA39n-00057M-EH for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA39K-0004KB-Bo for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:10:23 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA39K-0004K1-7K for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:10:22 -0400 Received: by eydd26 with SMTP id d26so1127321eyd.0 for ; Sun, 24 Oct 2010 09:10:21 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Gez , emacs-orgmode@gnu.org Applied, thanks. - Carsten On Oct 24, 2010, at 8:43 AM, Michael Brand wrote: >> On Oct 17, 2010, at 5:41 PM, Gez wrote: >>> C-u C-u TAB also cycles when it's repeated. > > I have also noticed this buglet and have used a workaround until now. > > On Fri, Oct 22, 2010 at 18:14, Carsten Dominik > wrote: >> I believe I have fixed this, please verify. > > Thank you for this, it resolves both `C-u C-u TAB' and > `C-u C-u C-u TAB' except for the special case with the variable > org-cycle-global-at-bob. For this special case I suggest additionally: > > ============================================================ > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -5772,7 +5772,8 @@ in special contexts. > `org-cycle-emulate-tab' for details. > > - Special case: if point is at the beginning of the buffer and there > is > - no headline in line 1, this function will act as if called with > prefix arg. > + no headline in line 1, this function will act as if called with > prefix arg > + (C-u TAB, same as S-TAB) also when called without prefix arg. > But only if also the variable `org-cycle-global-at-bob' is t." > (interactive "P") > (org-load-modules-maybe) > @@ -5798,7 +5799,7 @@ in special contexts. > (if nstars (format "\\{1,%d\\}" nstars) "+") > " \\|\\([ \t]*\\)\\([-+*]\\|[0-9]+[.)]\\) \\)")) > (t (concat "\\*" (if nstars (format "\\{1,%d\\} " > nstars) "+ "))) > - (bob-special (and org-cycle-global-at-bob (bobp) > + (bob-special (and org-cycle-global-at-bob (not arg) (bobp) > (not (looking-at outline-regexp)))) > (org-cycle-hook > (if bob-special > ============================================================ > > Michael