From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Preloading xwidget.el on xwidget builds? Date: Thu, 16 Dec 2021 06:46:54 +0100 Message-ID: <877dc5je41.fsf@gnus.org> References: <87v8zpml5d.fsf.ref@yahoo.com> <87v8zpml5d.fsf@yahoo.com> <87o85hma9k.fsf@yahoo.com> <87tuf9kv6g.fsf@yahoo.com> <87czlxjfyl.fsf@gnus.org> <87mtl1kud0.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12847"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 06:49:33 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxje1-00036e-AA for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 06:49:33 +0100 Original-Received: from localhost ([::1]:34422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxjdz-0005OT-P6 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 00:49:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxjbi-0004hK-1L for emacs-devel@gnu.org; Thu, 16 Dec 2021 00:47:10 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=49514 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxjbf-000723-4p for emacs-devel@gnu.org; Thu, 16 Dec 2021 00:47:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ss5WnFfY1wf73i6eAFGOxGJIFilmlMKJ1lMCuUDANkA=; b=NYNoWPRQ8W9hVkI/D4v89qML6/ 7BNWKzpo2fmHu9W9VUc4HoNHpPTPICURjQwCOLtwKEhtf6ErEG92b//Jhmh1upvkxsXQfqUQJmovp z326LMd1wvdY2G/SqtLISejb3VHMlBfO5hz8yOPPse/W8NE/smEFypVdT9kbhcmmRcHs=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxjbV-0003KU-SR; Thu, 16 Dec 2021 06:47:01 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWxr6rZ1MiGgns1 MzH///9Axw47AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UMEAUsI4IpQjgAAAGESURBVDjLdZOJjcQg DEVtaMDONMDRQIL7720/BnJpgzQj4sf3CUTEyool2Ahh9X/fzO9/1if4XPwF9L3urmcaTyBv5WU4 i+ky5gH0HqOWcKQ0/d5BSEQhvBRbSd0ZD4+QyDxsZjCW/AICux0PxRBE2IkDBRF6KKpZClpbaqE8 ABQJR4W5Jzpb2FHleLZkABGBQbLyVc6og3tTxJN5KjyKB/IaNO66BjWBeOnFbAWX6T50ICnVvOYx nEsKmXQjsnx6QmiBABb5LdDn4vlsezWSQElmDJUBYqvNrCnFvIBXAH8FCWX0ZgCeAIkFQqZqtj9B 0Jgp6GazjlFCUvRQdhzq8+ILsHBMujH9TjAah8wi/JPZDbDfPf0B9ADWFujFFbi0MXg7ziYCNGbM cIDtbHtXAMcm1QXHBYSyIEjrgriAOsBV80ythZovsMkJrM/gUshKyUyEr6wAjgkarqncgWUHpZ0v k/2plZLwK6niBj8e7Fh7L8T+efEj/MuI10fRPhTB8/LtHw6CQir5aoJ0AAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIxLTEyLTE2VDA1OjQ0OjM0KzAwOjAwAI3eOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy MS0xMi0xNlQwNTo0NDozNCswMDowMHHQZoUAAAAASUVORK5CYII= X-Now-Playing: Hector Zazou's _Reivax au Congo_: "Generique" In-Reply-To: <87mtl1kud0.fsf@yahoo.com> (Po Lu's message of "Thu, 16 Dec 2021 13:10:35 +0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282115 Archived-At: Po Lu 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