From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 0/3] emacs: Add 'guix-build-log-mode' and friends. Date: Sun, 13 Sep 2015 22:39:18 +0300 Message-ID: <1442173161-527-1-git-send-email-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbD8S-0003oM-Tt for guix-devel@gnu.org; Sun, 13 Sep 2015 15:40:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbD8O-0000fU-Pu for guix-devel@gnu.org; Sun, 13 Sep 2015 15:40:24 -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: guix-devel@gnu.org Ludovic Courtès (2015-09-11 00:55 +0300) wrote: > ‘guix build --log-file’ can now return URLs of remote build logs: > > $ ./pre-inst-env guix build --log-file gdb -s mips64el-linux > http://hydra.gnu.org/log/qzcw62lnvijv1qmdn66mjdk06y9ffh4p-gdb-7.10 > > (Works best in Emacs shell-mode where you can C-x C-f on the URL to open > it in a browser.) Or "M-x browse-url-emacs" on the URL and open it in Emacs. > Enjoy! Wow, thanks, I enjoy it! I didn't notice ‘--log-file’ before (shame on me). Now it is really useful! So this pushed me to add major and minor modes for highlighting build logs and to add an alternative way to receive/view them in Emacs (through "M-x guix RET b" popup). (Unluckily, hydra is not very fast and responsive, so receiving big logs may take much time.) Patches: [PATCH 1/3] emacs: Display guix command errors in the minibuffer. [PATCH 2/3] emacs: Add modes for viewing build logs. [PATCH 3/3] emacs: Add "View build log" action to build popup. The first patch is an auxiliary one to print guix warnings/errors in the Emacs minibuffer. For example, when hydra does not have a log, a user will see: guix build: error: no build log for '/gnu/store/g785jl0pgi4gfvbqa0w3mzxhlkji9jz7-emms-4.0.drv' in the minibuffer.