(require 'flymake-js)
(add-hook 'javascript-mode-hook 'flymake-js-load)
to my '.emacs' file and then 'eval-buffer', I get this error:
append: Symbol's value as variable is void: compilation-error-
regexp-alist-alist
More detail here:
http://www.dzone.com/links/onthefly_javascript_syntax_checking_in_emacs.html
Thank you in advance.
Whenever I add:
(require 'flymake-js)
(add-hook 'javascript-mode-hook 'flymake-js-load)
to my '.emacs' file and then 'eval-buffer', I get this error:
append: Symbol's value as variable is void: compilation-error-
regexp-alist-alist
i don't see flymake-js.el anywhere in the emacs source, so the
following is a guess, from studying (briefly) flymake.el:
the variable compilation-error-regexp-alist-alist is defined in
compile.el. try adding (before the forms above):
(require 'compile)
long term it would probably be a good idea to see what
flymake-js.el offers that flymake.el doesn't and merge those
features into flymake.el.
thi
Looks like there was an error in 'flymake.el' -- looks like they had
typed an extra '-alist'? See code and comment I put in my local copy:
;; compilation-error-regexp-alist)
;; Was compilation-error-regexp-alist-alist below. That seems to
be an error. -- cbalz 2008-01-23
(flymake-reformat-err-line-patterns-from-compile-el compilation-
error-regexp-alist)) ;; -- cbalz 2008-01-23
Using 'M-x describe-variable', I get the correct definition for
'compilation-error-regexp-alist'.
Yet now that 'flymake-js.el' runs without error and starts up (showing
on the modeline), I get this problem, which totally removes Emacs'
ability to save files! Any idea here?
File mode specification error: (error "IO error writing z:/work/det-us/
web/javascript/serena/Ajx/src/core/Ajx_flymake.js: Bad file
descriptor")
vc-insert-file: IO error reading z:/work/det-us/web/javascript/serena/
Ajx/src/core/CVS/Entries: Bad file descriptor
Proc Status Buffer Tty Command
---- ------ ------ --- -------
flymake-proc<31> run Ajx.js (none) java -jar c:/Progra~1/
rhino1_6R7/js.jar c:/Progra~1/emacs/site/rhino-web-browser-js-
environment/rhino.js Ajx_flymake.js
flymake-proc<30> run Ajx.js (none) java -jar c:/Progra~1/
rhino1_6R7/js.jar c:/Progra~1/emacs/site/rhino-web-browser-js-
environment/rhino.js Ajx_flymake.js
From the frying pan to the fire!
- cb
http://20y.hu/20070824/on-the-fly-javascript-syntax-checking-in-emacs.html#more-1735