* 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
Hello.
The org-frame-title-format-backup variable is initialized on
org-clock.el loading and future changes to frame-title-format is
ignored:
1. emacs -Q
2. M-: frame-title-format
It's "%b"
3. M-: (require 'org-clock)
4. (setq frame-title-format "%b bar")
5. C-x b test.org
6. M-x org-mode
7. I