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: [PATCH] xwidget.el: call set-window-buffer after xwidget-webkit-mode. Date: Tue, 09 Nov 2021 15:29:05 +0800 Message-ID: <87r1bp948u.fsf@yahoo.com> References: <324d3567.312b.17d03488e9d.Coremail.tumashu@163.com> <87v91194z3.fsf@yahoo.com> <1b9bd069.3f81.17d0396a22c.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6868"; 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: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 09 08:31: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 1mkLbc-0001bm-PG for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Nov 2021 08:31:44 +0100 Original-Received: from localhost ([::1]:48434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkLbb-0001KM-Gh for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Nov 2021 02:31:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkLZK-0007JE-Hm for emacs-devel@gnu.org; Tue, 09 Nov 2021 02:29:22 -0500 Original-Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:37956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkLZG-0007fB-GQ for emacs-devel@gnu.org; Tue, 09 Nov 2021 02:29:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636442956; bh=F9qPmRRaupFxuOxfFTQdFWLrULPz4u2DbQ4oKt+ZBp4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=UgZEgN2B4I0JHN9XtW3uDw6rbBZvI6c9/eSMWF1tKyCodK6kE/uZwpgw9Ob7ql8Ca3XDntqXGWJqn8j/LIorIRzluOfmCLRs9ldK9J+6KlKQ/hL5dO7vxxeTK+0+bhemtYyX6xa9wzcVVxio7+EBZ48ng3WWFUUHJLokPkFmwkRTOiFvSQ015CoHTNlnxbobnsoi3ctrJC2MmY44Jj13/FWsaCAYcwr47S1IurQ3pBQ5uLKebMPZLdFtU38GBFnIs/Subd1VpuJuVwZXt8X0m7WdnWKrLdp1NHd58rTsdiBVkvzK6i8smDHzXX6DanvJZIKsowmKGIAnySp2s3xAwg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636442956; bh=i/CtF1O7plUFW5GCM07gYsH+RtNjsR074GDFeAmOUma=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=UbHmSw4EEOm1MxQBeJBN5TgJq66a1wNnCgYyIKCKX7dtUb/axXuHmOVyie5Jmv6PMXU9A+6cwWgEJxsdF3HVomt3A820yvo2TJpdbmFtNcwx6Kc/QTjHgYzWHLCo18GAHfVs1hd9KXnK901BYHMD0S00lSTwuGk+J5SoTXfOwyRJLjpGXsU8YkExKWSw6KgfcufLLNU6+4OP6A1n1p5q2qnrx7iNXvFXsqpB+ZG2Ml9GTNZGdk3faZ4vAcHYP7NuUXuVHzQsJ4rzJi4eT9tQ06DJFEUSoQJZlJNvV48KWMhAjjRFlqQzVqyiT3AMl3kvXG9y1FgLKV7GjN5HC66vaw== X-YMail-OSG: ZdtdzP8VM1nxELM4NV8HD..wcTlufUMBNdGmQXIlelVWbG7HgfgSWe5acsplviL dnzrt3T2C8C3OxmfPbXdAVq_ucaXLFP6OyiCNz7F9O3mmCKjU8gV3F1637QkT7ra49f4Jrsye3BU o7myanE0sdRS6Aqm3.4Mu1rLkn4qDSZAqwxWqDC1mWriVXLpocCMowhydXpbnRrJoIbzWDOofMWR wluvQqMf1HDh0YmdJahh5EQhs6uUO31EZav6PU1ThQE3iuytt73trbXoyipFaGIyaS_aGQ.0ln9e 4Md3f2T3m27Rag43wf8FK49z7t0lPetPfYwAt96FIXfg3PgFuADjIuBM1rm5l6ERQDP2BpqZqgUs Q8wVR4Bmsq8kQ5m7u3A9WhBXeyGROlyr7UZsrbj_sfx3k_oPRLfBZLtmtspb1Ag9DOklGj5iqPEU 4d8DWgJRy61AOoD43aM00mUbXCJmzYVmXWB1YU8_vcfkvR4h2te0SVqgrlXVcNwpu5Iqa0UFM3Sy xzXaempLpMBwmPFEYgFWW7bF8TN6ygnDAiLSwd3TGnIm1QyEtk8kyBSGNbEGq2SrEfCCj6g2WBiM Ev8ywXq1iTL1Xj.cFWAhu0nt2BlYcNqw6s9JGSth2lE2JqNp5R5xyq7L6H_Krg1oDwjZnVUwM9CU QUuxhfpX88qCXvCPG8ic5WIwCL5Y72KhtD1Tn4kH9Z5r7ozN1P1KLaBYQLh_J.zcHAkV.Zw.Nn7h acOB5Ea1.U9ner._SeAWHesXDnaAoWQl6I3BAjvzIDq8LYlZ46Gfp7.6GwhOUEU1tOVRvjid.8dM fTy2BTgVLJWkNyFY.hYNyUqGQgAcHAIqWGe_CvKogp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Nov 2021 07:29:16 +0000 Original-Received: by kubenode514.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a196cf728fe5018773c2df92488d4f71; Tue, 09 Nov 2021 07:29:10 +0000 (UTC) In-Reply-To: <1b9bd069.3f81.17d0396a22c.Coremail.tumashu@163.com> (tumashu@163.com's message of "Tue, 9 Nov 2021 15:25:43 +0800 (CST)") X-Mailer: WebService/1.1.19266 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.148; envelope-from=luangruo@yahoo.com; helo=sonic315-22.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:279083 Archived-At: tumashu writes: > I just want to the below setting work :-) > > (defun eh-xwidget-webkit-mode-hook () > (setq-local left-fringe-width 1) > (setq-local right-fringe-width 1) > (setq-local header-line-format nil) > (setq-local mode-line-format '("=E2=98=85=E2=98=85=E2=98=85 " mode-line= -buffer-identification))) > > (add-hook 'xwidget-webkit-mode-hook #'eh-xwidget-webkit-mode-hook) Can't you call `set-window-buffer' inside the hook function?