emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mekeor Melire <mekeor@posteo.de>
To: emacs-orgmode@gnu.org
Subject: Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview
Date: Thu, 23 Jun 2022 23:44:04 +0000	[thread overview]
Message-ID: <87v8sr54bu.fsf@posteo.de> (raw)


I'm trying to customize org-columns-modify-value-for-display-function in
order to change how time-stamps are displayed. I tried this kind of

--8<---------------cut here---------------start------------->8---
(lambda (column-title value)
  (pcase column-title
      (if value
        (format-time-string "%02m'%d %a %R"
          (org-read-date t t value))
    (_ nil)))
--8<---------------cut here---------------end--------------->8---

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?

Kind regards

             reply	other threads:[~2022-06-24  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23 23:44 Mekeor Melire [this message]
2022-07-01 12:06 ` Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview Ihor Radchenko
2022-07-01 12:48   ` Max Nikulin
2022-07-04 14:44   ` Mekeor Melire

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:

  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=87v8sr54bu.fsf@posteo.de \
    --to=mekeor@posteo.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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).