From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wOKlB2G7WmGoGAEAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 10:29:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wn1SA2G7WmHHQQAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 08:29:21 +0000 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 8841A215FE for ; Mon, 4 Oct 2021 10:29:20 +0200 (CEST) Received: from localhost ([::1]:37636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXJLb-0004c3-5w for larch@yhetil.org; Mon, 04 Oct 2021 04:29:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXIhG-0007nd-Az for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 03:47:38 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:36768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXIhE-0007Ll-Fc for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 03:47:37 -0400 Received: by mail-lf1-x129.google.com with SMTP id b20so68150024lfv.3 for ; Mon, 04 Oct 2021 00:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=C+OhGm6d5A9WlR+3j+C+KtrM4pV7/CRIFCGlyEYEDG4=; b=aLkcCusiInSn9MNeIJtHEv0U+UJgZTyeiWuGu1bSUiii6LeTvPne5PYweSz9zLMpy1 w1kquBzVulC0C0A8i5OHZwGL5R6O3Pq1mZhmbs0MQwC4rFJKmlmVDoqxPHml1lYc7/Cv dYQaQ5eF79TkaGKrsoCLeUiebCeZOGh6rdAn9bYNvxAIkjY+Vk/CNFIZZNanaeuTa934 qEEFkDYqK+efylHKIyp9yFKh44tKGVHwYmoKa+Wqlv5dJeRMJwv6J+zEPwKxHpBquwET llDm7zV1e76j2vrD4n8xGRX9nf3muW9lpVeWF9VOdvdKuVV2sNKTscfblXBLbZXzcvM2 NuWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=C+OhGm6d5A9WlR+3j+C+KtrM4pV7/CRIFCGlyEYEDG4=; b=sdTLntd7f3VsfgcOWm6vgJH6xse0T15QMZ8qcMRn1nmMNzY3TcbUqoBT9P+E2nST7c /f1KqUn/dPEB5kvHvP17JTlnGQyPV+YGBJkMux+WyPInKOLOr+S1swR6WIcVW0qnjkYk 60RwHJ6Cm3RTRgRW8IGpDnAT5AJMvnf1ugmGlIO0yEhodDQM4IS0ruKYvxEzDNewymr/ NAe3bfz3M7E3K72ySBibLnXxW03ldgmm7EE6gq2DfxGFK3z1TDX1TWQzWjQumjbG8/Qm UqulIpbLXg/Jsu7fZtImOpeWQZi+ekzb3xYKXLUGATrUqW1vgRvVgpkTNKmu+O6wGZpM U2Ww== X-Gm-Message-State: AOAM531qOn4puncCdBB4IOH1NPpJjDxVI/o3ivN+PaJt2gqbLd9jLoNv Br8uC2iHw64AP9CY7pw6hyc= X-Google-Smtp-Source: ABdhPJwv2MvRhodG4VUukbTkN8mJOzc+DITn9dElxOljCWZ+GqDt6Cye285N2TZXwXzHIcPaL85oyA== X-Received: by 2002:a05:6512:1116:: with SMTP id l22mr5129918lfg.454.1633333654597; Mon, 04 Oct 2021 00:47:34 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id z26sm1638018lfg.300.2021.10.04.00.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 00:47:33 -0700 (PDT) From: Ihor Radchenko To: tumashu Subject: [PATCH] The align of time is not beautiful as 9.4 when I update to org 9.5. In-Reply-To: <3afe1bba.2f48.17c350d0a41.Coremail.tumashu@163.com> References: <3afe1bba.2f48.17c350d0a41.Coremail.tumashu@163.com> Date: Mon, 04 Oct 2021 15:48:49 +0800 Message-ID: <877detcjry.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=yantar92@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633336160; 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=C+OhGm6d5A9WlR+3j+C+KtrM4pV7/CRIFCGlyEYEDG4=; b=QaX7ouvFRuzx2lziGbWsa08vCyRmHE622i31GfFZkgXiK8TJCE+X7FSOPT8HmSTovWI7ja HhlM13ngf3+c1y1gxiiNnopSy/s8kKzfLmC0y1FymDZGBRHbyT39zomFWPMdLMB7aJ+Y+R /pR7v9Nz0VM5NuwpjlfaPyUP+e1EsrMpxzZ4HBXZ4PjuZVwui/ivDISzg++znJR3VFjgs6 hjJQcGQUaf4UKst6uOIaBnY3I9OoaS12L8c7lOMhq3YAmCoVNL118NijIHt40Uahwgbg/h 32JSuYuGOZf1PSfTVRsMEOOzCnF2ugXx1wT9Km137Lymicav2BmouJq12QPuKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633336160; a=rsa-sha256; cv=none; b=mMOP7rRO7rWy/HqJI2Ytddgb1VdQcXjRsV+he+argBtkMR10BFb00B7u0qxp/CECUxF8K0 AWcJg2G3sHJtJMlkrfyH2TB5D1OoF39wfNy/8g7Flga4ymCaOazLjVyqYhjmYBI2Sv6BDk k5g/yEH+I1lNHKphpihNPpIOJAxNK4TWRsgL+oKl5L1hLCAYpoQd9zfot8jNaGi6G2HEPS 8XWzXL8OcOfJG3IKHd8mg8Gpb8HzycHFsrYKAqxlLXt0IA2BLqHzsK+BjZ/4nY0uJk4XeD xwHzve3UPlcF3roCeke7D/wV2cnoMd+rBBwPBM0FGTz+uDVPTgFdO188M2VWtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aLkcCusi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aLkcCusi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8841A215FE X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z/sbEbqHqA3h --=-=-= Content-Type: text/plain tumashu writes: > Hello: > > > When I update to org 9.5, I find that the align of time like "7:00" has been changed. > > I think the new style is not beautiful as old style. > > 1. New style look like not align to the first char, for the width of 9 looks like > 1 > 2. the old style is align ":" The attached patch should fix the issue. Please, test it though. I do not use time grid regularly. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-agenda-Make-sure-that-time-grid-is-aligned-when-.patch >From df5c35bd84e1d343c52c605c2c77393fb11ad590 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Mon, 4 Oct 2021 15:45:16 +0800 Subject: [PATCH] org-agenda: Make sure that time grid is aligned when hour <10 * lisp/org-agenda.el (org-agenda-format-item): Make sure that hour part of begin time in time grid always occupy 5 chars Fixes https://list.orgmode.org/orgmode/3afe1bba.2f48.17c350d0a41.Coremail.tumashu@163.com/ --- lisp/org-agenda.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 354f40867..e20d0225f 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6765,7 +6765,7 @@ (defvar level) (defvar tag) (defvar time)) (setq duration (- (org-duration-to-minutes s2) (org-duration-to-minutes s1)))) ;; Format S1 and S2 for display. - (when s1 (setq s1 (org-get-time-of-day s1 'overtime))) + (when s1 (setq s1 (format "%05s" (org-get-time-of-day s1 'overtime)))) (when s2 (setq s2 (org-get-time-of-day s2 'overtime)))) (when (string-match org-tag-group-re txt) ;; Tags are in the string -- 2.32.0 --=-=-=--