From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: url-cache - (require 'url) Date: Tue, 3 Jan 2006 09:51:41 +0000 Message-ID: <21C6AB91-2B23-417B-A0BE-AFD7EA2DA05D@gmail.com> References: <87y81zusp7.fsf-monnier+emacs@gnu.org> <87hd8mvc6k.fsf-monnier+emacs@gnu.org> <87ek3qt77f.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136289395 4995 80.91.229.2 (3 Jan 2006 11:56:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 11:56:35 +0000 (UTC) Cc: Emacs-Devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 03 12:56:34 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 1EtkmH-0003Wz-51 for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2006 12:56:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtknJ-0002YW-9u for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2006 06:57:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Etitf-00052A-W7 for emacs-devel@gnu.org; Tue, 03 Jan 2006 04:56:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtirK-0004tp-9T for emacs-devel@gnu.org; Tue, 03 Jan 2006 04:53:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Etir9-0004tJ-2j for emacs-devel@gnu.org; Tue, 03 Jan 2006 04:53:29 -0500 Original-Received: from [64.233.184.201] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtisL-0002CS-Gt for emacs-devel@gnu.org; Tue, 03 Jan 2006 04:54:41 -0500 Original-Received: by wproxy.gmail.com with SMTP id i27so1612943wra for ; Tue, 03 Jan 2006 01:51:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=lN0G39muwMWPLd8WO5+qG7P9ACPYVGU4Qvb+KiW7B+QVXi0ndMPeRfp5Y8jv3rLcap+QPcXHuyCLxPNLuYwCkDi0oEF5XGXUNRg7sV4VaDX1mVhIhr+cprEA3jjq2E3YEDGULFBS6eHFwqIDKm03LisgYlAJ1/8i3Z8bMOOlg8A= Original-Received: by 10.65.133.10 with SMTP id k10mr386004qbn; Tue, 03 Jan 2006 01:51:45 -0800 (PST) Original-Received: from ?10.0.0.103? ( [82.41.74.89]) by mx.gmail.com with ESMTP id f12sm3318500qba.2006.01.03.01.51.44; Tue, 03 Jan 2006 01:51:44 -0800 (PST) In-Reply-To: <87ek3qt77f.fsf-monnier+emacs@gnu.org> Original-To: Stefan Monnier X-Mailer: Apple Mail (2.746.2) 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:48649 Archived-At: On 3 Jan 2006, at 01:46, Stefan Monnier wrote: > >> Is url-retrieve higher-level, and should it be used? > > Yes. See the anemic texinfo docs. Fine. Using it now, it complains about two things: /Users/dr/.emacs.d/url/history does not exist. Could not load cookie file /Users/dr/.emacs.d/url/cookies url-history-track is nil. Why load some history file when all I want to do is retrieve a defined URL. I don't use cookies, so can I prevent it from loading the cookie file. See, I'm using url-retrieve programmatically and without user interaction every three days when my Emacs is started. This is to check whether there is a new version on the server. Printing unnecessary messages is a no-no in this situation. So is wasting CPU time. I'm binding all sorts of things temporarily (like `url-automatic- caching' or `url-confirmation-func') just in case the user customizes these things. But as soon as a new option is added, I'll have to update my code.