bugDenemo - Bugs: bug #31513, d-DeleteSelection should not...

 
 

bug #31513: d-DeleteSelection should not delete the empty measures

Submitter:  -Deleted Account- <steele>
Submitted:  Mon 01 Nov 2010 11:17:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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.

-Deleted Account- <steele>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by steele (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-10 steele StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code