(lynx "lynx" "-source")
(curl "curl")))
-(defcustom mm-url-program
+(defcustom mm-url-program
(cond
((executable-find "wget") 'wget)
((executable-find "w3m") 'w3m)
((executable-find "curl") 'curl)
(t "GET"))
"The url grab program."
- :type '(choice
+ :type '(choice
(symbol :tag "wget" wget)
(symbol :tag "w3m" w3m)
(symbol :tag "lynx" lynx)
(defun mm-url-load-url ()
"Load `url-insert-file-contents'."
- (condition-case ()
- (require 'url-handlers)
- (error nil))
- (require 'url))
+ (unless (condition-case ()
+ (require 'url-handlers)
+ (error nil))
+ ;; w3-4.0pre0.46 or earlier version.
+ (require 'w3-vars)
+ (require 'url)))
(defun mm-url-insert-file-contents (url)
(if mm-url-use-external