From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MK6YLuqw+mVIegAAe85BDQ:P1 (envelope-from ) for ; Wed, 20 Mar 2024 10:48:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MK6YLuqw+mVIegAAe85BDQ (envelope-from ) for ; Wed, 20 Mar 2024 10:48:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fsfe.org header.s=2021081301 header.b=HlNeqAPR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710928106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=agaSeY8mZZ7hKuXQm0eOyJxlrpTigU73zM9UTyBlkiY=; b=lzvKbJvaUpPXA9UR5ozgvu/jkTQglA60H+7BnDCdvldNMKBZSXh9bBPydRMekT9J2Tx05X KNS0WAGdHWb3ddwUI7kpOEHwu0o20VDB3niWW8P1fU2H95gPXEDjJj0997oySX/+F3qkS1 H1I7L7vruGwE8TG9MQqvZ10Qjj6xEHLfdlU3T+yb8NQRawZf6WdvkoVcCc6gm6hieX5vcc t+WS9QORtWQCuLXseHWTv2rTKEyEnC4vfUf9H/l7+9OzIAAmDRQfoZLuLK1IIa5hjCbqon ECt1plEIERCDOahk8YnCj+65ZtDZ70IN0FraKCA1mt9xKYUSylDSFvCe/OrS1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fsfe.org header.s=2021081301 header.b=HlNeqAPR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710928106; a=rsa-sha256; cv=none; b=mvuRI8TbeTGFs1ZjXXbZBblNntuq2Tv7Tduhcbqvia+gHMLxUMOklCVR/THoIErStc++dd S+UiLRR4P77KfIpLmT9/WRo23Jpmtych7Oyy0zcUAcf4PAwgV7Z30tghXrM/vVTWE9PyQ3 qwTGHOb27eQzuj/Goen0Kt8kUIiH2aY4CXcfw9knHUT9M2F9dlixvdlIglh9Vgd99FZebc fMSG9NiMtwScngcvkTNZEGhZJYQ2xiWXKXVzvumlOQ5L/gW+d1hJJvKcxjlwOY7B36bqMM A7yu3ftpp+nwjPXOyanzB8o3lpcXUNShjX1tfK3Mxa9iaq0RejQV5eMvvLObug== Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2FC661FDBF for ; Wed, 20 Mar 2024 10:48:26 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 05EEF5F82C; Wed, 20 Mar 2024 09:48:24 +0000 (UTC) X-Greylist: delayed 598 seconds by postgrey-1.36 at yantan; Tue, 19 Mar 2024 21:41:03 UTC Received: from mail2.fsfe.org (mail2.fsfe.org [213.95.165.55]) by mail.notmuchmail.org (Postfix) with ESMTPS id 04D355F337 for ; Tue, 19 Mar 2024 21:41:03 +0000 (UTC) From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021081301; t=1710883864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VddpC+hNqcjge0524Nua0PfS2DGVeRhMtRJWKV30Dvc=; b=HlNeqAPRC2KfYlZ31EHteallQTBAA4uZMbfS+b52BbmWOa7n+DggdXoqy3CCY46ylti/fl lvS7LFEfBVLV14q6K0iF+63bQdS9fITtVSYfP9Osl4qwPtHP9JF2glKxEblAFu/GMH6OW8 EgSXPI5lkvsX7WjKj6sFcjQLIS5Ik1A= To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Autoload notmuch-user-agent related functions Date: Tue, 19 Mar 2024 22:31:00 +0100 Message-ID: <20240319213100.15522-1-jlicht@fsfe.org> MIME-Version: 1.0 X-MailFrom: jlicht@fsfe.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: FKPS3PJVWBTT7APSRWJS2LCBZR64JCHC X-Message-ID-Hash: FKPS3PJVWBTT7APSRWJS2LCBZR64JCHC X-Mailman-Approved-At: Wed, 20 Mar 2024 09:48:21 +0000 CC: Jelle Licht X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.12 X-Spam-Score: -2.12 X-Migadu-Queue-Id: 2FC661FDBF X-Migadu-Scanner: mx12.migadu.com X-TUID: LyjyXdPt3KyM From: Jelle Licht With this change, users with mail-user-agent set to 'notmuch-user-agent can start composing emails without having to require 'notmuch-mua first. --- emacs/notmuch-mua.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index e4b7e9d1..7ef77ea5 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -401,6 +401,7 @@ instead of `message-mode' and SWITCH-FUNCTION is mandatory." (addr (and good-tokens (mapconcat #'identity good-tokens ", ")))) (message-replace-header header addr)))))) +;;;#autoload (defun notmuch-mua-mail (&optional to subject other-headers _continue switch-function yank-action send-actions return-action &rest _ignored) @@ -622,20 +623,23 @@ unencrypted. Really send? ")))) (message-send-and-exit arg) (message-send arg))))) +;;;#autoload (defun notmuch-mua-send-and-exit (&optional arg) (interactive "P") (notmuch-mua-send-common arg t)) +;;;#autoload (defun notmuch-mua-send (&optional arg) (interactive "P") (notmuch-mua-send-common arg)) +;;;#autoload (defun notmuch-mua-kill-buffer () (interactive) (message-kill-buffer)) ;;; _ - +;;;#autoload (define-mail-user-agent 'notmuch-user-agent 'notmuch-mua-mail 'notmuch-mua-send-and-exit -- 2.41.0