|
Post by Stefan on Jan 4, 2023 13:03:23 GMT -5
George,
I notice that a FIND ALL <whatever>... command will happily highlite all occurences of the <whatever> in all lines.
However, a CHANGE ALL <whatever>... command only highlites the LAST (right-most) occurrence that was changed on each line.
This leads to some confusion when you're left with a message like "Chars <whatever> triggered change processing 15 times in 6 lines"
When the lines are long, possibly involving scrollling left & right, it becomes cumbersome to find the multiple changes on any given line.
Is it practical for CHANGE to work like FIND and highlite each change, even when there are multiple occurences on the same line?
|
|
|
Post by George on Jan 4, 2023 15:06:03 GMT -5
Stefan: I just did a CHANGE ALL XXX YYY type command and all change instances were hi-lighted.
??
|
|
|
Post by Stefan on Jan 4, 2023 16:01:17 GMT -5
George, I'm both embarrassed and perplexed.
I thought that CHANGE usually works the same way as FIND when it comes to hiliting the relevant strings. And you're right of course, it does. So why doesn't it do so for my REXX file? I took the example lines from the REXX file to a "NEW" edit session and CHNAGE works correctly there - profile was DEFAULT. Then took them to another REXX file and CHANGE does not hilite ALL occurences on the same line. The screen capture below shows the result after a C ALL xxxxx xxxxx
So I set the DEFAULT profile to the same settings as the REX profile and repeated the test. CHNAGE worked perfectly. Any idea what's causing the effect in the picture? (apart from the fact that I can't spell CHANGE! )
Update - in case it helps
|
|
|
Post by mueh on Jan 5, 2023 3:36:03 GMT -5
Hi Stefan CHANGE fails if Colorize file rex.AUTO exists . (Even it's just one comment line)
|
|
|
Post by George on Jan 5, 2023 9:23:34 GMT -5
Wow! Very interesting effect.
George
[UPDATE] Found and corrected. The routine for altering the Scheme attribute was accidently resetting other non-Scheme attribute flags. (It helps to use the correct mask equate)
[/UPDATE]
|
|
|
Post by Stefan on Jan 5, 2023 11:03:28 GMT -5
mueh,
I can only echo George's remarks... WOW! Thank you.
|
|