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:06:58 +0100 Message-ID: <87czlxjfyl.fsf@gnus.org> References: <87v8zpml5d.fsf.ref@yahoo.com> <87v8zpml5d.fsf@yahoo.com> <87o85hma9k.fsf@yahoo.com> <87tuf9kv6g.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="30380"; 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:08:46 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 1mxj0Y-0007jW-C5 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 06:08:46 +0100 Original-Received: from localhost ([::1]:43666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxj0W-0007X8-Nb for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 00:08:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxiz0-0005Fx-4a for emacs-devel@gnu.org; Thu, 16 Dec 2021 00:07:10 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=49160 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 1mxiyy-0005Wx-6K for emacs-devel@gnu.org; Thu, 16 Dec 2021 00:07: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=1EWEOBmhQLmMPQPjK+boptiJyOwp0Onca+2z+0xX1vc=; b=T6ytYc1KqGTrTkM1yz3pcTMx8C JfbIDFVQFLIw+hTGnPp/pWWYlh4bI5RCgiWW2OiqYYXy1t3D9+6iOm+AkR01OCOIT+o4uJCleM3DQ +MTfHZdlBncHXuIpqESGLVqGmuQo21P0fPjV6UcUpafMpDjrndaRaYPtS/aZU5veuvzk=; 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 1mxiyp-00031n-Cr; Thu, 16 Dec 2021 06:07:02 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEUOCwkhHRsvKypN SVAdHiEkIR1CPUVFQDpkYWaHi5x2d4Q9OEN4f5T///+DbfaYAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UMEAUCLBmRVoUAAAFoSURBVDjLldS9bsIwEADgM1J2H1I6x04zMYGlCNGtT4Crpg9Axk5Nhz5A GFDnPkLfAImlax+stpPY5/wMPQTE/uy7C44AmIl1Lu5hHrLjLLC7KXD3ucr0aCnrvhNx9IvMLDB/ KTIgo3AJQtA85LoQYUznocjIBpcn6QYyC+k7WAewY+S0MtmBgIgUGjHkRoQJ2HQsBtZ0qRhaoLfU vAXgEWz74jbILXqwfZkeA3x4sImaAO8R5ATO8cnNASsqnQ49s/3Z/+CJgafnMSBq2u0AAKnWusIi 5Ygpd/Dl5qu1lDIqfnFg11VVDN8wG/8AHtUg8cgXYLUIxwVIejiMgS2l6ttin0s7JtA/01MY3IDE 0bE6MF1JKaQskFbo4OHnJFLdg+/BHNRmU5e1Mns4B//8ssMvlHmp9peLKnfkFC2o+vWqlDJkwlTr sr5sob6q2rzafatUmZu3rAr3f3G75apVLnbKwklKA/wPU1FHj0kzArwAAAAldEVYdGRhdGU6Y3Jl YXRlADIwMjEtMTItMTZUMDU6MDI6NDQrMDA6MDC3j9TlAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIx LTEyLTE2VDA1OjAyOjQ0KzAwOjAwxtJsWQAAAABJRU5ErkJggg== X-Now-Playing: Antonymes's _(For Now We See) Through A Glass Dimly_: "Fatal Ambition" In-Reply-To: <87tuf9kv6g.fsf@yahoo.com> (Po Lu's message of "Thu, 16 Dec 2021 12:52:55 +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:282108 Archived-At: Po Lu writes: >> Or we could move `make-xwidget` to `xwidget.el` and rename the >> C function to something like `internal--make-widget`. > > Hmm, good idea. > > How can I make autoloads conditional on a build configuration though? A > very large amount of code uses (fboundp 'make-xwidget) to detect xwidget > support, and breaking that would be very inconvenient. 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. But as you point out, people test for `make-xwidget' today, so we can't really move it to Lisp, I think. So I think Stefan's first suggestion -- make `make-xwidget' require widget.el -- is the way to go. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no