From: Mark Walters Date: Sat, 14 Dec 2013 23:44:35 +0000 (+0000) Subject: [PATCH 4/5] emacs: tree: make the tree code force the mark read update X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cd3828f6748b8b919bdd6b6b19e2a456875d1cd;p=notmuch-archives.git [PATCH 4/5] emacs: tree: make the tree code force the mark read update --- diff --git a/ea/9d0d58d6cbada99c7437e24c223591a7a3b16f b/ea/9d0d58d6cbada99c7437e24c223591a7a3b16f new file mode 100644 index 000000000..77304715c --- /dev/null +++ b/ea/9d0d58d6cbada99c7437e24c223591a7a3b16f @@ -0,0 +1,88 @@ +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 5F38C431E64 + for ; Sat, 14 Dec 2013 15:45:04 -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=disabled +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 KEo0WUdC4NzS for ; + Sat, 14 Dec 2013 15:45:03 -0800 (PST) +Received: from mail-we0-f180.google.com (mail-we0-f180.google.com + [74.125.82.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 0C985431FD9 + for ; Sat, 14 Dec 2013 15:44:53 -0800 (PST) +Received: by mail-we0-f180.google.com with SMTP id t61so3290060wes.11 + for ; Sat, 14 Dec 2013 15:44:53 -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=PWLfa9Yd/hPG1bzgp+6WHNccLxxat+XXKuXvxdqTj1hR1EzCvtaqoiR3f5nAKqxZes + fNH+NeZKbqPvfo6mbFo8hiNlZUHIMIZxJKjUjo/k0pQS5xXozA91ElBjFL/HAoWVWmK5 + McbNtM3TUfG03BZMBuGm9nZHr9E4P6HwaM/CjTCoZRm2HDVzfarxYuLBWAXOlwDFIT8c + 0hsoJJ29EAhg7VvI6AyfmkyrqWBmzqlNhndb0jv694vU/qddEejx+TY5QNYmvfbIYR1H + zBuI4b1TwjwIeQK/8BhvUUJxETwcNrNBImAf0LscBskEMoajw+93yUlKA3D/RvYVdAn6 + 2bzw== +X-Received: by 10.194.82.68 with SMTP id g4mr317035wjy.85.1387064692983; + Sat, 14 Dec 2013 15:44:52 -0800 (PST) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id hb7sm11100541wib.6.2013.12.14.15.44.51 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sat, 14 Dec 2013 15:44:52 -0800 (PST) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 4/5] emacs: tree: make the tree code force the mark read + update +Date: Sat, 14 Dec 2013 23:44:35 +0000 +Message-Id: <1387064676-15508-5-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1387064676-15508-1-git-send-email-markwalters1009@gmail.com> +References: <1387064676-15508-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:45:05 -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 +