Post by Jean-Marc LasgouttesPost by Scott KostyshakIf you are inside a branch inset and inside another inset (e.g. Note),
C-M-a will select everything in the note. If you are inside a branch
inset and not inside any other inset, C-M-a will select everything
inside the branch inset. These two behaviors are the same with and
without the patch. What is different is that if you are outside every
inset, C-M-a without the patch selects the entire text of the buffer.
This is not very useful because if that was the intention of the user,
why not just do select all? With the patch, if you are outside every
inset, C-M-a does section-select.
Yes, I understood what it does. What I said is that the behavior of a
command should not depend on the context in this way. Assuming that people
find it very nice to select sections with C-M-a, then this behavior should
work in branches/notes too.
Ah, I see now. I thought you were concerned that I was changing
something but you're concerned that I'm _not_ changing something and
that it leads to inconsistency.
I'm not at all convinced that people would find it very nice. I would
like feedback on this.
Post by Jean-Marc LasgouttesA possibility could be to disable section-select when there is no section to
select and to bind C-M-a to
command-alternatives section-select ; inset-select-all
[My definition in the following paragraphs of "the section you're in":
the section that contains your cursor, even if the cursor is not in
the section title.]
Makes sense. I wanted to extend section-select to select the section
you're in, as I define that phrase above. This would not allow me to
purse your proposal though. But perhaps extending section-select to
work that way was not a good idea anyway for other reasons?
Even if users would find the ability to select a section useful, maybe
it would make more sense to make a new shortcut instead of trying to
interfere with inset-select-all.
Still, I think that inset-select-all should be disabled outside of
insets. The entire buffer is not an inset, so it should not be
selected.
Scott