unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 5459@debbugs.gnu.org
Subject: bug#5459: Should url-util require url-vars?
Date: Sun, 24 Jan 2010 23:49:23 +0100	[thread overview]
Message-ID: <e01d8a51001241449v5f78e03bgec19adf4fad32d2d@mail.gmail.com> (raw)
In-Reply-To: <e01d8a51001241440r7995a8fejd0233e3771224ab3@mail.gmail.com>

On Sun, Jan 24, 2010 at 11:40 PM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> On Sat, Jan 23, 2010 at 11:50 PM, Chong Yidong <cyd@stupidchicken.com> wrote:
>>> url-show-status is defined in url-vars.el.
>>> url-http-content-length-after-change-function calls
>>> url-display-percentage which needs url-show-status.
>>>
>>> url-display-percentage is defined in url-util.el. Maybe this library
>>> should require url-vars?
>>
>> Yes.  Fixed now, thanks.
>
>
> Thanks. Unfortunately there are more trouble. And I suspect serious
> trouble. Please reopen the bug.
>
>
> This is what I get in my *Messages* buffer on w32 after explicitly
> loading url-vars.el (I have not rebuilt Emacs yet with your changes):
>
>  (featurep 'url-vars)=t, url-show-status=nil
>  error in process filter:
> url-http-content-length-after-change-function: Symbol's value as
> variable is void: url-show-status
>
> The first line is just from
>
>  (message "(featurep 'url-vars)=%s, url-show-status=%s" (featurep
> 'url-vars) url-show-status)
>
> The second line looks very strange to me since url-show-status was
> defined on the first line and it is defined in url-vars.el.


Hm, my bad. I did something like this:

  (let ((url-show-status nil)) ;; do not show download messages
    (require 'url-vars)
    (message "(featurep 'url-vars)=%s, url-show-status=%s" (featurep
'url-vars) url-show-status)
    (url-retrieve ...))

This prevented url-show-status to be defined when loading url-vars.
Placing (require 'url-vars) above the let statement fixed this.

Sorry for the trouble.






  parent reply	other threads:[~2010-01-24 22:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 20:36 bug#5459: Should url-util require url-vars? Lennart Borgman
2010-01-23 22:50 ` Chong Yidong
2010-01-24 22:40   ` Lennart Borgman
2010-01-24 22:48     ` Chong Yidong
2010-01-24 22:49     ` Lennart Borgman [this message]
2010-01-25  3:04       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a51001241449v5f78e03bgec19adf4fad32d2d@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=5459@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).