Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 63BE9431FD7 for ; Sat, 14 Dec 2013 15:53:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id an4HYDl3O31O for ; Sat, 14 Dec 2013 15:53:40 -0800 (PST) Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D46F4431FDA for ; Sat, 14 Dec 2013 15:53:36 -0800 (PST) Received: by mail-we0-f175.google.com with SMTP id t60so3239115wes.6 for ; Sat, 14 Dec 2013 15:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EECcfA6ycodjzIP1/WuBGdV7BtEFcWBTMCppe68lWyU=; b=gVLs9f6sRsDdVhQhl9GOxYSGy+2e9c+vT/Z9f5iScwdNWS3NRdxA8sQUAqIHuk9tDz cBxVkptyL63S987z1H+ln6XFT42Q2YhAG0TioHUXFCK/40L8SQiQJOGNouS5xreIQKDb FQKdo6tETqM/a2H0c01tyJq8Cstg1wjo+yzJIAgj/VBLfLIh0jLijKVpW6L7pIVLxHst i3DAyCAneXgNffdAeNJzt46vhcAMMpR7lAxN8C3qWZKbwGviL1fNJVuAxXTsS8c0DfNU l26oWkrESBkQc7gnmE/rKy90ObInYdkgsYz/dO4Adr5cDXcET83U2jWU3QE17XXFQE8R xekQ== X-Received: by 10.180.188.141 with SMTP id ga13mr5574419wic.55.1387065215766; Sat, 14 Dec 2013 15:53:35 -0800 (PST) Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) by mx.google.com with ESMTPSA id cx3sm28171967wib.0.2013.12.14.15.53.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 14 Dec 2013 15:53:35 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v2 2/5] emacs: tree: make the tree code force the mark read update Date: Sat, 14 Dec 2013 23:53:14 +0000 Message-Id: <1387065197-15776-3-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com> References: <1387065197-15776-1-git-send-email-markwalters1009@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sat, 14 Dec 2013 23:53:40 -0000 Previously the tree code relied on the show buffer to do the unread/read update. Once this is done via the post-command-hook this won't be automatic so explicitly force the update. --- emacs/notmuch-tree.el | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 8d59e65..6ec9561 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -438,6 +438,9 @@ Does NOT change the database." (setq notmuch-tree-message-window window) (add-hook 'kill-buffer-hook 'notmuch-tree-message-window-kill-hook))) (when notmuch-show-mark-read-tags + (when (window-live-p notmuch-tree-message-window) + (with-selected-window notmuch-tree-message-window + (notmuch-show-mark-read))) (notmuch-tree-tag-update-display notmuch-show-mark-read-tags)) (setq notmuch-tree-message-buffer buffer)))) -- 1.7.9.1