]> code.delx.au - gnu-emacs/blobdiff - lisp/subr.el
Pacify byte-compiler for with-wrapper-hook
[gnu-emacs] / lisp / subr.el
index 0fa6404d37dcb692171294e816231b3dd8481708..438f00a6f134c2ccf54fddf4342b6dabc7792ab4 100644 (file)
@@ -1546,6 +1546,10 @@ FUN is then called once."
   (declare (indent 2) (debug (form sexp body))
            (obsolete "use a <foo>-function variable modified by `add-function'."
                      "24.4"))
+  `(subr--with-wrapper-hook-no-warnings ,hook ,args ,@body))
+
+(defmacro subr--with-wrapper-hook-no-warnings (hook args &rest body)
+  "Like (with-wrapper-hook HOOK ARGS BODY), but without warnings."
   ;; We need those two gensyms because CL's lexical scoping is not available
   ;; for function arguments :-(
   (let ((funs (make-symbol "funs"))