diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2009-09-09 11:48:28 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2009-09-09 11:48:28 +0000 |
commit | 9ab675b24fa06781ce382c90b5e318f3481b5d0c (patch) | |
tree | 88b50c5a991bab1826c6f8393fcca7685f63d793 /lib/proof-compat.el | |
parent | 2a6a66e9ff16b9c362c1d4493abe4f7c341f0941 (diff) |
Add compatilibity for declare-function in Emacs 22.1
Diffstat (limited to 'lib/proof-compat.el')
-rw-r--r-- | lib/proof-compat.el | 9 |
1 files changed, 9 insertions, 0 deletions
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) |