From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] emacs: Support auto-updating after performing REPL operation. Date: Tue, 14 Oct 2014 21:17:12 +0200 Message-ID: <87fveq4g1z.fsf@gnu.org> References: <87wq825yuz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7as-0004KQ-G5 for guix-devel@gnu.org; Tue, 14 Oct 2014 15:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe7aj-0003B1-Dg for guix-devel@gnu.org; Tue, 14 Oct 2014 15:17:14 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:59379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7aj-0003Av-6h for guix-devel@gnu.org; Tue, 14 Oct 2014 15:17:05 -0400 In-Reply-To: <87wq825yuz.fsf@gmail.com> (Alex Kost's message of "Tue, 14 Oct 2014 21:45:40 +0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Currently when a user performs some REPL operation using Emacs UI =E2=80= =93 > e.g. installs a package from *Guix Package Info* buffer, information in > that buffer stays the same, and he needs to press "g" there to revert > the buffer. By =E2=80=9Cinformation in the buffer=E2=80=9D, what do you have in mind? = There=E2=80=99s highlighting of installed packages, and marks. Am I missing something? Pressing =E2=80=98g=E2=80=99 removes marks and updates highlighting. > The attached patches will add that missing feature: after finishing a > REPL operation, a buffer from which this operation was performed will be > automatically updated. What if the operation fails? For instance, you carefully select a bunch of packages to install, and then the operation fails because of some transient networking error, say. In such a case, the *Guix Package Info* buffer should *not* be updated IMO, because that would mean losing all the marks for no reason. WDYT? Not commenting on the elisp code, you=E2=80=99re the master. :-) Thanks, Ludo=E2=80=99.