Visuwesh <visuwe...@gmail.com> writes:

>> One way to check for pgtk is checking the result of
>> (window-system). Or checking whether `pgtk-backend-display-class' is
>> `fboundp'.
>
> I don't think we should use (window-system) since the return value is
> FRAME dependent: if Someoneā„¢ opens a terminal frame first and loads Org
> while it is focused, they won't get this fix even if their build is a
> pgtk build.  C:
> [ I think this will definitely break for daemon processes.  ]
>
> We could rely on (fboundp 'pgtk-backend-display-class) but I somehow
> don't like it as compared to just leaving this extra check out.

We can use (foundp 'pgtk-get-selection-internal).
And we kind of need to. At least, to pacify the byte-compiler.

Also, please check that the method is not yet defined. We do not want to
overwrite an existing method if it is defined by user/other package.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to