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#27170: 26.0.50; Suggestion: Optionally send package build output to log file not *Messages* Date: Sat, 29 Jan 2022 19:30:22 +0200 Message-ID: <83ilu2bgb5.fsf@gnu.org> References: <87fuflm0ky.fsf@moondust.localdomain> <87k0xtqozx.fsf@gnus.org> <87r1s08dcf.fsf@gnus.org> <87k0ei8q86.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14337"; mail-complaints-to="usenet@ciao.gmane.io" Cc: nljlistbox2@gmail.com, 27170@debbugs.gnu.org, rms@gnu.org, stefankangas@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 29 18:31:17 2022 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 1nDrZE-0003YP-FE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jan 2022 18:31:16 +0100 Original-Received: from localhost ([::1]:47226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDrZD-00076G-C9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jan 2022 12:31:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDrZ0-000749-Jf for bug-gnu-emacs@gnu.org; Sat, 29 Jan 2022 12:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDrZ0-0001Rf-9f for bug-gnu-emacs@gnu.org; Sat, 29 Jan 2022 12:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDrZ0-0006Pp-3e for bug-gnu-emacs@gnu.org; Sat, 29 Jan 2022 12:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jan 2022 17:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27170 X-GNU-PR-Package: emacs Original-Received: via spool by 27170-submit@debbugs.gnu.org id=B27170.164347745824651 (code B ref 27170); Sat, 29 Jan 2022 17:31:02 +0000 Original-Received: (at 27170) by debbugs.gnu.org; 29 Jan 2022 17:30:58 +0000 Original-Received: from localhost ([127.0.0.1]:34675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDrYw-0006PW-6W for submit@debbugs.gnu.org; Sat, 29 Jan 2022 12:30:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDrYv-0006PK-2f for 27170@debbugs.gnu.org; Sat, 29 Jan 2022 12:30:57 -0500 Original-Received: from [2001:470:142:3::e] (port=56268 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 1nDrYp-0001RA-ME; Sat, 29 Jan 2022 12:30:51 -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=08bUUrv9Brj1DWEvoqLT4hz7ejnGQDXm8BoljxzJOuw=; b=Kk+cWJwphNcL QhTyH2A/r0AYLKEyBQVJBHEuuNWHXu3X/1hqWAvuOKMNvE5Ts32Tf98QLhv6zOyQCaUCo8DV+KNwK 16b/2JsqKY7yp/dUfyM9TnlGB/6skK2DU9CF7GBdCnFspY4iHAroMnJ/9+1bdyMLKuCrq9RWH4imP VotjCHCInQJsGLUgMCGBBKgT1UBtNf0GoZ9MwAW1n3bg7ab/KFaspAcK0KW1ZVqv+8yKZNkcmklNQ 10x7RlX+5gpfQLjVo6ZpJIJ8C4A1rGQ6qduhR4WWhepeoOdpjOAia51+gTJ/AJrVHq3lgGkp7ncDW szfDXiFnOIr3azSQxN1p+Q==; Original-Received: from [87.69.77.57] (port=2962 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 1nDrYa-00018z-8S; Sat, 29 Jan 2022 12:30:50 -0500 In-Reply-To: <87k0ei8q86.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 29 Jan 2022 17:24:25 +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:225549 Archived-At: > From: Lars Ingebrigtsen > Date: Sat, 29 Jan 2022 17:24:25 +0100 > Cc: nljlistbox2@gmail.com, 27170@debbugs.gnu.org, stefankangas@gmail.com > > Richard Stallman writes: > > > > Sure, writing the output to a file would be fine, but I don't think > > > Emacs needs a logging framework for that. If we can redirect messages > > > to a buffer, then package.el can do whatever it wants with the messages, > > > including writing them to a file if so desired. > > > > I agree. Let's not make this more complex than the minimum. > > This has now been added to Emacs 29 -- packages can bind > `messages-buffer-name' to a different buffer name to redirect the > output. The "bind" part (also in the doc string of the variable) might mislead someone into thinking that just binding this variable around some form is enough to have all the relevant messages to go to that buffer. But that is not necessarily true, because some messages are produced after the command exits; a prominent example is messages produced by the display engine. So basically, binding this variable will actually _split_ the messages between *Messages* and some other buffer.