From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UGYADQoDzWUoPgEAqHPOHw:P1 (envelope-from ) for ; Wed, 14 Feb 2024 19:14:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UGYADQoDzWUoPgEAqHPOHw (envelope-from ) for ; Wed, 14 Feb 2024 19:14:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=NytPdkjY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=andrew.cmu.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707934474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gu3ajQb+A2Mvd6LmjmsZT0ipP2Ba7Xh5+W9oVK3VQ74=; b=Y2SFiZo9UhvtV5DGIPITmMtL16NuIw2Z3z2SFRlXnfUTWtYfHykP6Gf/T4CND6uRlWP+Ra o7YgqwDEGlQWKq86Fy9DgDVWpkVS+cLuuQSfBNukDH2mESelWSeqZi7/gd5Y+T7bMUnm6p uGDN1SJY/gLEsShIOIsYKr4JkHiSZo7QUJGh0xmjxoNGttkSw6LOxqPx4SSj8ebZFU5JhA 3EgGb2HrifW+8DULjqUFFdlXS5QK3IVv+wm6B47WrYQeC0zDgNgnkU+FAXFQz5zOoZNudT Eo6NKr1KfFnyM5b8ogKN9VPchyxI0sHNuurVP+Qy03t+4goj0UGnby9GbcL+WA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=NytPdkjY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=andrew.cmu.edu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707934474; a=rsa-sha256; cv=none; b=kF/vEXruxJitAsme2u4Yazozvac/N6Jh0mGZ+tAWEFG077a9hakPE7mLaY/kFf6rah/kW6 rbOtcw8rlofg7ZgkA9Kgh3z8WWyEKCMX4g7FTM6cB8bR2aFt3MgfVOEEaMRRzYeITOAz4c Yyt1yadbKVwSs5wfkVYLNcNycxNNKUBjeClTaC8PVjJqRJx/Hxqg9FwSsCOMeNlZg15HL+ atKWIE7dB76bFXM+Eu/Nfo7l+e2eXCutQKXINSFo1G+7+0y/IGpg7xhvAc+AdcLaWvjxPW xnqjS3pe8z5ulA+A/UlDqYkN0lVdycNsr/e815oNPWEjezbo8IpD8VcBQcYtJQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12C6B3B6CD for ; Wed, 14 Feb 2024 19:14:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raJlU-0005X8-UN; Wed, 14 Feb 2024 13:13:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raJlQ-0005Wk-My for emacs-orgmode@gnu.org; Wed, 14 Feb 2024 13:13:45 -0500 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raJlO-0002Gs-Mz for emacs-orgmode@gnu.org; Wed, 14 Feb 2024 13:13:44 -0500 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d0e521de4eso57070461fa.2 for ; Wed, 14 Feb 2024 10:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; t=1707934418; x=1708539218; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gu3ajQb+A2Mvd6LmjmsZT0ipP2Ba7Xh5+W9oVK3VQ74=; b=NytPdkjY1RjWDl4VzXr0Jae+bH6f8k64PH2yLglGSlnuECboBGp9HK5g154k3M5C7I v4b3g8EJeucnPjEPYlVkFKf+KUU4kiwer7s6Zx4rXwcX2Bj6tBLchbBS3u6whNfzc4et bS5lw7EVG56tatooFqCLrLb+wuP8QceRRhI2xKx1YkFkxBQdqNsP4JzK40y2KANGOpFF GNja4RTp0KwpYAhlrkDQHSXEVR0frtgfXdzoDeDtllUsETATQD/JmE0hQSFsvinSrMWT RfkwewgiKceEzhys0dTx9hQ1g/I9u+5T6uxFRkNaxmR7rKvuoyTc8aZVgJl2UWwduw7D +Ofg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707934418; x=1708539218; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gu3ajQb+A2Mvd6LmjmsZT0ipP2Ba7Xh5+W9oVK3VQ74=; b=i2lbqYQavlBL87HZvAjeQ9rJbrW5NtGMv8rWdFU9I8dM54LRpSthfJaEtqubOcMKBy GCDZ70Ad7gteKilXrXFhXQaiTl8wYBla8np7+UMc64grPY5SCH9zyzQn1OiZM1A3ZioC lmdp4ZCdBFP6bH6BCUTfLyW1J+ERR9KN5hRz/UaROQXjFNi/toCwNDvPm9z+Qp0D0ryj 6UTHnsWA9QnOeaqSty6NRH+D3MURNxRNZOYnw03LLw9KYm7GajKFNw/65t8VC2X2miur SSahLYNw1LdXGeqeCmxLNm4w+Jmn4FfYY7RsQ/rQIIhJEJJJblt6mpd49+z8r+0Ub7ZA skhQ== X-Gm-Message-State: AOJu0Yz6TuvF6tGaPm6frWS3j3JwsJhhu5lob38c+wJNEcEInwUv6ckq NV3VIR3DBzaGWnaKpEyo/qZkjzJs/QipfjF18lJgqJYFbOqmkSYdzg1vwjpkKEuciQ8VJeGdw0f KsfoMSfyUS/XmRcM2MMRr0aOU1xxuBoqXR83Z X-Google-Smtp-Source: AGHT+IE0uFFlko3j3oZtPriMQhBStdXu1vK0UjHJ8LxEiLbNUOD1xjAgI8bwnpUW9UJgOD1iSLDsLSLu66Tr8tWVIlk= X-Received: by 2002:a2e:9589:0:b0:2d0:91e5:6873 with SMTP id w9-20020a2e9589000000b002d091e56873mr2856591ljh.44.1707934418395; Wed, 14 Feb 2024 10:13:38 -0800 (PST) MIME-Version: 1.0 References: <87wmr7rssj.fsf@localhost> In-Reply-To: <87wmr7rssj.fsf@localhost> From: John Kitchin Date: Wed, 14 Feb 2024 13:13:27 -0500 Message-ID: Subject: Re: interaction of fontified calendar entries and org-read-date To: Ihor Radchenko Cc: Emacs Orgmode Content-Type: multipart/alternative; boundary="0000000000004f08ca06115b7831" Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=jkitchin@andrew.cmu.edu; helo=mail-lj1-x235.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1, URI_DOTEDU=1.12 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.72 X-Spam-Score: -6.72 X-Migadu-Queue-Id: 12C6B3B6CD X-Migadu-Scanner: mx11.migadu.com X-TUID: 0zkhh707ImAn --0000000000004f08ca06115b7831 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable why does it work with a face though? On Wed, Feb 14, 2024 at 10:00=E2=80=AFAM Ihor Radchenko wrote: > John Kitchin writes: > > > This slightly different code (differs only in assigning an anonymous fa= ce > > instead of an actual face doesn't do that exactly. Today is still marke= d > > 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 . > Support Org development at , > or support my work at > --=20 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 --0000000000004f08ca06115b7831 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
why does it work with a face though?

On Wed, Feb 14, 2024= at 10:00=E2=80=AFAM Ihor Radchenko <yantar92@posteo.net> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> This slightly different code (differs only in assigning an anonymous f= ace
> 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))))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 (calendar-today-visible-hook))
>=C2=A0 =C2=A0(add-hook 'calendar-today-visible-hook
>=C2=A0 =C2=A0 mark-calendar)
>=C2=A0 =C2=A0(org-read-date))

That's because cursor background becomes the same as text foreground an= d
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 Engi= neering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-78= 03
htt= ps://kitchingroup.cheme.cmu.edu
https://pointbreezepubs.gumroad.com/=C2= =A0pycse bookstore
--0000000000004f08ca06115b7831--