emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing org-columns-modify-value-for-display-function to shorten


From: Mekeor Melire
Subject: Re: Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview
Date: Mon, 04 Jul 2022 14:44:36 +0000

2022-07-01 / 20:06 / yantar92@gmail.com:

> Mekeor Melire <mekeor@posteo.de> writes:
>
> > But it results in empty (nil, I guess) time-stamps being displayed as
> > the current time; and non-nil time-stamps being displayed with the
> > current hour and minute. What's wrong?
>
> Empty time-stamps will be literally empty: "" (that is: empty string).
> (if "" 1 2) will return 1. That's why you got unexpected result.
> You could instead use (if (and value (not (string-empty-p value))) ...)
>
> Best,
> Ihor

thank you very much, ihor. this worked! :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]