unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: url-retrieve fails on most HTTPS sites
Date: Tue, 29 Sep 2020 05:24:35 +0200	[thread overview]
Message-ID: <871rils1sc.fsf@ebih.ebihd> (raw)
In-Reply-To: jwvzh59wcar.fsf-monnier+emacs@gnu.org

Stefan Monnier wrote:

>>>>> (switch-to-buffer (url-retrieve
>>>>> "https://wikipedia.org/" '(lambda (&rest
>>>>> ignore))))
>>>>
>>>> (BTW, don't quote lambdas! was the rule one
>>>> decade ago...)
>>>
>>> From wrting too much Common Lisp, I'm used to
>>> writing #'(lambda ...), but I'm not qualified to
>>> judge elisp.
>>
>> Comrade S Monnier always said don't quote lambdas.
>> and... I believed him.
>
> ' and #' are two different beasts. If you want to
> wrap your lambdas inside #' be my guest.

As is evident from the level 5 cite above, the lambda
was _quoted_, I don't know how sharp quote entered
the discussion. Oh, I do know that, I just didn't
notice...

OK, with a quote, you make it a list, not a function.

And with a #', you make it a function.

But... isn't it already a function? As in "anonymous
function"?

In the Elisp manual [1] it says:

  The read syntax #' is a short-hand for using
  `function'. The following forms are all equivalent:

            (lambda (x) (* x x))
  (function (lambda (x) (* x x)))
          #'(lambda (x) (* x x))

So why use it?


[1] (info "(elisp) Anonymous Functions")
    http://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




  reply	other threads:[~2020-09-29  3:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28 20:41 url-retrieve fails on most HTTPS sites Nicolas Graner
2020-09-28 23:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-28 23:24   ` 2QdxY4RzWzUUiLuE
2020-09-28 23:41     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29  2:26       ` Stefan Monnier
2020-09-29  3:24         ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2020-09-29  9:31           ` tomas
2020-09-29  9:49             ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29 10:32               ` tomas
2020-09-29 10:50                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29 14:14                   ` Sharp--quote [was: url-retrieve fails on most HTTPS sites] tomas
2020-09-29 14:56                     ` Stefan Monnier
2020-09-29 15:19                       ` tomas
2020-09-29 16:03                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29 16:01                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29 15:18                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-29  3:45         ` url-retrieve fails on most HTTPS sites 황병희
2020-09-29  2:50       ` 2QdxY4RzWzUUiLuE
2020-09-29  5:45         ` Colin Baxter
2020-09-29 11:29           ` 2QdxY4RzWzUUiLuE
2020-09-29 13:57             ` Colin Baxter
2020-09-29 14:53         ` HTTPS fails (was: url-retrieve fails on most HTTPS sites) Nicolas Graner
2020-09-29 15:10           ` Nicolas Graner
2020-09-29 15:16           ` Gregory Heytings via Users list for the GNU Emacs text editor
2020-09-29 14:47 ` url-retrieve fails on most HTTPS sites Noam Postavsky
2020-09-29 15:08   ` Nicolas Graner

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=871rils1sc.fsf@ebih.ebihd \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.
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).