From 5eb6c5f2c1e88eb0efbc85225ee9b4a7f4553407 Mon Sep 17 00:00:00 2001 From: hmurata Date: Wed, 9 Feb 2005 16:32:40 +0000 Subject: [PATCH] (wl-template-select): Cause error if `wl-template-alist' is nil. --- wl/ChangeLog | 5 +++++ wl/wl-template.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/wl/ChangeLog b/wl/ChangeLog index b796cd4..2e78f75 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,8 @@ +2005-02-09 Hiroya Murata + + * wl-template.el (wl-template-select): Cause error if + `wl-template-alist' is nil. + 2005-02-06 TAKAHASHI Kaoru * wl-news.el.in: Set file variable `no-byte-compile'. diff --git a/wl/wl-template.el b/wl/wl-template.el index 21c106d..b1f9230 100644 --- a/wl/wl-template.el +++ b/wl/wl-template.el @@ -93,6 +93,8 @@ Entering WL-Template mode calls the value of `wl-template-mode-hook'." (defun wl-template-select (&optional arg) "Select template from `wl-template-alist'." (interactive "P") + (unless wl-template-alist + (error "Please set `wl-template-alist'")) (if (not (if arg (not wl-template-visible-select) wl-template-visible-select)) -- 1.7.10.4