From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63311: 30.0.50; [PATCH] smtpmail-send-it split Date: Fri, 12 May 2023 15:10:21 +0800 Message-ID: References: <87jzxmsyyr.fsf@ledu-giraud.fr> <83ttwqhahy.fsf@gnu.org> <874joq34bk.fsf@ledu-giraud.fr> <83o7mygevr.fsf@gnu.org> <87wn1hzv9j.fsf@ledu-giraud.fr> <871qjoe7cw.fsf@ledu-giraud.fr> <837ctf575q.fsf@gnu.org> <87ilcypot3.fsf@ledu-giraud.fr> <83pm763y3r.fsf@gnu.org> <87h6si5aor.fsf@ledu-giraud.fr> Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10518"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.3; emacs 30.0.50 Cc: Eli Zaretskii , 63311@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 12 09:11:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxMvr-0002W8-8x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 09:11:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxMvf-0001YX-CE; Fri, 12 May 2023 03:11:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxMve-0001YO-Du for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxMve-0003D5-66 for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxMve-0008Ej-1F for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ruijie Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63311-submit@debbugs.gnu.org id=B63311.168387543031616 (code B ref 63311); Fri, 12 May 2023 07:11:02 +0000 Original-Received: (at 63311) by debbugs.gnu.org; 12 May 2023 07:10:30 +0000 Original-Received: from localhost ([127.0.0.1]:53894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxMv7-0008Ds-Oh for submit@debbugs.gnu.org; Fri, 12 May 2023 03:10:29 -0400 Original-Received: from netyu.xyz ([152.44.41.246]:50384 helo=mail.netyu.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxMv6-0008Dl-Qi for 63311@debbugs.gnu.org; Fri, 12 May 2023 03:10:29 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 629ac461 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 12 May 2023 07:10:27 +0000 (UTC) In-reply-to: <87h6si5aor.fsf@ledu-giraud.fr> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261610 Archived-At: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text = editors" writes: > BTW, do you know a more elisp way of defining a function than > "(let ((f #'(lambda=E2=80=A6))))" form? First of all, I believe you can always get rid of the function quote because =CE=BB 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)) ``` --=20 Best, RY