emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* VISIBILITY property and C-u C-u <TAB>
@ 2010-10-17 15:41 Gez
  2010-10-22 16:14 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Gez @ 2010-10-17 15:41 UTC (permalink / raw)
  To: emacs-orgmode

I've just discovered the VISIBILITY property, although I had some trouble 
working out how to apply it .I discovered C-u C-u TAB from reading 
http://thread.gmane.org/gmane.emacs.orgmode/6623.  C-u C-u TAB is documented 
in the reference card but not in the manual or on worg as far as I can see - 
Shouldn't it be added?  Also shouldn't VISIBILITY be listed with the other 
"special properties" in the manual etc?

I'm using it to mark sub-projects (level 2,3 etc) with :VISIBILITY: folded 
(or :VISIBILITY: content when they also contain a sub-sub-project). When 
sub-projects are folded into their projects (level 1) I miss out on an 
overview of all projects.  Using C-u C-u TAB I can see all non-level-1 
headlines that I've marked because they are parents of tasks, and then I can 
visit them locally with TAB.  It's very useful in conjunction with the 
counter cookie, and in column view.

I have a query about the C-u C-u TAB command.  When I've just edited or used 
S-TAB (no matter which part of the global cycle it's on) C-u C-u TAB works 
as I would expect.  But if I've just used TAB, C-u C-u TAB cycles 
hrough  -> CONTENTS -> SHOW ALL etc, even while the mini buffer displays 
"startup visibility plus VISIBILITY properties" at each stage of the cycle. 
C-u C-u TAB also cycles when it's repeated.  I find it hard to keep track of 
whether it will cycle or not while I'm using it to view areas of the 
outline, so in effect, the only way I feel sure I can quickly return to my 
desired startup visibility is with S-TAB C-u C-u TAB, which is a lot of 
keystrokes! So my questions are - is this expected behaviour?  Can it be 
changed?

Gez
Windows XP, GNU Emacs 23.2.1, Org-mode version 7.01trans 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-17 15:41 VISIBILITY property and C-u C-u <TAB> Gez
@ 2010-10-22 16:14 ` Carsten Dominik
  2010-10-24  6:43   ` Michael Brand
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-10-22 16:14 UTC (permalink / raw)
  To: Gez; +Cc: emacs-orgmode


On Oct 17, 2010, at 5:41 PM, Gez wrote:

> I've just discovered the VISIBILITY property, although I had some  
> trouble working out how to apply it .I discovered C-u C-u TAB from  
> reading http://thread.gmane.org/gmane.emacs.orgmode/6623.  C-u C-u  
> TAB is documented in the reference card but not in the manual or on  
> worg as far as I can see - Shouldn't it be added?  Also shouldn't  
> VISIBILITY be listed with the other "special properties" in the  
> manual etc?

Would you like to make a patch?

>
> I'm using it to mark sub-projects (level 2,3 etc) with :VISIBILITY:  
> folded (or :VISIBILITY: content when they also contain a sub-sub- 
> project). When sub-projects are folded into their projects (level 1)  
> I miss out on an overview of all projects.  Using C-u C-u TAB I can  
> see all non-level-1 headlines that I've marked because they are  
> parents of tasks, and then I can visit them locally with TAB.  It's  
> very useful in conjunction with the counter cookie, and in column  
> view.
>
> I have a query about the C-u C-u TAB command.  When I've just edited  
> or used S-TAB (no matter which part of the global cycle it's on) C-u  
> C-u TAB works as I would expect.  But if I've just used TAB, C-u C-u  
> TAB cycles hrough  -> CONTENTS -> SHOW ALL etc, even while the mini  
> buffer displays "startup visibility plus VISIBILITY properties" at  
> each stage of the cycle. C-u C-u TAB also cycles when it's  
> repeated.  I find it hard to keep track of whether it will cycle or  
> not while I'm using it to view areas of the outline, so in effect,  
> the only way I feel sure I can quickly return to my desired startup  
> visibility is with S-TAB C-u C-u TAB, which is a lot of keystrokes!  
> So my questions are - is this expected behaviour?  Can it be changed?

I believe I have fixed this, please verify.

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-22 16:14 ` Carsten Dominik
@ 2010-10-24  6:43   ` Michael Brand
  2010-10-24 16:10     ` Carsten Dominik
  2010-10-24 16:09   ` Gez
  2010-10-26 11:46   ` Gez
  2 siblings, 1 reply; 8+ messages in thread
From: Michael Brand @ 2010-10-24  6:43 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Gez, emacs-orgmode

> 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
<carsten.dominik@gmail.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-22 16:14 ` Carsten Dominik
  2010-10-24  6:43   ` Michael Brand
@ 2010-10-24 16:09   ` Gez
  2010-10-24 17:54     ` Michael Brand
  2010-10-24 21:24     ` Michael Brand
  2010-10-26 11:46   ` Gez
  2 siblings, 2 replies; 8+ messages in thread
From: Gez @ 2010-10-24 16:09 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1300 bytes --]



 
> On Oct 17, 2010, at 5:41 PM, Gez wrote:
 C-u C-u  
>> TAB is documented in the reference card but not in the manual or on  
>> worg as far as I can see - Shouldn't it be added?  Also shouldn't  
>> VISIBILITY be listed with the other "special properties" in the  
>> manual etc?
> 
> Would you like to make a patch?

I would like to and I read http://orgmode.org/worg/org-contribute.php#sec-3 but I don't have git.
 
>> I have a query about the C-u C-u TAB command.  When I've just edited  
>> or used S-TAB (no matter which part of the global cycle it's on) C-u  
>> C-u TAB works as I would expect.  But if I've just used TAB, C-u C-u  
>> TAB cycles hrough  -> CONTENTS -> SHOW ALL etc, even while the mini  
>> buffer displays "startup visibility plus VISIBILITY properties" at  
>> each stage of the cycle. C-u C-u TAB also cycles when it's  
>> repeated.  

> I believe I have fixed this, please verify.

I'm still getting the same behaviour (i.e. not fixed), using org-latest.zip which I just downloaded today from http://orgmode.org/org-latest.zip.  But my version still says Org-mode version 7.01trans so perhaps I'm not testing the fixed version.  Sorry if there's something I'm misunderstanding.

Gez
(Windows, GNU Emacs 23.2.1, Org-mode version 7.01trans)

[-- Attachment #1.2: Type: text/html, Size: 2592 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-24  6:43   ` Michael Brand
@ 2010-10-24 16:10     ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-10-24 16:10 UTC (permalink / raw)
  To: Michael Brand; +Cc: Gez, emacs-orgmode

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
> <carsten.dominik@gmail.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-24 16:09   ` Gez
@ 2010-10-24 17:54     ` Michael Brand
  2010-10-24 21:24     ` Michael Brand
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Brand @ 2010-10-24 17:54 UTC (permalink / raw)
  To: Gez; +Cc: emacs-orgmode, Carsten Dominik

On Sun, Oct 24, 2010 at 18:09, Gez <register@geekanddiva.com> wrote:
> I'm still getting the same behaviour (i.e. not fixed), using org-latest.zip

I guess only because this snapshot is not recent enough because its
update is broken. If the download contains old files like e. g. org.el
from mid of October you might read here:
http://thread.gmane.org/gmane.emacs.orgmode/32427

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-24 16:09   ` Gez
  2010-10-24 17:54     ` Michael Brand
@ 2010-10-24 21:24     ` Michael Brand
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Brand @ 2010-10-24 21:24 UTC (permalink / raw)
  To: Gez; +Cc: emacs-orgmode, Carsten Dominik

On Sun, Oct 24, 2010 at 18:09, Gez <register@geekanddiva.com> wrote:
>> Would you like to make a patch?
> I would like to and I
> read http://orgmode.org/worg/org-contribute.php#sec-3 but I don't have git.

If you would like to this can also be hacked without git. For the
first few patches on only one or two files I just downloaded the most
recent version of the file(s) to be changed like e. g. doc/org.texi or
lisp/org.el starting from
http://repo.or.cz/w/org-mode.git/tree
with the right most link `raw', made a copy of the file, changed the
copy and after that made a `diff -up file_original file_changed'. To
make this diff look like it came from git-diff I manually hacked the
lines with --- and +++ to look like the commitdiff that can be seen in
the history of the files on the above links and then posted this
modified patch.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: VISIBILITY property and C-u C-u <TAB>
  2010-10-22 16:14 ` Carsten Dominik
  2010-10-24  6:43   ` Michael Brand
  2010-10-24 16:09   ` Gez
@ 2010-10-26 11:46   ` Gez
  2 siblings, 0 replies; 8+ messages in thread
From: Gez @ 2010-10-26 11:46 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


----- Original Message ----- 
From: "Carsten Dominik" <carsten.dominik@gmail.com>
To: "Gez" <register@geekanddiva.com>
Subject: Re: [Orgmode] VISIBILITY property and C-u C-u <TAB>


> 
> On Oct 17, 2010, at 5:41 PM, Gez wrote:
>> I have a query about the C-u C-u TAB command.  When I've just edited  
>> or used S-TAB (no matter which part of the global cycle it's on) C-u  
>> C-u TAB works as I would expect.  But if I've just used TAB, C-u C-u  
>> TAB cycles hrough  -> CONTENTS -> SHOW ALL etc, even while the mini  
>> buffer displays "startup visibility plus VISIBILITY properties" at  
>> each stage of the cycle. C-u C-u TAB also cycles when it's  
>> repeated. > 
> I believe I have fixed this, please verify.
> 
> - Carsten
>

Yes, fixed in my setup now (just downloaded snapshot today).  Thank you.

Gez

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-26 11:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-17 15:41 VISIBILITY property and C-u C-u <TAB> Gez
2010-10-22 16:14 ` Carsten Dominik
2010-10-24  6:43   ` Michael Brand
2010-10-24 16:10     ` Carsten Dominik
2010-10-24 16:09   ` Gez
2010-10-24 17:54     ` Michael Brand
2010-10-24 21:24     ` Michael Brand
2010-10-26 11:46   ` Gez

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).