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 496A46DE1337 for ; Sat, 8 Oct 2016 14:01:42 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.136 X-Spam-Level: X-Spam-Status: No, score=-0.136 tagged_above=-999 required=5 tests=[AWL=-0.115, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 u5J39AL9R9dX for ; Sat, 8 Oct 2016 14:01:41 -0700 (PDT) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by arlo.cworth.org (Postfix) with ESMTPS id D19D46DE12C3 for ; Sat, 8 Oct 2016 14:01:37 -0700 (PDT) Received: by mail-wm0-f50.google.com with SMTP id k125so87804990wma.1 for ; Sat, 08 Oct 2016 14:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adirat-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J4o9x0clUJrV/l5NiTQ7D1YJ2ZcG447YXAJmsmo1rxc=; b=Hnp9FX1bFQOqIN/znbeH4B1305IJyAHUh9naYm+Cc5VWXPpTDJfWXu5zVQ7fLTxhPM WAF+yolK7TA5RsfWk9jCKqiUGZp6yHmdP+jtbj0F1p+FhMUxx6vp6rnTbXEuTZ6lEkJD m+JwL8v2X5DOrECec4lyZFcRDJ6GzirG7feGKZi5sosQCAMvfkGCLwWBcdR0N0bw76pm JrgVk+bwGhaA0tIF6syYP/pJwZf1NrlAkqG4Cpr8jR5K3WIC5FPfFHgN3Kh5Lbhx6RbC Wkyav3mxoVMkhj2zSmfwxyaWVHLpOu4pGkmf3Ypz+Z+2df4M2QeBdrBfV7KPEZxFZB4G pNXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J4o9x0clUJrV/l5NiTQ7D1YJ2ZcG447YXAJmsmo1rxc=; b=Kpil7cH4bJdikQITqfQbPQd66mTADSo7paOjQqc8FYK4vmfB3k6Z0zXvKhTbPoQMD2 yEtBU4AbSoA4wrNpbo+56VzgL1OVrtHmNc2Z7lsh0oGBluUfG7hNlxzE46/Ps/B7kVrt Fy5c8rq5nqLz2681OsoAn7PvCOOWlPDwHQXeXJVdYq6ALPVh7qmsci+plXa+k5GW0KdS gOuLk6dq08FcVMFwjsugYAJUYwC/YtkXDfLFQSlGNr2I5YGuaDxtN2sruEgtgnguAUu0 kl7zNl+1SbnivQ7xxxIvLtXBmJRefAuuCSttGwTRhFDUtRY4KcbxMS2Gf1ls141pMR96 ehSg== X-Gm-Message-State: AA6/9RmvtRw+bU7KnJ9tqDbJOnC9+HCJp4p4y4TzfZONueYq3kC5PXJGal0osKjgdgEubg== X-Received: by 10.194.106.197 with SMTP id gw5mr19906032wjb.88.1475960496507; Sat, 08 Oct 2016 14:01:36 -0700 (PDT) Received: from adiPC.lan ([188.24.54.197]) by smtp.gmail.com with ESMTPSA id bl3sm26649351wjc.26.2016.10.08.14.01.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Oct 2016 14:01:35 -0700 (PDT) From: Ioan-Adrian Ratiu To: notmuch@notmuchmail.org Subject: [PATCH v4 5/6] emacs: add no-display arg to generic refresh functions Date: Sun, 9 Oct 2016 00:01:38 +0300 Message-Id: <20161008210139.25322-6-adi@adirat.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161008210139.25322-1-adi@adirat.com> References: <20161008210139.25322-1-adi@adirat.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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, 08 Oct 2016 21:01:42 -0000 As stated in the documentation for notmuch-buffer-refresh-function, each buffer major mode's refresh function takes two args, but notmuch-refresh-this-buffer and notmuch-poll-and-refresh-this-buffer only pass the first arg. Add the second arg because it's very useful for background refreshing. Signed-off-by: Ioan-Adrian Ratiu --- emacs/notmuch-lib.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 2d27e56..e1b5066 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -418,17 +418,17 @@ interactively, the second requests that the refresh call not display the buffer.") (make-variable-buffer-local 'notmuch-buffer-refresh-function) -(defun notmuch-refresh-this-buffer (prefix) +(defun notmuch-refresh-this-buffer (prefix no-display) "Refresh the current buffer." (interactive "P") (when notmuch-buffer-refresh-function - (funcall notmuch-buffer-refresh-function prefix))) + (funcall notmuch-buffer-refresh-function prefix no-display))) -(defun notmuch-poll-and-refresh-this-buffer (prefix) +(defun notmuch-poll-and-refresh-this-buffer (prefix no-display) "Invoke `notmuch-poll' to import mail, then refresh the current buffer." (interactive "P") (notmuch-poll) - (notmuch-refresh-this-buffer prefix)) + (notmuch-refresh-this-buffer prefix no-display)) (defun notmuch-prettify-subject (subject) ;; This function is used by `notmuch-search-process-filter' which -- 2.10.0