From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oAIiE+XVzGVuDAEAe85BDQ:P1 (envelope-from ) for ; Wed, 14 Feb 2024 16:01:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oAIiE+XVzGVuDAEAe85BDQ (envelope-from ) for ; Wed, 14 Feb 2024 16:01:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WP877Ji1; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707922917; 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=c5KDweDgOpmFHHyWIQXyU3qTSODHO33kZQjf5U6LhRM=; b=l17CztiL2Z6LRDoG9Aa0FEEN0ipTk83qzqudPh2iUYIbmU/Y0aB+eVit7hunGq+y6qifRJ hlj0ScbGOIxKl1ZpxGNTvfmuxZUJpvpr9A9E0Y/pa3zq572FiK6fQ1Vfm+rgd+ETEDg9cZ y6fZjzJjeelfLC0cvt10liWGRta6lBcMRAllTLscou3svi8xl6yI7QX6F+D98e1xyyyoq6 aTKtvBU15RFUomNwPqnpvdp2yNDuterBL/7ZZpBpnbwayMyzMO6J8wca6nBqpU2gR9ZuCD sdhwnXM6tXt1/hpj0liFO3m2skQHPNntJwCfRb9v56qWM01Mo4w8sdMlGyBQ0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WP877Ji1; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707922917; a=rsa-sha256; cv=none; b=eCGzr678o20OdmIOnURn8BOI/LiEIgx9zM1pScicY8nq2ll1NSN20y2yULUY20X9vZx85i u20HBZNFCggOO/MOdwAxolxx8BqkE6ambeXpqPsRRkPmEASpW+RohW6gbEdvPQnTd4tX7F JC17drQ1rMSEEHLL07s7jErGuc9IPHXJwp/UvCYDQtz4/lXT00Sgr9tBScAd9W/jWXiEr7 COOLJiburdvx+zfzDsJh6/KgChZu6h4t6sBXh/Tl17sXSRGwqG0DQUyPtIFTz26SscrUbQ zY63bVz2i764Lyehr80q/e+rZzCSc7Rr3LvSVyY9v3azIgD1tM+gGjtfgxO0wA== 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 20DD623CA8 for ; Wed, 14 Feb 2024 16:01:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raGl9-000192-NP; Wed, 14 Feb 2024 10:01:15 -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 1raGkt-00015V-Fy for emacs-orgmode@gnu.org; Wed, 14 Feb 2024 10:01:01 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raGkr-0004tX-0a for emacs-orgmode@gnu.org; Wed, 14 Feb 2024 10:00:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B5E52240101 for ; Wed, 14 Feb 2024 16:00:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707922854; bh=/B9S+26GO+ECz1IijO7e/i55XQixPETlcmduDPrbyCk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=WP877Ji15ZRmNQhvZMS6iiAVSYlG+6TwfeUDj4AZcGKr6vAqZje1eof1wFW6h4pje cmDAVva4NwKQwoYACYdDXiQpPkz3NT+lA1Tgmtgo7dSVePN6hmN8B6l/VRCEG/X0Ks dZ129oeBtoSG3i8Dy2eOJYXR6CA4KZ7bjSrg3/bto6x8PEE/sZmtcJrkKiO+JEwhOT 2aS7jkdQYrfGqUrXH7OT4e8BTdrNkz2BRoDqzCplcUA9Nk3yGUsftuqGFp/ZmWkm9J ADsCHQmAh2T0tEafkV3inE/frr3s6CDMmw/jduOfhsnYJS96KXypVvNT2UcxNMf+tD zc8N1Rob1mYIw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TZhGG0Dhwz9rxS; Wed, 14 Feb 2024 16:00:52 +0100 (CET) From: Ihor Radchenko To: John Kitchin Cc: Emacs Orgmode Subject: Re: interaction of fontified calendar entries and org-read-date In-Reply-To: References: Date: Wed, 14 Feb 2024 15:04:28 +0000 Message-ID: <87wmr7rssj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -3.34 X-Spam-Score: -3.34 X-Migadu-Queue-Id: 20DD623CA8 X-TUID: r2HEb5DrEwmO 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". > > (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