From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ZDJCNi04WAyHQEAgWs5BA (envelope-from ) for ; Sun, 04 Jul 2021 15:17:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iOnuA9i04WAyLwAAB5/wlQ (envelope-from ) for ; Sun, 04 Jul 2021 13:17:12 +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 CD01127FC9 for ; Sun, 4 Jul 2021 15:17:11 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 39B9029099; Sun, 4 Jul 2021 09:16:54 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 3F9DF26B99 for ; Sun, 4 Jul 2021 09:16:47 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 392BA5FD21; Sun, 4 Jul 2021 09:16:47 -0400 (EDT) Received: (nullmailer pid 3400884 invoked by uid 1000); Sun, 04 Jul 2021 13:16:43 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH 1/3] emacs: forcibly set notmuch-show-mode after delegating inlining Date: Sun, 4 Jul 2021 10:16:37 -0300 Message-Id: <20210704131639.3400795-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210704131639.3400795-1-david@tethera.net> References: <20210703201131.3184165-2-david@tethera.net> <20210704131639.3400795-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: OARPJVDLNQE5EI7G2HEGUC4GMEND6FD3 X-Message-ID-Hash: OARPJVDLNQE5EI7G2HEGUC4GMEND6FD3 X-MailFrom: bremner@tethera.net 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 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=1625404631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FA9k+wzEFT5EDmzIn8FGwCOb4d4eyEXJqklHdI7iLas=; b=iUOoiZvffSc34rkAiaISScgrXYeqCxjTAwhLPbtT7Dj3RlJPW45C5vb2PpnZY/ToHczMlt e12MIwHYSabnaEbNuAweXDVv2IgIZPjS5foszb+CcpyUxWeo+pCshm7ToOi81qO8Nm5dUd oWnENExoERanuORZqj+zLwc+kY5Opmzlsiu94F5AnhaPU373cDPUL/GCKEz4G8koGqaCN0 pRzd0HybKtZAOkS4ipMt1bwxYkSlXflbZ3I9/N96Y7+mtcLRwRA26euIDBwfcwSLyGRm8h 45+6LvIhZuJ7z5lSOTI+u8RaTI2z4zhTzWn7LpEU85Ise0PeRoROFOl/d6uC5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625404631; a=rsa-sha256; cv=none; b=PTNhsaFA85tz9meQaviwn7edJTgIImmKPSc4bHRWsCf0ckPqpk9O10ocX3wU6b43lUYe2U YsDm1fKTE5UsLdO3h+5NRiBREG6SQAQN2le0JnZ/7R/ypgoKviFze9+ya9IwvP6LA+qd8c xo2ibnoyVev+QYmc1pCDug+tfn4Nf4d/MtFimy1aJjgn/CWnf1YWrZYsZHiMdves/XX+8A K90W2vi4s/5FsvfJma5z1qaBQ2MQTk0yVR7FV2AQfNmPQatJSjmvCbPrgFnrqjoIO/zW8R C/a88hBrOHdwCPTh3Rxc4TJsdh70cgnxxmRDAWijNCGThvbKzLxdfRlhGcP0+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.06 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: CD01127FC9 X-Spam-Score: -1.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: 98tYD7vFStog Some mm-* functions end up calling (gnus-article-mode), which breaks notmuch. --- emacs/notmuch-lib.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index c7bb2091..8ca416d4 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -694,6 +694,8 @@ current buffer, if possible." (when (mm-inlinable-p handle) (set-buffer display-buffer) (mm-display-part handle) + ;; restore major mode if changed by gnus + (notmuch-show-mode) t)))))) ;;; Generic Utilities -- 2.30.2