emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Mode line face is not updated when clock overruns [9.1.7 (r


From: Nicolas Goaziou
Subject: Re: [O] Bug: Mode line face is not updated when clock overruns [9.1.7 (release_9.1.7-466-ga16590.dirty @ /home/luke/elisp/org-mode/lisp/)]
Date: Tue, 06 Mar 2018 10:16:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Luke <address@hidden> writes:

> The face of the clocked time does not seem to change when the clock
> overruns (typically it changes to a red background).
>
> I'm no lisp expert, but after digging around in the code it looks like
> the problem is in org-clock-get-clock-string():
>
>     662 (defun org-clock-get-clock-string ()
>     663   "Form a clock-string, that will be shown in the mode line.
>     664 If an effort estimate was defined for the current item, use
>     665 01:30/01:50 format (clocked/estimated).
>     666 If not, show simply the clocked time like 01:50."
>     667   (let ((clocked-time (org-clock-get-clocked-time)))
>     668     (propertize
>     669      (if org-clock-effort
>
>     ...
>
>     683      'face 'org-mode-line-clock)))
>
> It seems like the call to propertize (on line #668) is overwriting the
> face ('org-mode-line-clock-overrun) of the resulting string with
> 'org-mode-line-clock. I think this change was introduced in commit
> 6655429b8d.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]