From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id s6cHNPFa0mBJCQAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 23:49:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IM8JL/Fa0mDdUgAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 21:49:37 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 42C2326D81 for ; Tue, 22 Jun 2021 23:49:37 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B52BB29077; Tue, 22 Jun 2021 17:49:30 -0400 (EDT) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9E1DF27D92 for ; Tue, 22 Jun 2021 17:49:27 -0400 (EDT) Received: by mail-qt1-x834.google.com with SMTP id d9so598329qtx.8 for ; Tue, 22 Jun 2021 14:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oribarbut-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/7GtweA6SqSnP3g8cucq/mjgnuZ6q66xw61UIEai6+c=; b=ca+qeLHKlt8YMD7GHLBBtFAehK4zhpu5ltF+gyDwjVAuF/X7l5zc2f0UJt6EKSXVtO KrpITA6Xtpg53X88aaAMLZPs+Rtv+W1g/4J5eu2gGtjONRm2qmqo9KIMLxirCGHsA61l ex94eQ5JqlxeF5sJ6wXPWGOQch8ysAE3XugG+y0XrRQCu6buHNmjjuaXGwcHpiMUBj7f lmTfTtK3FAaJwsy2RB7Vw/StJItZv80qhXOUkh/dCY4ruc5hGvT5C3Mo7gFnEx7U/zmg yifZ7IjW5SZQnVfE2LWjZa2tF/tOL5EIUI1dJ0yOA9hAjkUVaiEIv2LM9wo2IvpiLKNd cG6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/7GtweA6SqSnP3g8cucq/mjgnuZ6q66xw61UIEai6+c=; b=ZJTulzwpyjC4xeucGr+XLyOFtfSuDrjykLlSCI9nPvxacL/cIq93+sT9M1/nE0VvnQ O2z38AJyqkNLUetPS3kl4UjO52qf5Q5a1rfI3oTFXyJBq22GHQ6RLI7okfVvG1gJCkPE eSU8fW4pd7kH0wtyGENArs6DhZeO36/a8+QYS9ltiiX0F7rgvzBMfw7ArTZ17IkYcz21 vRMatSiqplyZezlfCFZDOzoTYkWvLV6Pv10rMtPM++dXUiu0jPw1krSF1pPkV5jDbobO 7ld4s/Q8x1zFG1cpy0cl5eX+vDdu8awpp/7beD6XZUGKpVEKaCDvajDZ12BnSZjcveZR iB2Q== X-Gm-Message-State: AOAM533HQuHXzBFo26UNd/hqwObACzmqAjNtLa8r/rYC9Tys1qGU4kGG N1R74AAo6YnRzzngrGZLv2FBQvJCW80ijg== X-Google-Smtp-Source: ABdhPJyBz1d+U8JVYF6RoPSrgLaXx9FgM4S91GEkTcyeaQ7uR9VYb4frUsD4QJj6vXaIAZ1x8UMhvQ== X-Received: by 2002:ac8:5a0e:: with SMTP id n14mr839851qta.302.1624398566753; Tue, 22 Jun 2021 14:49:26 -0700 (PDT) Received: from oribarbut.com (96-127-247-73.qc.dsl.ebox.net. [96.127.247.73]) by smtp.gmail.com with ESMTPSA id w28sm2666066qtt.88.2021.06.22.14.49.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 14:49:26 -0700 (PDT) Received: by oribarbut.com (Postfix, from userid 1000) id BE166220194; Tue, 22 Jun 2021 17:49:25 -0400 (EDT) From: Ori To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Add compatibility for org-msg.el Date: Tue, 22 Jun 2021 17:48:50 -0400 Message-Id: <20210622214850.20003-1-ori@oribarbut.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Message-ID-Hash: JG3D5HZEWE636RAPWDCSO6OEWB2ZU2OE X-Message-ID-Hash: JG3D5HZEWE636RAPWDCSO6OEWB2ZU2OE X-MailFrom: ori@oribarbut.com 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 CC: Ori 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=1624398577; 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=D/Ol6HmC5R2w3lJHGK7bdNp87E+t/0/z0RuIaElxu88=; b=Gzjr+L0xuObllcQ9mSs1XslX95H6QZhRKWFsNq64XvEZWiNT3WZB9ioa/RkTa7Xogi2+yk XsNFg9HtM9u4DcawvjHnCQjaYPljmKZ+AVsTPBStnOSS3WZcbC4VTqEwY/NeJ/UA8CX2cV ypl7ibxVgGmweTfEKb1NUsyZ3hnsXYl1HABS951C9t5+D0ecSloliQr2H/QBZqamPkfF1g NExYlf3K88YqZku5/5cNp4sKutmHlcTVkpjqEt6L/2DhUKCFyj3/JCumjf4ZuU4FV+QLPX JMhVK44NuDdw09sebvwPmwdC1i6XG9AZlOeZJBw6zPhQMfqw78hxOAmEjXFc5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624398577; a=rsa-sha256; cv=none; b=WBEkmcZfRbd6pEumNPsC2IzFI+SJO6ZovMJRxd+fwFx9l6WHh2CabQk2RON7UwOLgLIJQY 9/QFg58RcwNb0p6lCFN/JQ2C9WuyktG75tVp6ebFXlt45qldh1HLmHpG3hIWRNoAt4zz3W BxGx8RfJu42wYglA2VziX6aybnlCfdOnC7l6BCg+mGZ42ujDivw53gKR9RW76qKFScCI5s imVqQORltslzHUR0bQBSVmVQ5K/8rthtgSwZZFIJfADbtFDEC69IQK8CXVklWxMjKiUfZ9 Ok2NfznZbQ6dCecioBDqDfDTnPy8WA0AfVQYy5yAXg3tjEj2i3xgz51uck7UMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=oribarbut-com.20150623.gappssmtp.com header.s=20150623 header.b=ca+qeLHK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=oribarbut-com.20150623.gappssmtp.com header.s=20150623 header.b=ca+qeLHK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 42C2326D81 X-Spam-Score: -0.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: kiaLzdLXtqB4 See https://github.com/jeremy-compostella/org-msg/issues/53 --- NEWS | 2 ++ emacs/notmuch-company.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 09456f60..c167c9a2 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ Emacs previous behaviour of using notmuch to send mail by default, customize `mail-user-agent` to `notmuch-user-agent`. +`notmuch-company` now works in `org-msg`. + Vim --- diff --git a/emacs/notmuch-company.el b/emacs/notmuch-company.el index c6a004ae..7e05dc8f 100644 --- a/emacs/notmuch-company.el +++ b/emacs/notmuch-company.el @@ -70,7 +70,8 @@ (completion-ignore-case t)) (cl-case command (interactive (company-begin-backend 'notmuch-company)) - (prefix (and (derived-mode-p 'message-mode) + (prefix (and (or (derived-mode-p 'message-mode) + (derived-mode-p 'org-msg-edit-mode)) (looking-back (concat notmuch-address-completion-headers-regexp ".*") (line-beginning-position)) -- 2.25.1