From: tumashu <tumashu@163.com>
To: "Po Lu" <luangruo@yahoo.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re:Re: [PATCH] xwidget.el: call set-window-buffer after xwidget-webkit-mode.
Date: Tue, 9 Nov 2021 15:25:43 +0800 (CST) [thread overview]
Message-ID: <1b9bd069.3f81.17d0396a22c.Coremail.tumashu@163.com> (raw)
In-Reply-To: <87v91194z3.fsf@yahoo.com>
At 2021-11-09 15:13:20, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>
>> + ;; Make sure some buffer variables in `xwidget-webkit-mode-hook'
>> + ;; function take effect, for example: `left-fringe-width'.
>> + (set-window-buffer (selected-window) (current-buffer))
>> (xwidget-webkit-goto-uri (xwidget-webkit-last-session) url)))
>
>I don't think this is quite right: we don't change `left-fringe-width'
>or any such variable in xwidget-webkit-mode.
>
>Can you give a concrete reason as to why this is necessary?
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 '("★★★ " mode-line-buffer-identification)))
(add-hook 'xwidget-webkit-mode-hook #'eh-xwidget-webkit-mode-hook)
>
>Thanks.
next prev parent reply other threads:[~2021-11-09 7:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 6:00 [PATCH] xwidget.el: call set-window-buffer after xwidget-webkit-mode tumashu
2021-11-09 7:13 ` Po Lu
2021-11-09 7:25 ` tumashu [this message]
2021-11-09 7:29 ` Po Lu
2021-11-09 7:44 ` tumashu
2021-11-09 7:48 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1b9bd069.3f81.17d0396a22c.Coremail.tumashu@163.com \
--to=tumashu@163.com \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).