emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org, orgmode@pm.me
Subject: Re: Possible bug with columnview and active dates
Date: Mon, 11 May 2020 08:59:37 +0200	[thread overview]
Message-ID: <877dxjx8h2.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87mu6f5x2i.fsf@kyleam.com> (Kyle Meyer's message of "Sun, 10 May 2020 20:55:49 +0000")

Hello,

Kyle Meyer <kyle@kyleam.com> writes:

>> restoring the original behavior of stripping the brackets given how long
>> the current behavior has been around.  Instead I think it'd be better to
>> update the documentation and tweak the output on colview's end.
>
> For the "tweaking the output part", it looks this is already possible on
> the user's end via org-columns-modify-value-for-display-function.
> Here's a lightly tested function that I think does what you want:
>
>     (defun my/org-columns-remove-brackets (_title value)
>       (and (string-match org-ts-regexp value)
>            (match-string 1 value)))
>     
>     (setq org-columns-modify-value-for-display-function
>           #'my/org-columns-remove-brackets)

For the record, the change was not intentional.

I agree it is not a good idea to leave a duplicate active time stamp in
a table.

IIRC, date computations in the spreadsheet return inactive timestamps.
So, if we don't want to conform to the documentation, we could insert an
inactive time-stamp instead, to be on the safe side.

WDYT?

Regards,

-- 
Nicolas Goaziou


  reply	other threads:[~2020-05-11  6:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-10 15:29 Org Mode
2020-05-10 19:13 ` Kyle Meyer
2020-05-10 20:11   ` Kyle Meyer
2020-05-10 20:55     ` Kyle Meyer
2020-05-11  6:59       ` Nicolas Goaziou [this message]
2020-05-11 13:24         ` Kyle Meyer
2020-05-12  2:08           ` [PATCH] colview: Display active time stamps as inactive Kyle Meyer
2020-05-13  2:51             ` Kyle Meyer
2020-05-13  8:01               ` Nicolas Goaziou
2020-05-10 21:31     ` [PATCH] manual: Fix special property descriptions for DEADLINE/SCHEDULED Kyle Meyer

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=877dxjx8h2.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kyle@kyleam.com \
    --cc=orgmode@pm.me \
    --subject='Re: Possible bug with columnview and active dates' \
    /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

Code repositories for project(s) associated with this 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).