[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customizing org-columns-modify-value-for-display-function to shorten
From: |
Ihor Radchenko |
Subject: |
Re: Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview |
Date: |
Fri, 01 Jul 2022 20:06:51 +0800 |
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
- Re: Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview,
Ihor Radchenko <=