From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#51132: Make sure user is doubly aware of finished complilations Date: Wed, 20 Oct 2021 08:09:35 +0200 Message-ID: <87ilxs1b34.fsf@gmail.com> References: <87zgrg9hs0.5.fsf@jidanni.org> <83czobrc2a.fsf@gnu.org> <87fst6u0sr.5.fsf@jidanni.org> <838ryyqr60.fsf@gnu.org> <87v922b7ds.fsf@gmail.com> <83sfx6p6iu.fsf@gnu.org> <874k9m85k9.fsf@gmail.com> <87tuhcijs0.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30378"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 51132@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 08:10:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md4nu-0007gp-VV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 08:10:22 +0200 Original-Received: from localhost ([::1]:54990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md4ns-0007tO-Um for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 02:10:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md4nc-0007t1-D3 for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 02:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1md4na-0006x3-Hn for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 02:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1md4na-0001p8-97 for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 02:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 06:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 51132-submit@debbugs.gnu.org id=B51132.16347101846980 (code B ref 51132); Wed, 20 Oct 2021 06:10:02 +0000 Original-Received: (at 51132) by debbugs.gnu.org; 20 Oct 2021 06:09:44 +0000 Original-Received: from localhost ([127.0.0.1]:52500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md4nI-0001oV-CC for submit@debbugs.gnu.org; Wed, 20 Oct 2021 02:09:44 -0400 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:42974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md4nG-0001oG-UQ for 51132@debbugs.gnu.org; Wed, 20 Oct 2021 02:09:43 -0400 Original-Received: by mail-wm1-f47.google.com with SMTP id s198-20020a1ca9cf000000b0030d6986ea9fso7505535wme.1 for <51132@debbugs.gnu.org>; Tue, 19 Oct 2021 23:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ezSjUcCWTPpvbSEOjOjlYQAqDc+N191qa71mgU9vc58=; b=pBEFpdXtPJEJETapX2VSj2G0BSnxzBiB0RgcTqetYtXK6FUn0InoluCirQ3PVKNbPZ cpC8ThJcO/3BTXLMDQ0a4P0TGMVkIgg+gGW1P31PFlDftgUM3Pxh708qq0UaR/K3XhFv x3sBXl8IiVP57RVeomMCvBFyrygzBga2zOntMlwwEZ8qmp3apjuFJo92R8sXPDhMuVVj WRmW2DLxL20EwiJBaVHVNeLnSY/McPbbbkHwZgtKIlGZdkfAFIMHG3AvTyAdCJuJVSNk gLCgACrnGYR+fBoivovt6QNKgnZ/KYRK+TTgyP3HoGuQCm9UHB2x1uw6SdRoHsbRmZxk Q7XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ezSjUcCWTPpvbSEOjOjlYQAqDc+N191qa71mgU9vc58=; b=Zh/Dml9GuF9VXb5FNNV07BQWTxCR1iLt424F+O9ZFxuzZELcMXINiN1i9pe5tzQW2n W3UxbGtTmAM27O+4E7U9iXdjKldJ3fNlgv1WXkECkpo4jkup2zxCsjIZMWUrQnngE02/ PQtY2BN4VVm7+DzjXf0BCBfhC/bYmOYPTvPsoCW0CsQpsWnlhfxm55xQSNc57wDrctyg Z9+kZ9M6nJsHx9gtENgvNcCrvm7QlmHg3Yqrx0kIeSb4gm/pwEct/L5my3nPDBzrOopc 7de4+pFoO629ArJUvjJE8v0xbt6HzAD0C1HhHZsvdMhVuOv7jhd8cSCGao9pGX3xqzPM Onng== X-Gm-Message-State: AOAM5322U46cNdX7ETEYdjA+/Dnb43VBTZt51VkFEQeXXkAPgs95gKJn fPz/A5ek8T9q9uom0OPL8hMqFR+JrUg= X-Google-Smtp-Source: ABdhPJxNsdGGgbE2IfVZLdVd62fFeVAHvHESfXlMINRqJdiUESOaglxPU5+ec+r70nFXlJPx5wP19w== X-Received: by 2002:adf:e4c5:: with SMTP id v5mr49042921wrm.21.1634710176763; Tue, 19 Oct 2021 23:09:36 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id q18sm4061355wmc.7.2021.10.19.23.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 23:09:36 -0700 (PDT) In-Reply-To: <87tuhcijs0.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Wed, 20 Oct 2021 09:09:51 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217630 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Maybe (info "(emacs) Compilation") should mention: > "Like KLG says, it is extremely easy to forget you had a lengthy compile > job running, and ... > > KLG> 5. consider I have finished working on the unrelated matters, and cl= ose > KLG> Emacs, > > KLG> 6. bang my head on the desk out of frustration and self-loathing. > > ... therefore perhaps consider wrapping your compile jobs in a nohup(1) > statement, perhaps with a tail -f nohup.out to simulate traditional > compile-mode output. Example: ..." That, or maybe advertise compilation-finish-functions more? Promote it to a defcustom, keep it nil by default, add some :options, such as: - a function that calls notifications-notify, - a function that saves the buffer; serving suggestion: (defun compilation-save-buffer (buffer _results) ;; TODO: ;; - better path-separator escaping? ;; - give user more control over directory? ;; - give user more control over filename? ;; - use write-file and mark buffer as "unsaved"? (let* ((cmd (string-replace "/" "-" (with-current-buffer buffer compile-command))) (time (format-time-string "%F-%T"))) (with-current-buffer buffer (write-region (point-min) (point-max) (format "%s-%s.log" time cmd)))= )) =E2=80=A6 and document it in (info "(emacs) Compilation"). I wouldn't mind working on a patch, if the above sounds appealing. I'm a bit swamped these days, but from our discussion I understand that this wouldn't exactly be a high-priority feature anyway :)