Subject: bug#63311: 30.0.50; [PATCH] smtpmail-send-it split

From: Ruijie Yu <[email-masked]>
Date: Fri, 12 May 2023 15:10:21 +0800

Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]> writes:

> BTW, do you know a more elisp way of defining a function than
> "(let ((f #'(lambda…))))" form?

First of all, I believe you can always get rid of the function quote
because λ is a self-evaluating form.  Not quite sure if
`lexical-binding' makes a difference here though.

Option 1:

```emacs-lisp
(eval-when-compile (require 'cl-macs))
(cl-flet ((f (arg) 'expressions))
  (f arg))
```

Option 2:

```emacs-lisp
(eval-when-compile (require 'cl-macs))
(cl-letf (((symbol-function 'f)
           (lambda (arg) 'expression)))
  (f arg))
```

-- 
Best,

RY