Awesome work! Thanks for tracking that down!
On Wed, Feb 21, 2024 at 6:17 AM Ihor Radchenko wrote:
> John Kitchin writes:
>
> > However, if I edebug `calendar-make-temp-face' and step through each
> line,
> > then it works the same as using a face. And, after that it seems to work
> > most of t
John Kitchin writes:
> However, if I edebug `calendar-make-temp-face' and step through each line,
> then it works the same as using a face. And, after that it seems to work
> most of the time.
It turned out that the problem is caused by interaction between Org
mode's overlay and calendar.el's ov
Thanks for the tip on `calendar-make-temp-face'. It gets even weirder now.
If I use a face, that function does not even seem to get called, so it
seems to work.
If I use the anonymous face though, it does get called, and I see the
inconsistent behavior.
However, if I edebug `calendar-make-temp-f
John Kitchin writes:
> why does it work with a face though?
It really does. That's confusing. And proves that Emacs is smart enough
to invert cursor color in some situations.
My only guess is that `calendar-make-temp-face' is using `make-face'
incorrectly. I guess that
Do not call this dir
why does it work with a face though?
On Wed, Feb 14, 2024 at 10:00 AM Ihor Radchenko wrote:
> John Kitchin writes:
>
> > This slightly different code (differs only in assigning an anonymous face
> > instead of an actual face doesn't do that exactly. Today is still marked
> > red, but it is no l
John Kitchin writes:
> This slightly different code (differs only in assigning an anonymous face
> instead of an actual face doesn't do that exactly. Today is still marked
> red, but it is no longer selected with the inverse square. Neighboring days
> do get the red square, but not "today".
>
> (
I am trying to debug something in org-read-date.
If I run this code:
(let* ((mark-calendar (lambda ()
(calendar-mark-visible-date
(read (format-time-string "(%m %d %Y)"))
'font-lock-warning-face)))
(calendar-today-visible-hook))
(add-hook 'calendar-today-visible-hook
mark-calendar)