From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 MK37IdqOy2X5IgEA62LTzQ:P1 (envelope-from ) for ; Tue, 13 Feb 2024 16:46: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 mp1.migadu.com with LMTPS id MK37IdqOy2X5IgEA62LTzQ (envelope-from ) for ; Tue, 13 Feb 2024 16:46: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=Y6u+cq7i; 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=1707839194; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cR6RyQky03MJ/frH7vQPmw2QhFwhWb0LTHyIHR9u6UM=; b=c1Ji4zawXjV1rI1nHsO2i645XQGuWatcdQxasgfZJ/bApPtnzMjSw5/dMDKEVwGsTwQdlH cW53dbGcNpe+foCstwOLU/I3BWnwfX3vmKGdLeV/T+dLevoKDkWgwahj9kDrPt8kgcbUkx HqYdTWm3+9KpqRrzMlJNXLftJsqyTyDTFP+sFC6DVI1QI2yTa+5D495Nu5OeVBLCs4djFP 8TVqKgS5kp55NEETazDPESRwpkxhT8g/IUYZgi2DHxpGnsPeO1psKl05glYI2x++oCQ0QK 0/Z8WJhe0KHLndJNzukFq/7kNHWMC4E56a6ipYzw+4hymzMT05jTeK6fpYW9hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=Y6u+cq7i; 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=1707839194; a=rsa-sha256; cv=none; b=NGf6MSWhmx2dKORCTrYs9HDCw0Fg6TA4Ahd2dKl31+8oztgsX6bAzu2wKU3CAhfuKRv1IO ASUnyLdUM1UEpmtfSKMF3oa5TWyelAPCFEpEZ8Vadt1fqvoNFl1Af12KcrPEK7THKnZlBY X1KvIAEJSMSS2lopAQB7y87l2kwPKQqTQp6yaC1lbHFkQ6hTTzhPMC/qloNABlSEd6nj2K AJnXyxQswDHS6TfWYw+P0Bm2SljnNZEGYWWUP2iaeYQHz6bR4lpii9QVhPPVjzAcMO/vp4 8kJuHtPxcWgcIgflp4ux1QwDzj7L7MyWz3vVgKUx1gWauh86E6dHMJU8uepVpQ== 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 A7B796FF50 for ; Tue, 13 Feb 2024 16:46:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZuyz-0007kK-10; Tue, 13 Feb 2024 10:46:05 -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 1rZuyw-0007k1-Px for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 10:46:03 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZuys-0004dD-Kk for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 10:46:02 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-33ce0802f17so354194f8f.0 for ; Tue, 13 Feb 2024 07:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; t=1707839153; x=1708443953; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=cR6RyQky03MJ/frH7vQPmw2QhFwhWb0LTHyIHR9u6UM=; b=Y6u+cq7iykYZLS1S7CxRZKsTZuPRdIoCa6WLY/OqUsq5Epf+PMD5Y2d7kHnqKOjRoR IVS5JIRcKEt9+29Kp/17PH2409VL9uj5ONlQeoIEocbw9LzoS3ogG1Ep0L/KiLb0IxEL xaDlt6d3nnZ76xkpNNgBtwMfhd8WIG29pLmO5xmUS/AxQFUsL10DTTCijsSqwtJwy69W 79S4tXj8Hp9uKwby0aFx8+6drGvOv50UBB5d3gw6LRYSO/jZuQTfZd0wIWtEohs7wwqB nm+JK6tNaNOMeT+M4WjffKO4dq+NeYk+/o/vSi7c8M68BoTyLDloAdDm962/CRWCjdy0 CAqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707839153; x=1708443953; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cR6RyQky03MJ/frH7vQPmw2QhFwhWb0LTHyIHR9u6UM=; b=CxmaDiJLUgh46u/6mjSB1gFOjA9mpmtsIwibI8gveM54r53jdOU/g5gLZUYfSnnPUB HBiasuGuladgS9j8iHisDW5Uos+ZVeOpgsE+mWCEVMK2kLLTWrVTX1XyJ93jnTEWPMKm efYkaU8gKi/MYLWclktELr8wtNYfsY4FV8WUwWBkNgKG1wquzRHJ+elDChVKAwEOiPsH dj0k+IK0lvqIRDyRdlKcKjsfp/UBbokcGZhM1aNWWY8JFYv6Z5jEFDA//TqAuWUNZrC1 mdS43EbzfMyjg3wShr8m3CpNmQdHHtQOhhJLr65mh9Hchb+C4RVS1AFAysmFTHVfTnjG xsWw== X-Gm-Message-State: AOJu0YzCAL9VTUTwuL1PdtWvGJXYTVZHFX57n7L6bi49dXE8pczIEIdg EHFiVSTVbMADqpwA96eljuJ0d2Zp7cOt21zZMPYv7s52yxB8SjogetFZiNVx7ZvlHhLRz26mKx6 MSc8TMF54GtIR5ydVvaqU994RK41qWcb7DC5f102qDtvMQrUuHQ== X-Google-Smtp-Source: AGHT+IFiEmVkxdhESxLaagRlqtoc1cmS2CW2KWqcD17YC0Oyay2oqRVIfgnyUsARYdZcd71gRXjMNMX0d1NfSLAWruI= X-Received: by 2002:a5d:6543:0:b0:33b:178a:6715 with SMTP id z3-20020a5d6543000000b0033b178a6715mr6939954wrv.24.1707839152541; Tue, 13 Feb 2024 07:45:52 -0800 (PST) MIME-Version: 1.0 From: John Kitchin Date: Tue, 13 Feb 2024 10:45:41 -0500 Message-ID: Subject: interaction of fontified calendar entries and org-read-date To: Emacs Orgmode Content-Type: multipart/alternative; boundary="0000000000000568b70611454ad7" Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=jkitchin@andrew.cmu.edu; helo=mail-wr1-x42a.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.072 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.71 X-Migadu-Queue-Id: A7B796FF50 X-Spam-Score: -6.71 X-Migadu-Scanner: mx11.migadu.com X-TUID: l4uLfyCUl3Jg --0000000000000568b70611454ad7 Content-Type: text/plain; charset="UTF-8" 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) (org-read-date)) I get a little calendar that pops up, today is marked red, and there is a red square on it. I can use shift arrows to move the red box around so i can see what day is selected. 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)) This is somewhat of an xy kind of question. I am writing code that sets the color of a day based on the number of tasks due that day, so I can't exactly define faces for all of those, and I was using the anonymous face for that. However, in doing that I lost the inverse video selection cursor so it is hard to tell where the cursor actually is. I assume that somewhere the cursor is getting an inverse-video attribute from the face that isn't present in the anonymous face, but I haven't been able to figure out where that comes in. Any suggestions for either how to fix this, or another approach to coloring the days in the calendar? -- 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 --0000000000000568b70611454ad7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying to debug something=C2=A0in org-read-date.=C2= =A0

If I run this code:

(let* (= (mark-calendar (lambda ()
(calendar-mark-visible-date
(read (f= ormat-time-string "(%m %d %Y)"))
'font-lock-warning-fa= ce)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(calendar-today-visible-hook))
=C2= =A0 (add-hook 'calendar-today-visible-hook
=C2=A0 =C2=A0mark-calen= dar)
=C2=A0 (org-read-date))

I get a little cal= endar that pops up, today is marked red, and there is a red square on it. I= can use shift arrows to move the red box around so i can see what day is s= elected.

This slightly different code (differs onl= y in assigning an anonymous=C2=A0face instead of an actual face doesn't= do that exactly. Today is still marked red, but it is no longer selected w= ith the inverse square. Neighboring days do get the red square, but not &qu= ot;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 = (add-hook 'calendar-today-visible-hook
=C2=A0 =C2=A0mark-calendar)=
=C2=A0 (org-read-date))

This is so= mewhat of an xy kind of question. I am writing code that sets the color of = a day based on the number of tasks due that day, so I can't exactly def= ine faces for all of those, and I was using the anonymous face for that. Ho= wever, in doing that I lost the inverse video selection cursor so it is har= d to tell where the cursor actually is.=C2=A0

I as= sume that somewhere the cursor is getting an inverse-video attribute from t= he face that isn't present in the anonymous face, but I haven't bee= n able to figure out where that comes in.=C2=A0

An= y suggestions for either how to fix this, or another approach to coloring t= he days in the calendar?

--
John

--------------------= ---------------
Professor John Kitchin (he/his)
Doherty Hall A207FDepartment of Chemical Engineering
Carnegie Mellon University
Pittsb= urgh, PA 15213
412-268-7803
https://kitchingroup.cheme.cmu.edu
https://pointbr= eezepubs.gumroad.com/=C2=A0pycse bookstore
--0000000000000568b70611454ad7--