[Lazarus] Persistent Blocks and Search, revisited

J├╝rgen Hestermann juergen.hestermann at gmx.de
Sat Sep 15 14:40:57 CEST 2012


Am 2012-09-15 14:31, schrieb Martin:
 >> Why that? In general, the cursor position is completely independend from a peristent block if I invoke search.
 > It says "text at caret" not "word at caret". The determinations of the boundaries are not described.

I didn't say anything about boundaries. I only asked, why the block selection is related to the search default when the block is a persistent block. This is completely illogical and unintuitive. The block maybe somewhere out of view of the user and is still used as search default? Who wants such a behaviour? And for what reason?


 > A block/selection is a text too. Same as a word, or line, or paragraph is. A text could also be a statement (pascal statement, a limited expression (string, individual argument from a comma separated parameter list, ...))

What has this have to do with default search strings?


 >> I don't want to pay attention to this. It should work the same *all the time* (not only if the cursor is outside the block). The cursor only should decide about the search default (in all cases). Just ignore the block (if persistent).
 > In that case I am happy to accept a patch for an option.

Who wants the current behaviour? I doubt that anybody does. It is completely illogical for persistent blocks (it may have some merit for non-persistent blocks but not when blocks are persistent).





More information about the Lazarus mailing list