pigeonhill To the first question: Yes, all 1.7 digic 6 / 7 ports use the XIMR display method, but that's probably not relevant to the script (it is relevant to the EVF issue, which I hope to work on this weekend)
For function pointers, the bot is correct that you would need to find the equivalent for your firmware. However, all the rest of its comment is irrelevant because the three functions you mention are specific to EOS M cameras and aren't present on fixed lens cams. So you need to come up with equivalent functionality rather than just finding the corresponding function.
It looks like we had a related discussion regarding these functions
https://chdk.setepontos.com/d/14597-initializeadjustmentsystem-and-exposure-control-on-m3-was-help/28
https://chdk.setepontos.com/d/14694-lens-movementfocus-control/11
In the second one, I think you were maybe trying port the same (?) script to G5 X and G7 X, so whatever the outcome of that is would likely be relevant to G1X2
If you can share the script and describe how the existing functions work, we may be able to help come up with alternatives.