From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: A (probably silly) problem with request.el Date: Fri, 05 Jun 2015 17:40:28 +0200 Message-ID: <5571C2EC.90903@members.fsf.org> References: <87bngv89g5.fsf@mbork.pl> <87h9qmsbyn.fsf@members.fsf.org> <87fv668d9f.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433519661 11005 80.91.229.3 (5 Jun 2015 15:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 15:54:21 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 17:54:15 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0twh-0005J3-Kc for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 17:54:11 +0200 Original-Received: from localhost ([::1]:48341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0twh-0007sl-5k for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 11:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tjY-0001WK-Uz for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 11:40:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0tjT-000717-1S for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 11:40:36 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:56088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tjS-0006yU-T2 for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 11:40:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0AAO/BcVWkD4Xx/2dsb2JhbAANToNkXr9XBWyFewKBfgEBAQEBAYUuAQEEMgFGEAsOCgklDwJGBg0BBQIBAYg2tnulAAEBAQEBBQEBAQEBARyLQ4UGB4QtAQSQX4Z/iFWGCY9fgi0cgVRtgkcBAQE Original-Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 05 Jun 2015 17:40:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <87fv668d9f.fsf@mbork.pl> X-TagToolbar-Keys: D20150605174028896 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-Mailman-Approved-At: Fri, 05 Jun 2015 11:41:20 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104771 Archived-At: Le 05/06/2015 16:02, Marcin Borkowski a écrit : > On 2015-06-05, at 12:09, Nicolas Richard wrote: >> Marcin Borkowski writes: >>> (require 'request) >>> (request "http://google.com") >> >> Google provides examples of use: >> http://tkf.github.io/emacs-request/ > > I tried them, with similar results. What do you expect ? The (request ...) form will always (I guess, I did not check the code) return a structure like the one you pasted. The real job must be done by a callback function. (Probably in the synchronous case it's different, I don't know, but as the docstring says: don't use that except for testing purposes.) Nicolas.