[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Preloading xwidget.el on xwidget builds?
From: |
Stefan Monnier |
Subject: |
Re: Preloading xwidget.el on xwidget builds? |
Date: |
Wed, 15 Dec 2021 23:50:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> xwidget.el defines various parts of the internal xwidget machinery, such
>>> as the `xwidget-event' handler, and pieces of Lisp code that keep
>>> xwidget display working correctly.
>>>
>>> Using xwidget-related C functions without xwidget.el loaded can lead to
>>> crashes and display problems, so I propose to preload that file on
>>> xwidget builds.
>>
>> IME files that are preloaded in some config and not on others are
>> a source of trouble. I'd rather we fix this some other way, e.g. by
>> autoloading those function.
>
> How would autoloading solve that problem though: `make-xwidget' and such
> are defined in C code, but their display depends on xwidget.el to work
> correctly.
Depends on details I don't know, but presumably `make-xwidget` could
explicitly require/load `xwidget.el`. Or the display could end up
loading `xwidget.el` when it calls a function defined there in (by
marking those functions as autoloaded).
Stefan
- Preloading xwidget.el on xwidget builds?, Po Lu, 2021/12/15
- Re: Preloading xwidget.el on xwidget builds?, Stefan Monnier, 2021/12/15
- Re: Preloading xwidget.el on xwidget builds?, Po Lu, 2021/12/15
- Re: Preloading xwidget.el on xwidget builds?,
Stefan Monnier <=
- Re: Preloading xwidget.el on xwidget builds?, Stefan Monnier, 2021/12/15
- Re: Preloading xwidget.el on xwidget builds?, Po Lu, 2021/12/15
- Re: Preloading xwidget.el on xwidget builds?, Lars Ingebrigtsen, 2021/12/16
- Re: Preloading xwidget.el on xwidget builds?, Po Lu, 2021/12/16
- Re: Preloading xwidget.el on xwidget builds?, Lars Ingebrigtsen, 2021/12/16
- Re: Preloading xwidget.el on xwidget builds?, Eli Zaretskii, 2021/12/16
- Re: Preloading xwidget.el on xwidget builds?, Po Lu, 2021/12/16
Re: Preloading xwidget.el on xwidget builds?, Eli Zaretskii, 2021/12/16