From 9ab675b24fa06781ce382c90b5e318f3481b5d0c Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 9 Sep 2009 11:48:28 +0000 Subject: Add compatilibity for declare-function in Emacs 22.1 --- lib/proof-compat.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/proof-compat.el') diff --git a/lib/proof-compat.el b/lib/proof-compat.el index 73522b45..4c77c34a 100644 --- a/lib/proof-compat.el +++ b/lib/proof-compat.el @@ -173,5 +173,14 @@ The returned value is one of the following symbols: (defun characterp (obj) (with-no-warnings (char-valid-p obj)))) + +(or (fboundp 'declare-function) +;; taken from Emacs 22.2, not present in 22.1: +(defmacro declare-function (&rest args) + "In Emacs 22, does nothing. In 23, it will suppress byte-compiler warnings. +This definition is so that packages may take advantage of the +Emacs 23 feature and still remain compatible with Emacs 22." + nil)) + ;; End of proof-compat.el (provide 'proof-compat) -- cgit v1.2.3