From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Async package.el Date: Thu, 09 Apr 2015 04:49:19 +0300 Message-ID: <5525DA9F.2000301@yandex.ru> References: <55228FD2.3080501@yandex.ru> <552330A2.1090406@yandex.ru> <55248915.5070707@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1428544182 3309 80.91.229.3 (9 Apr 2015 01:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 01:49:42 +0000 (UTC) Cc: bruce.connor.am@gmail.com, emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 09 03:49:41 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yg1bB-0005UE-1X for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2015 03:49:41 +0200 Original-Received: from localhost ([::1]:55857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg1bA-0002bj-Ji for ged-emacs-devel@m.gmane.org; Wed, 08 Apr 2015 21:49:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg1ax-0002bc-9Y for emacs-devel@gnu.org; Wed, 08 Apr 2015 21:49:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg1at-00073j-3R for emacs-devel@gnu.org; Wed, 08 Apr 2015 21:49:27 -0400 Original-Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:37304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg1as-00073Z-Rv for emacs-devel@gnu.org; Wed, 08 Apr 2015 21:49:23 -0400 Original-Received: by wiaa2 with SMTP id a2so80113870wia.0 for ; Wed, 08 Apr 2015 18:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=HstQmWlstPATzbfw3dTWzNBsh7VzOfXXV1Pg8JH5WIQ=; b=zB/B9MXWV62aHKzCWSEAbd4k2oMU9qaQs2keZT3qMA29jFoxQrA58DqXnDUxz8Cm5n H/2qPesm91/v1/WNwSzj0rrv1XFI/EqxR/ehpmMNSBApwFCRuSmzESIjsWJWFxvet/ht e7mp5xhhwk8hHvpTOeaHfQ8ZVAVTda/gGDdKbzlBZ3ZYS0mH0gx95ZMQSWHLcXOGGyLy RLVbSalzQhIYxskyq73v0IQRPdnnxEVt/nsB2t+zMqmPQi67KVIoCIg/AagWBUaaKWtr DDhK0UOJn56YwxgSf2dRqarS5K/gy553dlARmJOcedUxJJMGniut1uOXJxJvzdFV7ZCS Hukg== X-Received: by 10.194.134.234 with SMTP id pn10mr56632524wjb.84.1428544162163; Wed, 08 Apr 2015 18:49:22 -0700 (PDT) Original-Received: from [192.168.1.3] ([82.102.93.54]) by mx.google.com with ESMTPSA id fy2sm17986187wic.15.2015.04.08.18.49.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 18:49:21 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185182 Archived-At: On 04/08/2015 04:32 PM, Stefan Monnier wrote: > This needs to be fixed. In PCL-CVS and in VC-Dir, when the async > operation ends, we merge the result with the current buffer's content. I think packages are a bit more complex than entries in PCL-CVS and VC-Dir, and the effort spend on it might have gone to something else. But of course, people only work on what's interesting to them anyway. > So the user can mark/unmark elements which the async operation is in > process and these things aren't lost afterwards (and neither is the > position of point). We also have `describe-package' buffers, some of which might be open and get out of date after one such update (which is probably not that big a deal). Further, we have keyword filtering. So the update would have to keep that on too. Any similar feature would also require a change here. >> And when vc-dir buffer is initially displayed, we don't have any "stale" >> data about the repository. > > In PCL-CVS we did. Ok, true. > I'm perfectly OK with changing the "auto-update" so that it's not done > at every call to list-packages (e.g. once a day is perfectly fine, > indeed. I'd even agree with "never" and just let the user request an > update manually). What I object to, is to do it even before list-packages > is invoked. We could only start those idle updates after list-packages had been invoked at least once.