From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DDB966DE103C for ; Thu, 27 Feb 2020 09:17:15 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A9P005+s"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.039 X-Spam-Level: X-Spam-Status: No, score=0.039 tagged_above=-999 required=5 tests=[AWL=-0.010, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fDhDCBNymW6S for ; Thu, 27 Feb 2020 09:17:15 -0800 (PST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by arlo.cworth.org (Postfix) with ESMTPS id 1039D6DE104A for ; Thu, 27 Feb 2020 09:17:08 -0800 (PST) Received: by mail-wr1-f51.google.com with SMTP id v4so4384562wrs.8 for ; Thu, 27 Feb 2020 09:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=du6KBYRh9KANLdCGryhhf/aykWtItdeeIuEqcROMp5M=; b=A9P005+swhb0R4MZp15okjVKWdNpA8a+lb9OYo/3axaC2KdASrzE8S3Q0M49wm8wAq IiQLbRDpIfhVqpxSOHfbFl/qwJMawtHZ9aw5Ak8SbBIVGxHB9YdqXp374/10xSbErvEY B8ysXdBWmQZiCT8OUFw5z0UhiSfS9rLoCdcCjQUm7S3Dgfd8S9lt3ShyN2cYPEHs58zD srZrRwm2z+R6+KWjH3bDmYLfPGiu2yQ7gbL0xqFOBp7fISgQiJMc805dmpscGt7gTjqG S2SHVpP7nLWo0iQix6OANv/+5gKYiiSopnCcQULA81uUvQPCR8z5b7hD6RQyttes2lTN CoWg== 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:in-reply-to :references; bh=du6KBYRh9KANLdCGryhhf/aykWtItdeeIuEqcROMp5M=; b=d8JB8i5dv0IZbpQJx7lQ9aSgXJyynPm8Jic20fyoh8XU249CbzH6ghb9W+cVAVYG+m kI/bWY4WD6o0K2lCOCAZcjp3VQ47xdnCKI3kJZbJsGfvBvccmo8uyPI29rnWDHEM8YuE 6mzlgnX919PSjnnDMHFXNZ7yFvhFA+vFdJxLCH7zG1nKMxjx036mIIOkCONCwqExckBS 3UbBLBMgTlJkqIxWXj3iQ6P+kK8cJoxTvvjzoyi3egb4eY1HlJGa+6Br/MMsgJq+Gb2+ hBTSC8F8iERJ/zPO1bYFhsb4wdDWHptMb0iLEqvGz+etEu1dy71Ao1KjK7yRuKZoz44Y R3rA== X-Gm-Message-State: APjAAAWKNsqZqRP6VZ6DhOlE1sKfBob/HAEvMzLWZu3FiOKE1fDkSPcO 9V9AHKgUmK+yUzAArjYhLM8QCrjj X-Google-Smtp-Source: APXvYqy4rzA4+v5HgN911+JozYd2oS1S9v3Sz3ApBxY7aemJdb9v9HOQusj6L2yTo7241puXPkpyDw== X-Received: by 2002:adf:f44a:: with SMTP id f10mr6091832wrp.16.1582823825429; Thu, 27 Feb 2020 09:17:05 -0800 (PST) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id y185sm8932410wmg.2.2020.02.27.09.17.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Feb 2020 09:17:04 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 4/6] Unthreaded mode: allow user to choose different `show out' than tree Date: Thu, 27 Feb 2020 17:16:50 +0000 Message-Id: <20200227171652.18187-5-markwalters1009@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200227171652.18187-1-markwalters1009@gmail.com> References: <20200227171652.18187-1-markwalters1009@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2020 17:17:16 -0000 Tree mode allows the user to choose whether to use the split screen displaying just the current message or a full screen displaying the entire thread. As unthreaded mode is quite different in use the user may want a different customisation for this mode. --- emacs/notmuch-tree.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 760eaaec..895c05f4 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -56,6 +56,16 @@ :type 'boolean :group 'notmuch-tree) +(defcustom notmuch-unthreaded-show-out t + "View selected messages in new window rather than split-pane." + :type 'boolean + :group 'notmuch-tree) + +(defun notmuch-tree-show-out () + (if notmuch-tree-unthreaded + notmuch-unthreaded-show-out + notmuch-tree-show-out)) + (defcustom notmuch-tree-result-format `(("date" . "%12s ") ("authors" . "%-20s") @@ -531,8 +541,8 @@ NOT change the database." Shows in split pane or whole window according to value of `notmuch-tree-show-out'. A prefix argument reverses the choice." (interactive "P") - (if (or (and notmuch-tree-show-out (not arg)) - (and (not notmuch-tree-show-out) arg)) + (if (or (and (notmuch-tree-show-out) (not arg)) + (and (not (notmuch-tree-show-out)) arg)) (notmuch-tree-show-message-out) (notmuch-tree-show-message-in))) -- 2.11.0