[Top][All Lists]

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

`goto-char' in callback to `url-retrieve'

From: Deniz Dogan
Subject: `goto-char' in callback to `url-retrieve'
Date: Wed, 29 Feb 2012 13:55:16 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

I'm using the following code to play around with `url-retrieve':

(defun rss-get-feed-callback (status url)
  (switch-to-buffer (current-buffer))
  (goto-char 0))

(defun rss-get-feed (url)
  (url-retrieve url 'rss-get-feed-callback (list url) t t))

(defun rss-test ()
  (rss-get-feed "http://blogg.aftonbladet.se/feeds/entries/bankoniva/rss";))

When I hit M-x rss-test RET, I expect point to be at the first character of the result buffer, but it is nevertheless at the end.

Is this a bug? I'm using: GNU Emacs (i386-mingw-nt6.1.7601) of 2012-02-16 on MARVIN


reply via email to

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