Mon 01 Nov 2010 11:17:43 PM UTC, original submission:
Currently we have no way of just deleting the objects of a selection but leaving the measures intact.
All basic, and scripted commands, destroy the selection after deleting a single object. But deleting a selection through recursion with this is not possible.
d-DeleteSelection is the only command that can delete a selection (besides d-Cut) but does delete the measures, too.
DeleteSelection is ONLY used in intelligentDelete currently so its still safe to change the behaviour.
What we need is either a change in DeleteSelection to not delete the empty measures and leave that to a scheme script, if desired (the very reason why I'm sending this request is that I don't like my own IntelligentDelete anymore and don't want to delete measures).
Or we need a DeleteSingleObject without touching the rest of the selection. I once heard this was hard to do so maybe the first option is well enough.
The Scheme versions would be hacks currently:
a) place a directive at the start of the selection and then backspacing from the end to the start directive.
b) pop and push the selection and do d-Cut in between.
While I don't like a) I find b) unacceptable.
There is c) which would be something like remembering the range of the selection (with directive/markers?) and then recreating the selection each time. This is some kind of DeleteSingleObject hack.
|