From ce21e0a8db8e5059baa2c3ff7fd622be2f148721 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 14 Jun 2017 09:43:50 +0200 Subject: [PATCH] org-table: Add missing keywords to a defcustom * lisp/org-table.el (org-table-duration-hour-zero-padding): Add :package-version and :safe. Fix :version and docstring. --- etc/ORG-NEWS | 6 ++++++ lisp/org-table.el | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 83972d4e9..30baa5af1 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -250,6 +250,12 @@ to ~org-file-contents~. Using ~C-c C-c~ on any keyword (like ~#+SETUPFILE~) will reset the that file cache. +*** New option : ~org-table-duration-hour-zero-padding~ +This variable allow computed durations in tables to be zero-padded. + +*** New mode switch for table formulas : =U= +This mode omits seconds in durations. + ** Removed functions *** Org Timeline diff --git a/lisp/org-table.el b/lisp/org-table.el index 817b2096d..595c4e9e1 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -306,11 +306,13 @@ a single formula." (symbol :tag "HH:MM " 'hh:mm))) (defcustom org-table-duration-hour-zero-padding t - "Non-nil means, hours in table duration computations should be zero-padded. + "Non-nil means hours in table duration computations should be zero-padded. So this is about 08:32:34 versus 8:33:34." :group 'org-table-calculation - :version "24.1" - :type 'boolean) + :version "26.1" + :package-version '(Org . "9.1") + :type 'boolean + :safe #'booleanp) (defcustom org-table-formula-field-format "%s" "Format for fields which contain the result of a formula.