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

 
 

bug #30431: Delete deletes too much

Submitter:  None
Submitted:  Tue 13 Jul 2010 05:12:05 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  steele
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
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
  • -email is unavailable- added by steele (Updated the item)
  • -email is unavailable- added by rshann (Updated 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-11 steele StatusNone Invalid
        Open/ClosedOpen Closed
    2010-07-17 rshann Assigned toNone steele
    2010-07-13 None Attached File- Added IntelligentDelete, #20963

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code