summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2008-03-10 09:14:15 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2008-03-10 09:14:15 +0100
commitf2f072f3b69cc2441fc59feac1a84dc329fe96f3 (patch)
treeb6de2540702ec09143364da57c2eca4a3c7d1e56
parentcb8c0e81a991d0e67fc95232a19286d825a0d671 (diff)
downloadorg-mode-f2f072f3b69cc2441fc59feac1a84dc329fe96f3.tar.gz
Make sure old customizations for `org-time-stamp-rounting-minutes' work.
-rw-r--r--org.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.el b/org.el
index 7a4f73b..f9af7c4 100644
--- a/org.el
+++ b/org.el
@@ -1982,7 +1982,7 @@ the time stamp will always be forced into the second line."
"Formats for `format-time-string' which are used for time stamps.
It is not recommended to change this constant.")
-(defcustom org-time-stamp-rounding-minutes '(0 5)
+(defcustom org-time-stamp-rounding-minutes '(0 0)
"Number of minutes to round time stamps to.
These are two values, the first applies when first creating a time stamp.
The second applies when changing it with the commands `S-up' and `S-down'.
@@ -2005,6 +2005,12 @@ of minutes to shift."
(integer :tag "when inserting times")
(integer :tag "when modifying times")))
+;; Make sure old customizations of this variable don't lead to problems.
+(when (integerp org-time-stamp-rounding-minutes)
+ (setq org-time-stamp-rounding-minutes
+ (list org-time-stamp-rounding-minutes
+ org-time-stamp-rounding-minutes)))
+
(defcustom org-display-custom-times nil
"Non-nil means, overlay custom formats over all time stamps.
The formats are defined through the variable `org-time-stamp-custom-formats'.