From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yJLEMMRus2BSIgEAgWs5BA (envelope-from ) for ; Sun, 30 May 2021 12:53:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kOjxK8Rus2DJUQAA1q6Kng (envelope-from ) for ; Sun, 30 May 2021 10:53:56 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 1AE062D200 for ; Sun, 30 May 2021 12:53:56 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DFA64271E8; Sun, 30 May 2021 06:53:46 -0400 (EDT) X-Greylist: delayed 485 seconds by postgrey-1.36 at nmbug; Sun, 30 May 2021 06:36:25 EDT Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mail.notmuchmail.org (Postfix) with ESMTPS id D0BA120017 for ; Sun, 30 May 2021 06:36:25 -0400 (EDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1C5B6C89; Sun, 30 May 2021 06:28:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 30 May 2021 06:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edef.eu; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=Ka3u8E+qHtBGMW0h6hDv1AVJUj jG681cFO+0uKBUBmg=; b=MHDT4hZO74PPC0cWK4gEVbcOOndEx6bw3ladnEha+m IX1uybeQWnEwbN1/pm72ifKFhE3t9VOE6/S8ZGl2zIOPTghFUXdMsWQCnNB4xk0U gfJpaYRP6RR/cD7QdLQ+hheI69MRdqS9NtRiFbGqG2cEXFiH0gD1LOiMgf7NrZl6 XO0nArsleo0o8BCtXdOJnVUqvYF3him36zjYQ9n0lnFkBxbmSEY+R5AzjjlpUwAd uTt6SeyhLC0N/Q2N/gIUCaqhrOfA+1V/ArhBCYB7YjoH+a4dMp+e+RwJX1KHj9XC wWF0HMjoqtHkSOrpe4uBfy2+S3UA03nV9s17Gy5EKuQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Ka3u8E+qHtBGMW0h6 hDv1AVJUjjG681cFO+0uKBUBmg=; b=e80alJJlRjwelKQ0Y6Qoeu3jQ94hrlm9D BUEsSs80rGPOzSE8f/Jr9jhWvjNF6gnEDXuIQgb7CsflYMqeeY2fjOUCfC0Suzoe /tSd4g6psmfeVA7H+gA6Bu2ac7wYQvh9wiAfiK/mhdPQ6aAIq7WQA0F0p4DnRhvf PVN2HG37FGxdI4WCQlAb7oJM33OBrtiNLSgfEseaxZgQ+iVunu69qJPUW3BJd71m TeDzZrKkA7tEumvQwDOsllvW0Ope7OI+kyPIRRxd3KBuRSj9Zy9HRlc0iS1IepeL 75yNJHLRtaFWI8WAAdktHzPZV9GUMgPE/ldI3CyzHo28QEO00K3xA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeluddgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepvgguvghfuceovgguvghfsegvuggvfhdrvghuqeenucggtffrrght thgvrhhnpeffteetheefleejveelffefheeiuddtgffhfeejlefhvefhueejuddvgeejfe ehudenucfkphepudelhedrvddtuddrvddtiedrudejfeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuggvfhesvgguvghfrdgvuh X-ME-Proxy: Received: from localhost (uhura.edef.eu [195.201.206.173]) by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 May 2021 06:28:17 -0400 (EDT) From: edef To: notmuch@notmuchmail.org Subject: [PATCH] emacs: rebind the "Send Message" toolbar/menu items Date: Sun, 30 May 2021 10:28:10 +0000 Message-Id: <20210530102810.7286-1-edef@edef.eu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Message-ID-Hash: ASHFYGRN7NWV7Y5WC3RONGKVFAG3L6RO X-Message-ID-Hash: ASHFYGRN7NWV7Y5WC3RONGKVFAG3L6RO X-MailFrom: edef@edef.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: edef X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622372036; 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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BUlANGUvkQWfBAUnsxbF5I4XOJMK2sr4LZMCSrQFP64=; b=YjBL+5Obpq4Ruho1VCJQEKj44z78r16cEoaE0qzSWcVaYGiUvRuwTLsNmQFyyJ6WHXxmKC mKmkK/1QGg7ZFANImHfnis8NKv90DVe9e9is6DmAqMkfbjWr/wawyjHN6DuATqjpWkGcE5 RsgKY4nuIp38sFs0R27dekxDbDSzciohg0R4VL0ji3+75CfU7EXyFHS2+6GmQvz/jtiRSu N2MjTZ/OCM0KTpm6lEz+8oV8OrUiKKFU4wj9qMEE30hqB9rpqUnXkvW5zWUBv3BaR8TWtm SOWcH15AHhUQL1tame+29SkXuktsRVSBwPIYU6A8YWIge78bnl/vUyfve+BZpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622372036; a=rsa-sha256; cv=none; b=mJvORtZ5S0lihcRmmnLqqnMNsKUMRw/QcvPTZrEaXgcpFcl5cQvqr6VId7XZ9ioZ9cEvgs TuqJ38WcTeEf4NKlJXeG9SfuEd3wx57anaX9AHl2rUv3v7nj9vCx2nSw/PHJNiyjaJtidS YmLQMBADlerK3DVmxM/8NrQUciban3fE+0civMy0p1EarxvScxTgY+BJPy4OwgLMWjtjZn IlwJW1ckI6168ew4oE4hI8HgKUea2QZb+6/HdwaUDob2s0/8WMHIU65jSoMCyrki7EnCHW uq5xGatp2li577ueXxapYjlx/1K8wxPzCm/8m+o92Gk7rw0skaw1/ONrnM0EYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=edef.eu header.s=fm3 header.b=MHDT4hZO; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=e80alJJl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=edef.eu header.s=fm3 header.b=MHDT4hZO; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=e80alJJl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1AE062D200 X-Spam-Score: -0.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: JB5j7MGIdjJQ All three of C-c C-c, , and are bound to message-send-and-exit by message.el, but notmuch-mua.el only overrides the first. This mostly manifests as confusing Fcc behaviour for GUI users. --- emacs/notmuch-mua.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index bbf059a2..86a15f53 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -341,6 +341,8 @@ Typically this is added to `notmuch-mua-send-hook'." (defvar notmuch-message-mode-map (let ((map (make-sparse-keymap))) + (define-key map (kbd " ") #'notmuch-mua-send-and-exit) + (define-key map (kbd " ") #'notmuch-mua-send-and-exit) (define-key map (kbd "C-c C-c") #'notmuch-mua-send-and-exit) (define-key map (kbd "C-c C-s") #'notmuch-mua-send) (define-key map (kbd "C-c C-p") #'notmuch-draft-postpone) -- 2.31.1