Fix bug in compatibility code for `org-remember-templates'.

This commit is contained in:
Carsten Dominik 2008-09-05 08:19:43 +02:00
parent 2a599b42d1
commit d5ceac5848
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2008-09-05 Carsten Dominik <dominik@science.uva.nl>
* org-remember.el (org-remember-templates): Add nil instead of
empty strings to fix the length of remember templates.
* org-table.el (org-calc-default-modes): Fix the time format for
calc, from 12 hour to 24 hour clock.

View File

@ -164,8 +164,8 @@ calendar | %:type %:date"
:get (lambda (var) ; Make sure all entries have at least 5 elements
(mapcar (lambda (x)
(if (not (stringp (car x))) (setq x (cons "" x)))
(cond ((= (length x) 4) (append x '("")))
((= (length x) 3) (append x '("" "")))
(cond ((= (length x) 4) (append x '(nil)))
((= (length x) 3) (append x '(nil nil)))
(t x)))
(default-value var)))
:type '(repeat