Re: [O] M-right does not demote some subheadings in a region

2014-01-20 Thread Samuel Wales
Thanks for the explanation.

On 1/19/14, Bastien b...@gnu.org wrote:
 Why does folding affect semantics?

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] M-right does not demote some subheadings in a region

2014-01-19 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 It seems to work.  Thank you, Bastien.

 I wasn't sure if this was the same bug as Susan's, but it seems to
 be.

Yes it is.

 Why does folding affect semantics?

Folding affects any function that has to deal with the visibility
state of the text.

When promoting or demoting a (set of) subtree, tags get re-aligned
automatically.  Re-aligning tags possibly manipulates invisible text
(for example when the headline contains a bracket link), so that's
where the bug came from: after aligning the tags, the point was not
left where it should be, and some subtrees where skipped instead of
being promoted/demoted.

-- 
 Bastien



Re: [O] M-right does not demote some subheadings in a region

2014-01-17 Thread Samuel Wales
It seems to work.  Thank you, Bastien.

I wasn't sure if this was the same bug as Susan's, but it seems to be.
 Why does folding affect semantics?


On 1/15/14, Bastien b...@gnu.org wrote:
 This is the same bug than the one Susan reported, and it was
 fixed yesterday.  Please update and confirm.

 Thanks,

 --
  Bastien


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] M-right does not demote some subheadings in a region

2014-01-15 Thread Bastien
Samuel Wales samolog...@gmail.com writes:

 I can't produce an ECM at this time, or compare with Susan's
 bug, but there is a serious demote bug in recent Org.

 In this tree:

 # * a
 # *** a
 # *** b
 # *** c
 # * ca
 # * cb
 # * cc
 # *** d
 # *** e
 # *** f

 If I mark b through e and m-right, everything goes under a
 as expected.  However, the entries under c do not get
 demoted.

This is the same bug than the one Susan reported, and it was
fixed yesterday.  Please update and confirm.

Thanks,

-- 
 Bastien



[O] M-right does not demote some subheadings in a region

2014-01-12 Thread Samuel Wales
I can't produce an ECM at this time, or compare with Susan's
bug, but there is a serious demote bug in recent Org.

In this tree:

# * a
# *** a
# *** b
# *** c
# * ca
# * cb
# * cc
# *** d
# *** e
# *** f

If I mark b through e and m-right, everything goes under a
as expected.  However, the entries under c do not get
demoted.

c has to be folded for the bug to occur.  That might be a
hint that can solve the bug.  I expected demotion to work
the same whether anything is folded or not.  Is that a wrong expectation?

It seems unrelated to the value of
org-loop-over-headlines-in-active-region.

Emacs 23.4 -q does not reproduce the bug.

===

What follows is a couple of Org visibility bugs, which are
in addition to the structure corrupting bug, but occur
reliably in this example.

It LOOKS like everything got demoted, but then TAB on c
shows ca under it, and also cb after it at the same level
because it is now a sibling (this is a visibility bug -- I
do not want any siblings hidden).

cb, in turn, has ellipses, which indicate children, but
there are no children (another visibility bug -- I only want
hiding when there are children).  cc gets revealed on TAB.

I have all settings set to not sparsify; that is, I like to
always have visibility include all siblings and all parents,
and /only/ hide things that are underneath other things.

However, bugs like this crop up very frequently, such as with
isearch.  I gave up trying to fix them after years of
trying.  What I want is canonical visibility at all times,
which means TAB and arrow can reproduce the state.  This does not seem
possible in Org, although in principle it should work out of the box
with show siblings and show hierarchy above set.  Right?

===

Just wanted to say there is a serious bug in demote even though I
can't bisect at this time.  Hope this description helps at least a
little.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.