Re: [Orgmode] VISIBILITY property and C-u C-u TAB

2010-10-24 Thread Carsten Dominik

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.domi...@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



___
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


Re: [Orgmode] VISIBILITY property and C-u C-u TAB

2010-10-24 Thread Michael Brand
On Sun, Oct 24, 2010 at 18:09, Gez regis...@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

___
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


Re: [Orgmode] VISIBILITY property and C-u C-u TAB

2010-10-24 Thread Michael Brand
On Sun, Oct 24, 2010 at 18:09, Gez regis...@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.

___
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


Re: [Orgmode] VISIBILITY property and C-u C-u TAB

2010-10-22 Thread Carsten Dominik


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


___
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


[Orgmode] VISIBILITY property and C-u C-u TAB

2010-10-17 Thread Gez
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 



___
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