[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51702: 29.0.50; [PATCH] Fix xwidget buffer name being stuck on somet
From: |
Eli Zaretskii |
Subject: |
bug#51702: 29.0.50; [PATCH] Fix xwidget buffer name being stuck on something nonsensical |
Date: |
Tue, 09 Nov 2021 15:35:32 +0200 |
> From: Po Lu <luangruo@yahoo.com>
> Cc: 51702@debbugs.gnu.org
> Date: Tue, 09 Nov 2021 20:58:10 +0800
>
> >And the sentence after that should be capitalized, of course.
>
> Thanks. I was trying to keep the style of the original comment intact,
> but now that you've brought it up I see no harm in changing it.
There's no reason to keep typos and bad style intact ;-)
> diff --git a/lisp/xwidget.el b/lisp/xwidget.el
> index 905327083b..28add0db0a 100644
> --- a/lisp/xwidget.el
> +++ b/lisp/xwidget.el
> @@ -360,8 +360,8 @@ xwidget-webkit-callback
> (cond ((eq xwidget-event-type 'load-changed)
> (let ((title (xwidget-webkit-title xwidget)))
> ;; This funciton will be called multi times, so only
> - ;; change buffer name when the load actually completes
> - ;; this can limit buffer-name flicker in mode-line.
> + ;; change buffer name when the load actually completes.
> + ;; This can limit buffer-name flicker in mode-line.
> (when (or (string-equal (nth 3 last-input-event)
> "load-finished")
> (> (length title) 0))
I'm happy now.