From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Thu, 09 Feb 2023 04:17:55 +0100 Message-ID: <87mt5nv864.fsf@telefonica.net> References: <874jrydpw8.fsf@telefonica.net> <87ilgd7e9q.fsf@yahoo.com> <87mt5pxznh.fsf@telefonica.net> <875ycd6joo.fsf@yahoo.com> <87zg9ovps9.fsf@telefonica.net> <87wn4s6c40.fsf@yahoo.com> <87v8kcvllw.fsf@telefonica.net> <87o7q469vi.fsf@yahoo.com> <87r0v0uqnh.fsf@telefonica.net> <878rh760mc.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="32995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com To: 61337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 04:19:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pPxSt-0008Sg-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 04:19:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPxSi-0006cT-CO; Wed, 08 Feb 2023 22:19:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPxSh-0006c1-0I for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 22:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPxSg-0001aA-OW for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 22:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPxSg-0005YQ-Km for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2023 22:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 03:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61337 X-GNU-PR-Package: emacs X-Debbugs-Original-To: X-Debbugs-Original-Cc: Po Lu , 61337@debbugs.gnu.org Original-Received: via spool by 61337-submit@debbugs.gnu.org id=B61337.167591268521254 (code B ref 61337); Thu, 09 Feb 2023 03:19:02 +0000 Original-Received: (at 61337) by debbugs.gnu.org; 9 Feb 2023 03:18:05 +0000 Original-Received: from localhost ([127.0.0.1]:57078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPxRl-0005Wh-83 for submit@debbugs.gnu.org; Wed, 08 Feb 2023 22:18:05 -0500 Original-Received: from relayout04-redir.e.movistar.es ([86.109.101.204]:16065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPxRj-0005WB-Gj for 61337@debbugs.gnu.org; Wed, 08 Feb 2023 22:18:04 -0500 Original-Received: from sky (73.red-81-39-121.dynamicip.rima-tde.net [81.39.121.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout04.e.movistar.es (Postfix) with ESMTPSA id 4PC29w4F6cz12jb; Thu, 9 Feb 2023 04:17:55 +0100 (CET) In-Reply-To: <878rh760mc.fsf@yahoo.com> (Po Lu via's message of "Thu, 09 Feb 2023 10:20:11 +0800") X-TnetOut-Country: IP: 81.39.121.73 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout04 X-TnetOut-MsgID: 4PC29w4F6cz12jb.A2040 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1676517477.6157@s/XmgBoFcCfLjGqsos03vw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255179 Archived-At: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > If you set `icon-title-format' to the same as `frame-title-format', and > in addition apply this patch: > > diff --git a/src/xfns.c b/src/xfns.c > index 3a129211463..7f1128399a8 100644 > --- a/src/xfns.c > +++ b/src/xfns.c > @@ -2317,7 +2317,7 @@ x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) > x_set_title (struct frame *f, Lisp_Object name, Lisp_Object old_name) > { > /* Don't change the title if it's already NAME. */ > - if (EQ (name, f->title)) > + if (Fstring_equal (name, f->title)) > return; > > update_mode_lines = 38; > > does the problem go away? Yes!