GNU bug report logs - #51132
Make sure user is doubly aware of finished complilations

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 11 Oct 2021 06:58:02 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 51132 <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 51132 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#51132: Make sure user is doubly aware of finished
 complilations
Date: Mon, 11 Oct 2021 11:21:04 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
>
>> That's good. Because "Nobody is going to sit in the Laundromat watching
>> the dryer spin." They'll be somewhere else doing something else. (I.e.,
>> they won't be staring at the *compilation* buffer.)
>>
>> OK, but then it disappears when the compilation is over.
>
> A message is issued, and I think that's sufficient.  Closing.

Note that you can customize compilation-finish-functions to do all sorts
of things; you can e.g. send a desktop notification:

#+begin_src elisp
(defun my/compilation-notify (buffer results)
  (require 'notifications)
  (notifications-notify :title (buffer-name buffer) :body results :timeout 0))

(add-to-list 'compilation-finish-functions 'my/compilation-notify)
#+end_src

':timeout 0' should ensure that the notification popup remains until you
dimiss it manually.

Writing a function that adds « "Compilation Finished" and red, and
flashing, etc. » to the mode-line is left as an exercise to the reader
:)




This bug report was last modified 3 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.