From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Async package.el Date: Thu, 09 Apr 2015 14:18:53 -0400 Message-ID: References: <55228FD2.3080501@yandex.ru> <552330A2.1090406@yandex.ru> <55248915.5070707@yandex.ru> <5525DA9F.2000301@yandex.ru> <87oamx8kgw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428603565 11706 80.91.229.3 (9 Apr 2015 18:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 18:19:25 +0000 (UTC) Cc: emacs-devel , bruce.connor.am@gmail.com, Dmitry Gutov To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 09 20:19:16 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 1YgH2q-0002s0-G3 for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2015 20:19:16 +0200 Original-Received: from localhost ([::1]:35989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgH2p-0005bl-Tm for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2015 14:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgH2b-0005Zg-JD for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:19:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgH2W-0005DF-9Q for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:19:01 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:49073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgH2W-0005Ca-4F for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:18:56 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t39IIrDr009043; Thu, 9 Apr 2015 14:18:53 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 27B732D4A; Thu, 9 Apr 2015 14:18:53 -0400 (EDT) In-Reply-To: <87oamx8kgw.fsf@gmail.com> (raman's message of "Thu, 09 Apr 2015 07:06:23 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5271=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5271> : inlines <2672> : streams <1419706> : uri <1902706> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:185227 Archived-At: > Also, attempting to make package async shows up a problem that is lying > in wait as Emacs gets multithreading capabilities -- most elisp packages > are written assuming a sync/blocking world -- especially with respect to > user-feedback. So even as package downloads and installs things > asynchronously, the underlying elisp modules that download, unpack and > compile output messages continuously in the echo area AFAIK those messages are under the control of package.el, so we can/should simply fix those. E.g. compilation shouldn't emit any messages, since warnings and such should go to a buffer instead. Basically when installing a (set of) packages, there should only be 3 messages, only the last 2 being "asynchronous": downloading... installing... installing...done -- Stefan