emacs-devel
[Top][All Lists]
Advanced

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

Re: master b2e2128: Use lexical-binding in webjump.el and add tests


From: Stefan Monnier
Subject: Re: master b2e2128: Use lexical-binding in webjump.el and add tests
Date: Mon, 18 May 2020 17:18:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>         (setq split-by-major-mode
>               (sort split-by-major-mode
>                     (function (lambda (elt1 elt2)
>                                 (> (length elt1) (length elt2))))))
>
> But there's a lot of these things:
>
> (put 'pascal 'math-radix-formatter
>      (function (lambda (r s)
>                (if (= r 16) (format "$%s" s)
>                  (format "%d#%s" r s)))))
>
> Does the `function' here have any meaning, or is it superfluous?

It has the same meaning in both cases: in both cases (function (lambda ...))
is an argument to a function (`sort` in the first case and `put` in the
second).


        Stefan




reply via email to

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