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 qGTpIiraWmFdagEAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 12:40:42 +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 aN6pHiraWmEXHAAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 10:40:42 +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 E478F23B3F for ; Mon, 4 Oct 2021 12:40:41 +0200 (CEST) Received: from localhost ([::1]:42358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXLOi-0000mJ-Du for larch@yhetil.org; Mon, 04 Oct 2021 06:40:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXLJw-0006Xa-8r for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 06:35:45 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:50865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXLJu-0002eJ-T0 for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 06:35:44 -0400 Received: by mail-wm1-x32b.google.com with SMTP id j27so13099122wms.0 for ; Mon, 04 Oct 2021 03:35:42 -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=xyO4f9335AuRAXz3taL8p2rNdNDPyKtcImHx9YTejHo=; b=V6D1Eg3xyfjFGzAFdfCVzGWLYgb8pm3172rdEmadrfihrtp4J5eKXt/KJieLeQOd6a vyhRxchNNCz4yx3gXznAi3DgoaHI3Gdf4id/qVYezuIcCjR1q+jjnKf8w6oHB7JmE9qJ Rjs5/Ieh1dS3xs/p3dV/9BxgZpHU8JHBi1i09Jj7HcA1HuIvTEMkEvTaTGMatLFG7xNA BMQmBOKOl2sIlVIyfBwiGMaFuhYYfKOWdaM+HmOOInxNzL+Phk0LNG9PotP9Uv48qlbB CPm57xAmSpxL1pLFs/gVAijTyeuxgMBDP5Zid5lrccBTRPnF/uHDRYPVdWrGpH7aMfg3 uItw== 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=xyO4f9335AuRAXz3taL8p2rNdNDPyKtcImHx9YTejHo=; b=RaKBEzoHZYUfsA2drcMho4pgxd25KSnFxeMU/M72rSX21qHYtj5tlEXHx9u2CCqs5o RXA02as8c/EV7SIHRIxcMxqd4CgH+sOF2STMQRktJ4TYr/l1U0BPH8r/FqH2xhJdoe30 Jv/JzRXWdCtikHItuY2l2xmYDGtMBqUSkwv5oLuypTrij74dYzUCJbVD42vv9ADRe0dS FTmX0VdjXiZ7xDPmfuKcptQcqAYR2Q3H8l5dx6GvSSp4A/SazCvqYBzh2TAen+/a/ATs FVFntY0W50QyROZB6a7O6WXiTmWVm9MG+Fll7dp32SW2k6uB48V1G0ExkUWbWKYdDZav mPQw== X-Gm-Message-State: AOAM532wYZWX0phFpdQDwpOFirN8rlTw4/B+QgvGYUtcT2dHR65/jP6Y qnO00EYKYJ1s9fiDrih2Q+c= X-Google-Smtp-Source: ABdhPJwBQeCaDUv1cHpq10DyKRRJjyVwDHkV/CQofjIn5wYXJRSZ7vgFm/x47aFrVyYZ/gDta+QbjQ== X-Received: by 2002:a7b:c391:: with SMTP id s17mr18128500wmj.139.1633343741155; Mon, 04 Oct 2021 03:35:41 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id o8sm7371804wme.38.2021.10.04.03.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 03:35:40 -0700 (PDT) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: [PATCH] The align of time is not beautiful as 9.4 when I update to org 9.5. In-Reply-To: <87fsthm71h.fsf@nicolasgoaziou.fr> References: <3afe1bba.2f48.17c350d0a41.Coremail.tumashu@163.com> <877detcjry.fsf@localhost> <87fsthm71h.fsf@nicolasgoaziou.fr> Date: Mon, 04 Oct 2021 18:36:57 +0800 Message-ID: <87r1d1axfa.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=yantar92@gmail.com; helo=mail-wm1-x32b.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: Max Nikulin , emacs-orgmode@gnu.org 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=1633344041; 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=xyO4f9335AuRAXz3taL8p2rNdNDPyKtcImHx9YTejHo=; b=VqQRsTe9a+wXhsSkFuen+awNKh3JFacdFZiNKL+T9X7s8BigMTZPWHRM/vc7AED2EMv4sz nIHPtzRNz9HPyEf/D/tpozMSGIyZQKg3vuQ9CrYCRq7bHlBRrXVUUAE1vYI52w7EtHZGNm Iaq0LUVjX10hOJWyaQ20++hbldPe0f+lsXHhHWegZfOelwR24H/hIDldDtwgV135ni0XBB QAisIMId67Uk2hp4wEBh48W8TuV6xp3fGKS2CmH+D1rAqOAcGpFUY4SJ9KFygHvs3Dunhz Ebo2jzY6BCu7T+vnX3us18hKMyFEQaWXrzCYVnNmAKghIKYzD98DKfuN8JWqUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633344041; a=rsa-sha256; cv=none; b=AfLKp1xxSx31h4YyRL1btPc7dcQvdzCRF5YYNPEGlTeS2k9s913rCwSSfyy/rbeol4ai5i RYIW7PgeqcW04U0cBsQq/bCg8UtxFdgGftMaGJmNizfwL2DhPuKn9SuJsCGJTT9Gr5W/EE NrXSPoFjTEoe70hRH093UkM3eO67/8RoCGpIN5Yxw/Gm0yDebeicFBRm3+dv1mDA7qnIo9 Fr4W6UCHkN3sWcXOxIGq1N0mDJil66ZGzXe8jTx3jjEbhPbHV5pJ4NQjjN91zqR5wWAxtx MtAYCq1UXMY8beozXsfDy44iI5UrJFmmD8+AeU2EIwJwiro3qIM8viRSYl5vOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=V6D1Eg3x; 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=V6D1Eg3x; 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: E478F23B3F X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: im9iwbK6FJgX Nicolas Goaziou writes: >> I think, "%5s" is enough, flag "0" does not anything useful for >> strings. > > Also, the fix belongs to `org-get-time-of-day', which is also > responsible for formatting the output. I doubt so. `org-get-time-of-day' is used to format ending time in time ranges. If we force fixed width in `org-get-time-of-day', we may have something like " 8:00- 9:00" instead of " 8:00-9:00". On the other hand, the current behaviour for non-nil org-agenda-timegrid-use-ampm, we already have "8am- 9am" even without the patch. WDYT? Best, Ihor