emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preloading xwidget.el on xwidget builds?


From: Lars Ingebrigtsen
Subject: Re: Preloading xwidget.el on xwidget builds?
Date: Thu, 16 Dec 2021 06:46:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Po Lu <luangruo@yahoo.com> writes:

>> We've been trying to move to a different architecture for detecting
>> whether Emacs has been built with, and currently has access to, external
>> libraries -- `*-available-p'.  It'd be nice if xwidget had that
>> function, too.
>
> The problem is `xwidget' isn't really a library, it's a feature that
> makes use of many different external libraries.

Sorry, I mean "optionally build features".

> Ideally, people would test for the named feature `xwidget-internal',
> but the amount of people who refrained from reading the first
> paragraph of the xwidget node in the Lisp reference manual is
> astonishing.

The first rule of programming is that nobody reads the manual.

(xwidget-available-p 'webkit) could say whether webkit was available,
etc.

>> suggestion -- make `make-xwidget' require widget.el -- is the way to go.
>
> Is calling require okay from C code?  If so, that's what I'll do.

It's unusual, but to work around unfortunate dependencies like this, it
should be OK.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]