From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52018: 28.0.60; Improve documentation for compilation-finish-functions Date: Sun, 21 Nov 2021 17:13:35 +0200 Message-ID: <83sfvpr17k.fsf@gnu.org> References: <871r39hjj3.fsf@thb.lt> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15507"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52018@debbugs.gnu.org To: Thibault Polge Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 21 16:14:25 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 1mooXv-0003kI-FQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 16:14:23 +0100 Original-Received: from localhost ([::1]:60624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mooXt-0001XI-IH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 10:14:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mooXa-0001X0-Bl for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 10:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mooXa-0001C8-08 for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 10:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mooXZ-0006YF-Q2 for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 10:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Nov 2021 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52018 X-GNU-PR-Package: emacs Original-Received: via spool by 52018-submit@debbugs.gnu.org id=B52018.163750761925147 (code B ref 52018); Sun, 21 Nov 2021 15:14:01 +0000 Original-Received: (at 52018) by debbugs.gnu.org; 21 Nov 2021 15:13:39 +0000 Original-Received: from localhost ([127.0.0.1]:45833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mooXC-0006XV-OV for submit@debbugs.gnu.org; Sun, 21 Nov 2021 10:13:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mooXB-0006XI-Hs for 52018@debbugs.gnu.org; Sun, 21 Nov 2021 10:13:37 -0500 Original-Received: from [2001:470:142:3::e] (port=53000 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mooX5-0001AW-HD; Sun, 21 Nov 2021 10:13:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=csyllksKlxph6pjh1cp2omUL/stDacalj3fhUSCk3BE=; b=hw6gEpZhpxQc AHz2m0P4W8F3Yw7mar/W2pMz/OPwz767X0iNxMC7I7gsJl0yEwJfmqvcrf4Typ2yiSZGB+qNKGzPz cJtPJoz6U1AD+ppzf/w30cvYqOeMBejfgOZs/MYO/9szrck+4wLpAsyfzasR3vlZeeD9I8ihmoE20 0qwqr1tbWNlUUEAnE27UFSUb9+rkpM24WiemSGt6lwUYJ+m94MhfptG/2b1qz3Z5RCKFYKtBP2Q1x 6yBkbBRHevz9S6zzewzu6yMEGbPMRtFlv3mOknkstsdam9yJtl6/rcyBJcYeUuhqW0BYCwc0Dj20G veLW/oFKWpd3rG5xGf7CSw==; Original-Received: from [87.69.77.57] (port=1535 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mooX5-0006OU-6y; Sun, 21 Nov 2021 10:13:31 -0500 In-Reply-To: <871r39hjj3.fsf@thb.lt> (message from Thibault Polge on Sun, 21 Nov 2021 11:48:00 +0100) 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:220563 Archived-At: > From: Thibault Polge > Date: Sun, 21 Nov 2021 11:48:00 +0100 > > (defvar compilation-finish-functions nil > "Functions to call when a compilation process finishes. > Each function is called with two arguments: the compilation buffer, > -and a string describing how the process finished.") > +and a string describing how the process finished. > + > +That string is the sentinel's event type string, see info > +node `(elisp) Sentinels' for more details.") But this is not entirely accurate, is it? The code actually does (let ((out-string (format ":%s [%s]" process-status (cdr status))) (msg (format "%s %s" mode-name (replace-regexp-in-string "\n?$" "" (car status))))) [...] (run-hook-with-args 'compilation-finish-functions cur-buffer msg))) So 'msg' is not just the process status , AFAIU. Thanks.