From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SOFpHMYiyWNRgAAAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 12:00:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eJd6G8YiyWMh1QAAG6o9tA (envelope-from ) for ; Thu, 19 Jan 2023 12:00:22 +0100 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 0DB0D328B8 for ; Thu, 19 Jan 2023 12:00:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pISeB-0004P3-8H; Thu, 19 Jan 2023 05:59:55 -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 1pISe6-0004OG-5j for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 05:59:50 -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 1pISe4-0007J9-4C for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 05:59:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9462C2405D0 for ; Thu, 19 Jan 2023 11:59:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674125984; bh=etdcO2m2OyIzynPXvgmIw4sl+pKBLhRsL1bTajQsRFA=; h=From:To:Cc:Subject:Date:From; b=lr+bF/oUOgU0zNoZ9MjeInDIJjBkttSTz8pl2JApdo8OZ6loavlvP0ZCTHsOUdq5E 40x9eKQDbiL8HeMKQdNVU+DtlHTiuA0UwD8lgG69NsKzjo2T+ivX6HbLym0PYYigbw l1My0D5zGFfXHo9/kCiKxvhtyG5VWWAptyPknz1QYKTyqglTCk43JffnK8bToJyUjC ZiYtFsnlGIWXRYCkp4k0I75F10BScCDoCCsPJn0eP0Md2GdC1NoCzLZsjp9zXZL3xv s3Z6Q307Jmv3Yp50YgiXYr8wCKR3yoa2MtRHz5Zln0/hMA/bOGc1N3AA4c3SpAYwZC l/a9IQsWRSn8g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NyKQP1yskz6tmJ; Thu, 19 Jan 2023 11:59:41 +0100 (CET) From: Ihor Radchenko To: gautier@gautierponsinet.xyz Cc: Bastien , emacs-orgmode@gnu.org Subject: Re: New face: org-agenda-calendar-timerange In-Reply-To: References: <873597xtqr.fsf@gautierponsinet.xyz> <87y1q1h0gm.fsf@localhost> <63f0246aa85d34eb4fc787d4fad4c3e3@gautierponsinet.xyz> <87v8l46tos.fsf@localhost> Date: Thu, 19 Jan 2023 11:00:05 +0000 Message-ID: <87lely4wne.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674126022; a=rsa-sha256; cv=none; b=o8uWtGh+1qwiD8/ZKswuOc4BuGmEH7atrrmBWOk2+oKGYoYAQ9OJ3BOMZA9j2xsqgQxbum 3x7N78ADQQiEHHPzUA7zQdr80vcKgT5j5RIgwKt8elKRoVCZ9BZcOewnn7x4EP6AVvb1FK bxbWUy3MRf/9WNcMgtqaUF49yV/IZ36xUrkAncc/yeKyl3bNBn9zlHPzDG/9SQrcVNk3dJ 8dB9Oic+oWFZwr2a9hwSq99F8pxkrhluUIrNyrcNci+05C1HtKXPfI2cJwDvrllYg0m/AG sFDyFgeE7HQGlexj7G/+tPVUA0+0CGqwDDME3lT088FQxRfdWU0t8WgOxIT3vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="lr+bF/oU"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674126022; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sGm9j4WvryjiLPK6b3UILI/Ues3hmCmWMv20JNwgQfE=; b=JL4eq973rQzn7qzNUHvA2QTWG2MrKLOx4g0JhGq0LsYxMmmVs1iBYBxNakYMJt0ijg2Pqe rhcb+HASaqyzILBJV4PWwQYd4tq6VROgSQLk0XgJl15+TXEutOK+Ipv3MNw6pZ7AuiKiSf eP72REP/YD/tuFCcBJ7+fAPw+Qci/JwSMC2nILE13cmuvnNLGXYFJ0Q11DfU9fr3yfWe4V ApEnUhrUjvOx/hMRjqvM+rJT3POEzBBo4ZHJNV99mp7Ii63RHNOIQCQs5ij+a3dic+W9QG ngUKKUapj/GEEJSaJIi5WffbYaepmpJBIKtcSwkgeAG+lv9Sxrt9j937t3qh+w== X-Spam-Score: -7.38 X-Migadu-Queue-Id: 0DB0D328B8 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="lr+bF/oU"; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.38 X-TUID: Bp8ltT3wnRUj gautier@gautierponsinet.xyz writes: > So, the current situation is the following: > ... > Is that correct? Yes. "simple date with hour range" should be displayed the same with "timerange (same day)", including faces and begin/end time being displayed together. It will be the most consistent. > > By the way, the entries "simple date with hour range" and "timerange (on > the same day)" are also presented differently in the agenda view, the > first ones look like: > agenda: 10:00-15:00 Test simple date with hour range > while the second ones look like: > agenda: 10:00 =E2=94=84=E2=94=84=E2=94=84=E2=94=84=E2=94=84 Test t= imerange (on the same day) > > Should this change as well? Yes, if you can. > This would be nice. However, this requires more complexes changes. I > don't know if I am capable of preparing such a patch, but I can give it > a try. Applying faces should be easier. You may just add code applying `org-agenda-calendar-event' face when timestamp is within a single day to `org-agenda-get-blocks'. See d1 and d2 variables. They store start/end date. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at