emacs-orgmode
[Top][All Lists]
Advanced

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

Re: interaction of fontified calendar entries and org-read-date


From: John Kitchin
Subject: Re: interaction of fontified calendar entries and org-read-date
Date: Wed, 14 Feb 2024 13:13:27 -0500

why does it work with a face though?

On Wed, Feb 14, 2024 at 10:00 AM Ihor Radchenko <yantar92@posteo.net> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> 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".
>
> (let* ((mark-calendar (lambda ()
> (calendar-mark-visible-date
> (read (format-time-string "(%m %d %Y)"))
> (list :foreground "red" :weight 'bold))))
>        (calendar-today-visible-hook))
>   (add-hook 'calendar-today-visible-hook
>    mark-calendar)
>   (org-read-date))

That's because cursor background becomes the same as text foreground and
Emacs prevents the clash.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


--
John

-----------------------------------
Professor John Kitchin (he/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
https://kitchingroup.cheme.cmu.edu
https://pointbreezepubs.gumroad.com/ pycse bookstore

reply via email to

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