[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Elegance in XPL sought



Robert,
Follow-up question:
 Explication:
BX jmp 2 Q2     Assume leading , so JuMP to position right after it
<1>    This _should_ be row 1 -- IF not, you're still on row 0
 >    Get current  CursorPosition
Don't we know that  is 2? That's where we JMPed to. Are there
conditions in which we can Jmp to 2 and, due to multi-byte characters, not
actually be at 2?
CL CursorLeft once for each (move to beginning of row 0)

Why not just TF? or CL CL?
But maybe you have in mind a generalization of the program, so it can test for a CR-LF at any point in a file. E.g., say I want to know if there's one after "Binswanger"--I could do:

BX se /Binswanger/Q2
>
+2>>
BX jmp Q2
>> etc.--i.e., if evaluates as true, then there was a CR-LF.


Harry Binswanger
hb@xxxxxxxx