From 43cc956bb86b5c6dab117af89c4cfae450b62113 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 23 May 2013 20:50:31 -0700 Subject: [PATCH] * lisp/progmodes/js.el (js--optimize-arglist): Declare. --- lisp/ChangeLog | 2 ++ lisp/progmodes/js.el | 4 ++++ 2 files changed, 6 insertions(+) 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." -- 2.39.2