From 3621314ac2d0c9f06c0681350dcdf7f260fd3c38 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Tue, 16 Mar 2021 20:54:56 +0100 Subject: [PATCH] =?UTF-8?q?mu4e/icalendar:=20fix=20free=20variable=20?= =?UTF-8?q?=E2=80=98original-msg=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mu4e/mu4e-icalendar.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mu4e/mu4e-icalendar.el b/mu4e/mu4e-icalendar.el index 93da0faa..8813df61 100644 --- a/mu4e/mu4e-icalendar.el +++ b/mu4e/mu4e-icalendar.el @@ -172,13 +172,10 @@ response in icalendar format." ;; also trash the message (thus must be appended to hooks). (add-hook 'message-sent-hook - #'mu4e~icalendar-setup-sent-hook-fn + (defun mu4e~icalendar-trash-hook() + (setq mu4e-sent-func (mu4e~icalendar-trash-message original-msg))) t t)))) -(defun mu4e~icalendar-setup-sent-hook-fn () - (setq mu4e-sent-func - (mu4e~icalendar-trash-message original-msg))) - (defun mu4e~icalendar-insert-diary (event reply-status filename) "Insert a diary entry for the EVENT in file named FILENAME. REPLY-STATUS is the status of the reply. The possible values are