From: Glenn Morris Date: Fri, 24 May 2013 03:50:31 +0000 (-0700) Subject: * lisp/progmodes/js.el (js--optimize-arglist): Declare. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~212 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=43cc956bb86b5c6dab117af89c4cfae450b62113;p=emacs.git * lisp/progmodes/js.el (js--optimize-arglist): Declare. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0919e5c3c64..c863506ed2d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2013-05-24 Glenn Morris + * progmodes/js.el (js--optimize-arglist): Declare. + * progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare. * progmodes/which-func.el (ediff-window-A, ediff-window-B) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 4e345b4bfa9..28ee859f9db 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -2704,6 +2704,10 @@ with `js--js-encode-value'." (defsubst js--js-true (value) (not (js--js-not value))) +;; The somewhat complex code layout confuses the byte-compiler into +;; thinking this function "might not be defined at runtime". +(declare-function js--optimize-arglist "js" (arglist)) + (eval-and-compile (defun js--optimize-arglist (arglist) "Convert immediate js< and js! references to deferred ones."