[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: |
Lars Ingebrigtsen |
Subject: |
Re: master b2e2128: Use lexical-binding in webjump.el and add tests |
Date: |
Mon, 18 May 2020 21:40:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Simen Heggestøyl <address@hidden> writes:
> * lisp/net/webjump.el: Use lexical-binding.
> (webjump-read-url-choice): Remove redundant 'function' around lambda.
This seems like a good thing, but it made me curious as to how many
(function (lambda ...)) things there are in Emacs. Just naive grepping
showed me ~300 of them; I'm guessing there's even more.
Most look like they can definitely be removed:
(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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: master b2e2128: Use lexical-binding in webjump.el and add tests,
Lars Ingebrigtsen <=