emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] "Invalid face reference" with org-agenda-deadline-faces
@ 2024-01-10 16:44 Mark Kerr
  2024-01-10 18:01 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Kerr @ 2024-01-10 16:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

I have the below set in my init file:
---
(setq org-agenda-deadline-faces
  '((1.01 . org-agenda-deadline-past)
     (1.0 . org-agenda-deadline-today)
     (0.9 . org-agenda-deadline-tomorrow)
     (0.7 . org-agenda-deadline-soon)
     (0.0 . org-agenda-deadline-upcoming)))
---

But the faces are not created and the below lines keep appearing in
*Messages*:
---
Invalid face reference: org-agenda-deadline-today [6 times]
Invalid face reference: org-agenda-deadline-past [19 times]
---

`describe-face` says `[No match]` when run on any of these agenda deadline
faces. `describe-face` does work with the default faces though, i.e.
`org-imminent-deadline`.

However, running `describe-variable` on `org-agenda-deadline-faces`
indicates that the value is correct:
```
Value:
((1.01 . org-agenda-deadline-past)
  (1.0 . org-agenda-deadline-today)
  (0.9 . org-agenda-deadline-tomorrow)
  (0.7 . org-agenda-deadline-soon)
  (0.0 . org-agenda-deadline-upcoming))
Original value was
((1.0 . org-imminent-deadline)
  (0.5 . org-upcoming-deadline)
  (0.0 . org-upcoming-distant-deadline))
```
Turning on `debug-on-error` does nothing when the messages are generated.

This `org-agenda-deadline-faces` settings has been working without any
problems for years. I think the problem began with org v6.6.16, but am not
completely certain.

Is this a bug?

Thanks, Mark

[-- Attachment #2: Type: text/html, Size: 1570 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-10 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 16:44 [BUG] "Invalid face reference" with org-agenda-deadline-faces Mark Kerr
2024-01-10 18:01 ` Ihor Radchenko
     [not found]   ` <CAM9qJ5+D9a8-KHorWLScRjqH9eOsvRjM+RrVMKqqi4q31EuBFQ@mail.gmail.com>
2024-01-10 18:48     ` Ihor Radchenko
     [not found]       ` <CAM9qJ5JipoBHbANGAOz2+c_4yRaAZ2keUJn2DnGOWSOW-90hVg@mail.gmail.com>
2024-01-10 20:01         ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).