emacs-devel
[Top][All Lists]
Advanced

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

Re: url-cache - (require 'url)


From: Stefan Monnier
Subject: Re: url-cache - (require 'url)
Date: Mon, 02 Jan 2006 00:08:27 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I think url-cache.el needs a (require 'url) to define url-
> configuration-directory which is (now) needed to define url-cache-
> directory. Otherwise, a simple (require 'url-cache) fails unless url isn't
> loaded beforehand.

> --Lisp error: (void-variable url-configuration-directory)
>    (expand-file-name "cache" url-configuration-directory)
>    eval((expand-file-name "cache" url-configuration-directory))
>    custom-initialize-reset(url-cache-directory (expand-file-name  "cache"
>    url-configuration-directory))
>    custom-declare-variable(url-cache-directory (expand-file-name  "cache"
>    url-configuration-directory) ("/Applications/Aquamacs
>    Emacs.app/Contents/Resources/lisp/url/url-cache.elc" . -662) :type
>    directory :group url-file)
>    require(url-cache)

When I removed the autoload on url-configuration-directory I ended up
convincing myself that url-cache.el was never loaded before url.el.
You're probably right that a `require' is in order, but I'd be interested
to know if you've bumped into a real-life case where it's needed.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]