From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 4/4] emacs: Add "Build Log" button to Package Info. Date: Wed, 01 Jun 2016 00:09:04 +0300 Message-ID: <87fusy3pfz.fsf@gmail.com> References: <1464446174-1868-1-git-send-email-alezost@gmail.com> <1464446174-1868-4-git-send-email-alezost@gmail.com> <878tyrdz3u.fsf@gnu.org> 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]:56389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7quU-0000uc-HM for guix-devel@gnu.org; Tue, 31 May 2016 17:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7quP-0004Dt-7e for guix-devel@gnu.org; Tue, 31 May 2016 17:09:09 -0400 In-Reply-To: <878tyrdz3u.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 30 May 2016 23:17:57 +0200") 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" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2016-05-31 00:17 +0300) wrote: > Alex Kost skribis: > >> * emacs/guix-main.scm (package-build-log-file): New procedure. >> * emacs/guix-ui-package.el (guix-package-build-log-file) >> (guix-package-find-build-log) >> (guix-package-info-insert-build-log-button): New procedures. >> (guix-package-info-button-functions): Add >> 'guix-package-info-insert-build-log-button'. > > OK! Thanks, I've pushed this patchset. > I think having this extra info and extra buttons is nice. I wonder > though if in the future we should have a way to hide non-essential info > and buttons, so that someone who just wants to search and install/remove > software isn=E2=80=99t overwhelmed. > > What are your thoughts? I agree that there may be too much buttons for a new user, but I wouldn't like to hide features by default. For users, there is 'guix-package-info-format' variable. It is a bit complicated but it allows to control any aspect of *Guix Package Info* buffer. For example, one could hide all non-essential info like this: (setq guix-package-info-format '(guix-package-info-insert-heading (outputs ignore guix-package-info-insert-outputs))) --=20 Alex