all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: raman <raman@google.com>
Cc: emacs-devel@gnu.org
Subject: Re: eww: call to eww-render looks incorrect
Date: Sun, 03 Sep 2017 19:27:46 +0300	[thread overview]
Message-ID: <8360czycfx.fsf@gnu.org> (raw)
In-Reply-To: <p911snn7paj.fsf@raman-glaptop2> (message from raman on Sun, 03 Sep 2017 08:52:20 -0700)

> From: raman <raman@google.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 03 Sep 2017 08:52:20 -0700
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> I might be confused -- reading that signature I thought status should be
> passed first, the call I see passes url first

No, status is not included in the list of arguments.  The doc string
says:

  (url-retrieve URL CALLBACK &optional CBARGS SILENT INHIBIT-COOKIES)

  Retrieve URL asynchronously and call CALLBACK with CBARGS when finished.
  URL is either a string or a parsed URL.  If it is a string
  containing characters that are not valid in a URI, those
  characters are percent-encoded; see ‘url-encode-url’.

  CALLBACK is called when the object has been completely retrieved, with
  the current buffer containing the object, and any MIME headers associated
  with it.  It is called as (apply CALLBACK STATUS CBARGS).
  STATUS is a plist representing what happened during the request,

As you see, only CBARGS are taken from the call to url-retrieve, the
status is added when the callback is invoked.



  reply	other threads:[~2017-09-03 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-02 22:38 eww: call to eww-render looks incorrect raman
2017-09-03 14:56 ` Eli Zaretskii
2017-09-03 15:52   ` raman
2017-09-03 16:27     ` Eli Zaretskii [this message]
2017-09-03 17:50       ` raman

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

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

  git send-email \
    --in-reply-to=8360czycfx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.