From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: url-cache - (require 'url) Date: Mon, 02 Jan 2006 00:08:27 -0500 Message-ID: <87y81zusp7.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136178525 18003 80.91.229.2 (2 Jan 2006 05:08:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2006 05:08:45 +0000 (UTC) Cc: Emacs-Devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 02 06:08:45 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EtHw4-00068T-MN for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 06:08:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtHxd-0008In-4r for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 00:10:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtHxQ-0008Ih-98 for emacs-devel@gnu.org; Mon, 02 Jan 2006 00:10:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtHxO-0008IV-Dk for emacs-devel@gnu.org; Mon, 02 Jan 2006 00:10:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtHxO-0008IS-6p for emacs-devel@gnu.org; Mon, 02 Jan 2006 00:10:06 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtHyN-0003TS-MO for emacs-devel@gnu.org; Mon, 02 Jan 2006 00:11:07 -0500 Original-Received: from alfajor ([67.71.26.159]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060102050828.UZQO23065.tomts43-srv.bellnexxia.net@alfajor>; Mon, 2 Jan 2006 00:08:28 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 06E09D7697; Mon, 2 Jan 2006 00:08:27 -0500 (EST) Original-To: David Reitter In-Reply-To: (David Reitter's message of "Sun, 1 Jan 2006 17:48:44 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48613 Archived-At: > 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