all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: nljlistbox2@gmail.com, 27170@debbugs.gnu.org, rms@gnu.org,
	stefankangas@gmail.com
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	[thread overview]
Message-ID: <83ilu2bgb5.fsf@gnu.org> (raw)
In-Reply-To: <87k0ei8q86.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat,  29 Jan 2022 17:24:25 +0100)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 29 Jan 2022 17:24:25 +0100
> Cc: nljlistbox2@gmail.com, 27170@debbugs.gnu.org, stefankangas@gmail.com
> 
> Richard Stallman <rms@gnu.org> 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.





  reply	other threads:[~2022-01-29 17:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-31 16:51 bug#27170: 26.0.50; Suggestion: Optionally send package build output to log file not *Messages* N. Jackson
2020-08-20 16:08 ` Lars Ingebrigtsen
2020-08-20 16:34   ` Philipp Stephani
2020-08-20 16:43     ` Lars Ingebrigtsen
2020-08-20 17:38   ` Stefan Kangas
2020-08-21 11:09     ` Lars Ingebrigtsen
2020-08-22  3:51       ` Richard Stallman
2022-01-29 16:24         ` Lars Ingebrigtsen
2022-01-29 17:30           ` Eli Zaretskii [this message]
2022-01-30 15:52             ` Lars Ingebrigtsen
2022-01-30 16:48               ` Eli Zaretskii
2020-08-22 11:29       ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ilu2bgb5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=27170@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=nljlistbox2@gmail.com \
    --cc=rms@gnu.org \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.