[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

If w3m-init-file is nil



Hello,

At the end of w3m.el,

(unless noninteractive
  (if (string-match "\\.el\\'" w3m-init-file)
      (or (load (concat w3m-init-file "c") t t t)
	  (load w3m-init-file t t t))
    (load w3m-init-file t t))
  (run-hooks 'w3m-load-hook))

does not check whether w3m-init-file is a file or not. For example if I
set it to nil in my init file, that form throws an error.

So I suggest maybe checking w3m-init-file is string before doing
string-match.

Cheers,
Leo