summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-08-13 23:53:18 +0200
committerBastien Guerry <bzg@altern.org>2012-08-13 23:53:18 +0200
commit944fd9d651633e2137ba75de6b6fe6b85aa75897 (patch)
tree2268ffce08d1fb32fd4014fa81f8f4bff267b8b6
parentd1b72db9618fe36be3bc81e819a593b910f75eb3 (diff)
downloadorg-mode-944fd9d651633e2137ba75de6b6fe6b85aa75897.tar.gz
org.el: Fix bug in `org-fill-template'
* org.el (org-fill-template): Fix bug when filling template for a key associated to the nil value. Thanks to Ken Williams for reporting this.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 611b7a5..c9b6175 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20152,7 +20152,7 @@ N may optionally be the number of spaces to remove."
(setq template
(replace-regexp-in-string
(concat "%" (regexp-quote (car entry)))
- (cdr entry) template t t)))
+ (or (cdr entry) "") template t t)))
template))
(defun org-base-buffer (buffer)