From feaaf63b8465bce6fcfb3cae6c0e678d77851516 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Tue, 21 Sep 2010 13:12:39 +0000 Subject: proof-deftoggle: add declare-function to prevent compiler warnings --- generic/proof-utils.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generic/proof-utils.el b/generic/proof-utils.el index bc487e86..53140629 100644 --- a/generic/proof-utils.el +++ b/generic/proof-utils.el @@ -520,7 +520,11 @@ It was constructed with `proof-deftoggle-fn'.") The toggle function uses `customize-set-variable' to change the variable. OTHERNAME gives an alternative name than the default -toggle. The name of the defined function is returned." - `(proof-deftoggle-fn (quote ,var) (quote ,othername))) + `(progn + (declare-function ,(if othername othername + (intern (concat (symbol-name var) "-toggle"))) + "proof-utils") + (proof-deftoggle-fn (quote ,var) (quote ,othername)))) (defun proof-defintset-fn (var &optional othername) "Define a function -intset for setting an integer customize setting VAR. -- cgit v1.2.3