-
Notifications
You must be signed in to change notification settings - Fork 348
Description
A Debian user writes
With this .emacs.el:
(require 'flymake)
(add-hook 'find-file-hook 'flymake-find-file-hook)If I try to open any (new or existing) haskell file, for instance with
C-x C-x a.hs , it will give an error and not open the file.The error logged in Messages is:
split-string: Wrong type argument: stringp, nil
I could reproduce this in emacs 23.4.1, and I got the following backtrace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("[ \f \n
�]+" nil 0)
split-string(nil)
haskell-flymake-init()
flymake-start-syntax-check()
flymake-mode()
flymake-find-file-hook()
run-hooks(find-file-hook)
after-find-file(t t)
find-file-noselect-1(# "/b.hs" nil nil "/b.hs" nil)
find-file-noselect("/b.hs" nil nil t)/b.hs" t)
find-file("
call-interactively(find-file nil nil)