redguardtoo / js-comint

js-comint will send the code from Emacs into node.js or rhino
GNU General Public License v3.0
69 stars 22 forks source link

Fix byte-compile warnings by declaration position #5

Closed syohex closed 8 years ago

syohex commented 8 years ago

There are some byte-compile warning about this.

js-comint.el:86:1:Warning: defcustom for `inferior-js-program-command' fails
    to specify containing group
js-comint.el:86:1:Warning: defcustom for `inferior-js-program-command' fails
    to specify containing group
js-comint.el:89:1:Warning: defcustom for `inferior-js-program-arguments' fails
    to specify containing group
js-comint.el:89:1:Warning: defcustom for `inferior-js-program-arguments' fails
    to specify containing group
js-comint.el:186:9:Warning: assignment to free variable `inferior-js-buffer'

In js-send-region:
js-comint.el:195:23:Warning: reference to free variable `inferior-js-buffer'

In js-send-region-and-go:
js-comint.el:203:23:Warning: reference to free variable `inferior-js-buffer'

In js-load-file:
js-comint.el:248:25:Warning: reference to free variable `inferior-js-buffer'

In js-load-file-and-go:
js-comint.el:256:25:Warning: reference to free variable `inferior-js-buffer'

In switch-to-js:
js-comint.el:264:16:Warning: reference to free variable `inferior-js-buffer'