From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SDfZFZ+ItWIBaAEAbAwnHQ (envelope-from ) for ; Fri, 24 Jun 2022 11:49:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6GrTFZ+ItWL3kQAAauVa8A (envelope-from ) for ; Fri, 24 Jun 2022 11:49:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E45B33A2CF for ; Fri, 24 Jun 2022 11:49:18 +0200 (CEST) Received: from localhost ([::1]:58916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4fwD-0001ro-ER for larch@yhetil.org; Fri, 24 Jun 2022 05:49:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Waq-00087V-Cb for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 19:50:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Wao-0001Qp-B5 for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 19:50:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E99F4240108 for ; Fri, 24 Jun 2022 01:50:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1656028230; bh=2+BCze9yVDaMxxwjyziH21kjFmJenu8zV2ZA9XZaTj4=; h=From:To:Subject:Date:From; b=Ba3HANwZSCfN/7JUHy/NKlob9mx5Pk8C1c14Vy1bH1pe3wYdZiEUAuyegOGtducbw A1nHMxGaIMmA8B7C8pcmRCtAcUlIFkCvatJ9oZTgXPW0dDx3wjHfRI8KqQAuZThn6k YZG9GBkuf7zHqEi/CSDZrgdhwZ9LzZEeevzPbmHhca8A4TNjQ88EhCPTh2m1Jm/PUq fJyHLAfvgYPu3EyCnrnu2UXZCjaYU1rLhz5FMbHT2AZCaMn8T1Mbk7udjs0dTC5P7e ZgAGG+bQP91O2SKpRRe3uxPQJ7mqXu9RhiTJUBa+ST1MIn2lX8ueyL9cQOLr+uxzTr pIUIV5ZMQ4dEA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LTcSk0PCbz6tmN; Fri, 24 Jun 2022 01:50:30 +0200 (CEST) From: Mekeor Melire 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 Message-ID: <87v8sr54bu.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 24 Jun 2022 05:47:54 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656064159; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=so5VoYTz6SqdVxb7WPJBTZEUPy/AcWsMN9yXwZzX3CQ=; b=Q9uShLXzxQYqlnrifelGRTO30bu5lByN/0lsBAbEKV6tATrdqUGStQwBApbgXZh7qweKQM xvQJFbrOY2y2cpSiABKhvMOPBWfdzryzCRaSCuPn0aFY7cPTVa614f/Oo4AqDrZOZKjNjf IUqMQaTC/t6JgcyZRciZniRBpTP3CE1vRKa5CYcWyG0mydwoCTv03v1alRRhiKwjiBuAk/ u43zUhphcF7LVsCfdz+bLKqQEvcGm9yGTpaFW+LrTAO/vETRy7amGdRKZPFmu2RI4dOis1 1PfhfH1GOkrWlTVudI4VDaklh/b4UDevungeksei0Jvg7PZKOrEUFFnWnbZ+pw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656064159; a=rsa-sha256; cv=none; b=u8lOoYePN+DZ+jS8HcsbiXVzcWQeoce9XeWh7c+kSy+FnFhT2zIomM7ZPof/C/zoEWCqzC CGFLhcyJojMrlg7fKsOIIQwuIzQgpqX4sapcttj7aCjbE8l0xsraM8/fKY1UIctkURw6Gb 81ZwqPOonBq7tP6FGEwuhjeqX1VOZDgjFa56HlXBt2W2WnhFmSGwy3jBGxMhzmkGzf/jj5 zozQFj3aq5A1KE64heUcZA4+uzUZ2oWOr6vDQt5AFThzjwYA6C4sjFkAI9m7mRpbVVmg/C 6OEAY4tnmdqKUJMoy4bVA0FtkUswxyO3TE8rWNF5ppe8SeNkeq5CY9X2sBkqXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=Ba3HANwZ; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=Ba3HANwZ; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E45B33A2CF X-Spam-Score: -4.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: gljCXgi3b4Ih Hello, 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 function: --8<---------------cut here---------------start------------->8--- (lambda (column-title value) (pcase column-title ((or "SCHEDULED" "TIMESTAMP" "DEADLINE") (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 Mekeor