[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
If w3m-init-file is nil
- From: Leo <sdl.web@xxxxxxxxx>
- Date: Tue, 21 Sep 2010 14:02:40 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 11358
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