bugDenemo - Bugs: bug #30431, Delete deletes too much

 
 

bug #30431: Delete deletes too much

Submitted by:  None
Submitted on:  Tue 13 Jul 2010 05:12:05 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: -Deleted Account- <steele>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 13 Jul 2010 10:51:38 PM UTC, comment #1:

This script does fine:

;;;;Intelligent Delete. If selection present it deletes the whole selection. For single notes it deletes the note on the cursor or an empty measure.
(SingleAndSelectionSwitcher
"(begin
(d-DeleteObject)
(if (MeasureEmpty?)
(begin (d-DeleteMeasure)
(GoToMeasureEnd)))
)"
"(d-DeleteSelection)")

-Dan W.

(file #20963)

Anonymous
Tue 13 Jul 2010 05:12:05 PM UTC, original submission:

If you delete all the notes in the final bar using the delete key bound to IntelligentDelete, the cursor jumps to the beginning of the previous bar--which has the disastrous effect of deleting the notes in that bar if you hold the key down. (you would normally expect to just delete what's in front of the cursor when you hit delete).

Seems to be a feature of the DeleteMeasure command for single staffs--it moves to the beginning of the previous bar. Better, I think, would be to end up at the end of the previous bar, at least for this command.

For now, this mod of the IntelligentDelete script works:

;;;;Intelligent Delete. If selection present it deletes the whole selection. For single notes it deletes the note on the cursor or an empty measure.
(SingleAndSelectionSwitcher
"(begin
(d-DeleteObject)
(if (MeasureEmpty?)
(begin (d-CursorLeft)
(d-DeleteBarline)))
)"
"(d-DeleteSelection)")

I'm a bit leery of the DeleteBarline script. It looks strange--I'll see if I can comment it better if it's right.
-Dan W.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #20963:  IntelligentDelete added by None (683B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by steele (Updated the item)
  • -unavailable- added by rshann (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 Dec 2010 01:14:54 AM UTCsteeleStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 17 Jul 2010 11:05:18 AM UTCrshannAssigned toNone=>steele
    Tue 13 Jul 2010 10:51:38 PM UTCNoneAttached File-=>Added IntelligentDelete, #20963

    Back to the top


    Powered by Savane 3.1-cleanup1