I'm on Windows. I updated my emacs to 24.4. Now, when trying to open a file that has its extension mapped to the Visual Basic mode at http://www.emacswiki.org/emacs/visual-basic-mode.el, I get these errors:
file mode specification error (void-variable \\)
Debug stack trace:
Debugger entered--Lisp error: (void-variable \\)
eval-buffer(#<buffer *load*> nil "d:/Program Files/emacs/share/emacs/site-lisp/visual-basic-mode.el" nil t) ; Reading at buffer position 69251
load-with-code-conversion("d:/Program Files/emacs/share/emacs/site-lisp/visual-basic-mode.el" "d:/Program Files/emacs/share/emacs/site-lisp/visual-basic-mode.el" nil t)
visual-basic-mode()
set-auto-mode-0(visual-basic-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(t t)
find-file-noselect-1(#<buffer file.vbs> "d:/file.vbs" nil nil "d:/file.vbs" nil)
find-file-noselect("d:/file.vbs" nil nil t)
find-file("d:/file.vbs" t)
call-interactively(find-file nil nil)
command-execute(find-file)
Reading at buffer position 69251
visual-basic-mode
off of the EmacsWiki, by any chance? The debug message says there's a problem at position 69251 ((goto-char 69251)
), which is the first non-comment line after(provide 'visual-basic-mode)
. It looks like there's a lot of junk from here to the bottom of the file; try commenting it all out and see if it works for you.