From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2C7lHflA0F5ZbQAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 22:53:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yDLhGflA0F44UQAAB5/wlQ (envelope-from ) for ; Thu, 28 May 2020 22:53:45 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B7F0940363 for ; Thu, 28 May 2020 22:53:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8ADAB6DE10B1; Thu, 28 May 2020 15:53:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org 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 304w2OUcqDLq; Thu, 28 May 2020 15:53:38 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 77B2B6DE0FB1; Thu, 28 May 2020 15:53:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0F1526DE0FB1 for ; Thu, 28 May 2020 15:53:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org 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 mw68WhSzqOnX for ; Thu, 28 May 2020 15:53:32 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id DD4186DE0F96 for ; Thu, 28 May 2020 15:53:32 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.92) (envelope-from ) id 1jeROw-0003OQ-7P; Thu, 28 May 2020 18:53:26 -0400 Received: (nullmailer pid 3556027 invoked by uid 1000); Thu, 28 May 2020 22:53:24 -0000 From: David Bremner To: Alexander Adolf , notmuch@notmuchmail.org Subject: Re: wish: notmuch-emacs: notmuch-poll-and-refresh-this-buffer should use progress-reporter In-Reply-To: <1cc0351466ff5dfe56452f49ce9719f8@condition-alpha.com> References: <1cc0351466ff5dfe56452f49ce9719f8@condition-alpha.com> X-List-To: notmuch Date: Thu, 28 May 2020 19:53:24 -0300 Message-ID: <87v9kf1xjv.fsf@tethera.net> MIME-Version: 1.0 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: , Cc: Pierre Neidhardt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -1.01 X-TUID: 9xmi+mbMeMnO Alexander Adolf writes: > Dear notmuch developers, > > when notmuch-poll-and-refresh-this-buffer is invoked (e.g. by hitting > "G"), the triggered operations may take some time (e.g. due to accessing > multiple IMAP accounts with mbsync). During this time, the Emacs UI is > essentially frozen. > > To give the user a visual clue that something is happening in the > background, and Emacs has not crashed, it would be great if a progress > indicator could be shown. See e.g. the Elisp manual `(info "(elisp) > Progress")', or [1]. I don't use this functionality, but Pierre mentioned making the fetch asynchronous, and provided a patch to try out in id:875zehszdp.fsf@ambrevar.xyz Maybe working on that would be a better use of effort? d