summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-15 15:46:52 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-15 15:46:52 +0200
commit4bf0979f4c5b87f53a1da435569ba5646e1d93e5 (patch)
treec0afcc2b8f097e3f95b5313b438f85fe52c7444a /lisp/emacs-lisp
parent478615cc10347eac8d0a2846f3364b1d887ae3d5 (diff)
downloademacs-4bf0979f4c5b87f53a1da435569ba5646e1d93e5.tar.gz
emacs-4bf0979f4c5b87f53a1da435569ba5646e1d93e5.tar.bz2
emacs-4bf0979f4c5b87f53a1da435569ba5646e1d93e5.zip
* emacs-lisp/cl-macs.el (declare): Add a doc string (bug#8690).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 2813cc4f065..623d1c6418f 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1601,6 +1601,12 @@ values. For compatibility, (values A B C) is a synonym for (list A B C).
;;;###autoload
(defmacro declare (&rest specs)
+ "Declare something about SPECS while compiling.
+For instance
+
+ \(declare (warn 0))
+
+will turn off byte-compile warnings."
(if (cl-compiling-file)
(while specs
(if (listp cl-declare-stack) (push (car specs) cl-declare-stack))