[Github-comments] [geany/geany] Update sci_get_selected_text_length() after change to Scintilla 5.1.5 (PR #3099)

Thomas Martitz notifications at xxxxx
Wed Jan 12 22:27:31 UTC 2022


Not a huge fan of this but I can understand the compatibility concern. I think we do need a plan to eventually match scintilla (i.e. have a consistent API too).

E.g.
1) Introduce `sci_get_selected_text_length2()` with the new behavior and deprecate `sci_get_selected_text_length()` now
2) Remove `sci_get_selected_text_length()` at some later point
3) Re-introduce `sci_get_selected_text_length()` at some even more later point


We could also introduce some mechanism where plugins declare a API TARGET. E.g. if they target 242 (or none, because it's new) they get the old behavior, if they target 243 they get the new behavior. 
Obviously this works only for cases where we can handle the behavior change at compile time and in header-only.
At some point we could reject plugins that target too old APIs (always with good reason, not "just because").

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3099#issuecomment-1011507779
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3099/c1011507779 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220112/6daaef54/attachment-0001.htm>


More information about the Github-comments mailing list