From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Preloading xwidget.el on xwidget builds? Date: Thu, 16 Dec 2021 12:41:43 +0800 Message-ID: <87o85hma9k.fsf@yahoo.com> References: <87v8zpml5d.fsf.ref@yahoo.com> <87v8zpml5d.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="13233"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 05:47:30 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 1mxify-0003Dx-US for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 05:47:30 +0100 Original-Received: from localhost ([::1]:47272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxifx-0005JQ-S3 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 23:47:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxiaa-0002lp-Mz for emacs-devel@gnu.org; Wed, 15 Dec 2021 23:41:57 -0500 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:39842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxiaZ-0006T5-35 for emacs-devel@gnu.org; Wed, 15 Dec 2021 23:41:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639629713; bh=J88yCcHhzMbtAJD7xmqFORx4KYt38tb8a0gXX83RWdg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=lhmOgQ/BK3MMY6shHVEDR5NuqlfMdcKgw5R8cdMsw34L/KjMneHAyndalBQHSfSfqivxTJV8OoT/hJ3B7c8B6SHw/IycTpIOwQb/MXbKlZL68vYY1hufme7KMXpKU+ovWtEIf3/xQoSMuIY+TtjA3qFT8zN49Zt2RHao7kNxRU9mYN2/LvRiM9QpZC4mw/GGN/2Py0CzUR58e+SRuAYNu1hJijEsnY18MJS5OVa69cLMjWURg2ftrpfQexl1hSpVRciTlxy5ihHg6ibqqt9aNlK1GaZFKveQua0CqHm1p//OZBrGDOoGWMbOBHuNG2NaDhldsIv6Cq/ShU0YBGfv2A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639629713; bh=53zqKALNzLf2r6GiTp2FpwRv05xEu/wEQFJ54pAfWRS=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VijhoCF9UBlKNZB7wju+cfclqSuumyVjpC1fb+7ekHt3UwSerZv39Ig2F2OU5n2FJ0Kw2oKlB3WKSpCa/vu0SHCDqek21GR3Q9RyqTTyvfXgSt+TLfv2WzXdIIXan0ze+RT9um6FSFiId51ChOStRc6d17kWBD/anZp0xyg3qUOFQzizzPQVyDiu2PttR5mVdXIk/ZSRhiZI0bWBmFi1Qbe642NOy71BJPksJ0IN+GTyqJngdpV0pc+qoMn9yjhPRCXxWJxO2PL1bRj4/wI/MxYqnkaDY+PRHGs0slQ/tF0ziVcB7PntsAEe3fPRqNXE+Q1YQ5HJUjsIssV18S83NQ== X-YMail-OSG: 4gQky98VM1l6GkHa8zYEpuV.4m36c2kRaYcrfwjTXbTcSI.iSvQ1.MkmIFknJMq h7GvRSf.pb3uTMmKyq1FuIuhvt3T9faRC7KBorlDCIuXZef07L0IKvlVqKOiEfc4bpql4jYxzYkj xw0CxvfsQsrjaQvNl1E9PuA1fSAeUnFPaKeGdUm.EMCWG5D1NRshNPCVJcbEJn73Yjj3YeUIS1.u Ppwzd14XXQXsgZr18Xjyc3W.A7juVOm.4M0Sq11xSlnsVQwzv_CTvusEIYPiX706qrg4MeG8tbEE mKPw3UGBxueOf3aG6Y.nbppli1oYZvOnUiR1UimUdg1nQBbPRhDio6WFHrOoTMOLe7aNYJHCeJ0T DT.MOo1Owg3wAVcndzEOJMjk.ZMUO1IlQ_wCtzPj._3O86BnJ632UAIvvv2ARESipYtRdfHbor4r 4lC2w_KnKt.rbwMcQgYN5T9KFPzRV93gg_ssLd_zsvIzEuD2NJtOV9UnbwksiMRtufFUuyiwrmm2 pXxu2hYFjFQ8itQ.IOaemj7VtbNEnvSl9fZ3B4NUcIX_DnUlSM0f_ewpCclOY1hWk0U5HAxJs_KL 1bRaqDJMGJF7Uwe_3RPe9jilxYMgQ4.GpbtRaZsnAb9dq7qqD0od1pYyGgdseB_2XYFJL7iJCIYE l7BCwY8O2ep7Wq97MpfGjdu7AO35gUvtZ1beYex7hGcC2gzXFj2.OliyNTxakIv5uT9P150Zyrht PNFgu1HgrVgSVljqGqLmbdgLpFsDlep6g48l.LaBllyrilL045JIFl83B7bjRxBifDCY9nZ0m6aa YJjLA0tYA3kC36zV_CnXf1kYdOHfQOnO9h.uz1wK4H X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 16 Dec 2021 04:41:53 +0000 Original-Received: by kubenode518.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a53c30a5ed3f8f62ecdd147b5551505b; Thu, 16 Dec 2021 04:41:47 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Wed, 15 Dec 2021 23:33:58 -0500") X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:282096 Archived-At: Stefan Monnier writes: >> 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. Thanks.