From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] The align of time is not beautiful as 9.4 when I update to org 9.5.
Date: Mon, 04 Oct 2021 12:13:46 +0200 [thread overview]
Message-ID: <87fsthm71h.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <sjeitk$e0q$1@ciao.gmane.io> (Max Nikulin's message of "Mon, 4 Oct 2021 16:52:45 +0700")
Hello,
Max Nikulin <manikulin@gmail.com> writes:
> On 04/10/2021 14:48, Ihor Radchenko wrote:
>> tumashu writes:
>>>
>>> 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.
>
>> - (when s1 (setq s1 (org-get-time-of-day s1 'overtime)))
>> + (when s1 (setq s1 (format "%05s" (org-get-time-of-day s1 'overtime))))
>
> 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.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2021-10-04 10:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 4:53 The align of time is not beautiful as 9.4 when I update to org 9.5 tumashu
2021-09-30 10:59 ` Ihor Radchenko
2021-09-30 11:19 ` Eric S Fraga
2021-10-04 7:48 ` [PATCH] " Ihor Radchenko
2021-10-04 9:52 ` Max Nikulin
2021-10-04 10:13 ` Nicolas Goaziou [this message]
2021-10-04 10:36 ` Ihor Radchenko
2021-10-06 12:48 ` Nicolas Goaziou
2021-10-04 10:55 ` tumashu
2021-12-11 7:44 ` Ihor Radchenko
2021-12-18 8:15 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsthm71h.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=manikulin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).