In 0.9.26 Lazarus deletes to the end of the current token. (Note current 
SVN behaves different)
 |foo_bar := 1;

deletes as follows
 foo_bar
 <space>
 :=
 <space>
 1
 ;

There is a request to include deletion of the space, into the deletion 
of the word before it
 foo_bar<space>
 :=<space>
 1
 ;

While this would be no problem if the cursor was at the beginning of a 
word, this may be an issue if the cursor is in the middle of o word
  foo_b|ar  and  xyz
would be    foo_b|and  xyz
instead of   foo_b|  and  xyz

On the other hand, the 0.9.26 behaviour means that
  foo_bar|  and  xyz
means 2 ctrl-t, to delete "and", since the first only deletes the <space>

see also http://bugs.freepascal.org/view.php?id=12583

--------------
My opinion is that handling the spaces as n entity of there own, which 
can and will be deleted by a ctrl-t of its own, allows the best flexibility.
Always deleting the spaces with the current word, leads to unwanted 
situation, if the cursor is in the middle of a word.

A 3rd option is to make it context sensitive, depending on the cursor 
being at the start of the word (open-office and word do that). I am not 
necessarily a fan of it.


Any opinions?

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to