From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-clock.el: Fix restore of frame-title-format Date: Tue, 28 May 2019 19:59:38 +0200 Message-ID: <87k1eaqx2t.fsf@nicolasgoaziou.fr> References: <87woibq7dj.fsf@nicolasgoaziou.fr> <85266002-C647-4624-9E50-C73E89151BF3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVgOk-0006sG-7y for emacs-orgmode@gnu.org; Tue, 28 May 2019 14:00:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVgOW-0003jk-EN for emacs-orgmode@gnu.org; Tue, 28 May 2019 14:00:19 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVgOE-0003H8-Tz for emacs-orgmode@gnu.org; Tue, 28 May 2019 14:00:02 -0400 In-Reply-To: <85266002-C647-4624-9E50-C73E89151BF3@gmail.com> (Andrii Kolomoiets's message of "Tue, 28 May 2019 16:57:42 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Andrii Kolomoiets Cc: emacs-orgmode@gnu.org Hello, Andrii Kolomoiets writes: > * lisp/org-clock.el (org-frame-title-format-backup): Use nil as initial value. > (org-clock-in): set `org-frame-title-format-backup' to `frame-title-format'. > (org-clock-restore-frame-title-format): New function. > (org-clock-out): Use it. > (org-clock-cancel): Use it. > > The problem was that the `org-frame-title-format-backup' variable is > initialized on org-clock.el loading and future changes to `frame-title-format' > is ignored. Applied. Thank you. Regards, -- Nicolas Goaziou