GNU bug report logs - #4477
23.1; logging minibuffer-message messages

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 18 Sep 2009 07:45:03 UTC

Severity: wishlist

Tags: wontfix

Merged with 3465

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4477 in the body.
You can then email your comments to 4477 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4477; Package emacs. (Fri, 18 Sep 2009 07:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 18 Sep 2009 07:45:08 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 23.1; logging minibuffer-message messages
Date: Fri, 18 Sep 2009 00:36:56 -0700
Enhancement request: be able to log `minibuffer-message' messages.
 
> From: Giorgos Keramidas Sent: Tuesday, May 12, 2009 8:22 AM
> On Tue, 12 May 2009 07:57:09 -0700, "Drew Adams"
>
> > How about having a way to log minibuffer messages?
> >
> > For example, option `message-log-max', which allows for 
> > disabling logging, could have additional values:
> >
> > * negative N means (abs N) max lines + log minibuf msgs too
> > * other non-nil value, besides t and N, means log minibuf msgs too
> >
> > With minibuffer messages logged also, a user can consult *Messages*
> > (e.g. using `C-x C-b') if s?he misses an ephemeral message.
> 
> That would be useful.  I have seen tips about key bindings fly by too
> fast when the minibuffer displays something else.  Being able 
> to go back and look for them in *Messages* would be nice.
 

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 





Severity set to 'wishlist' from 'normal' Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> emacsbugs.donarmstrong.com. (Fri, 18 Sep 2009 13:35:05 GMT) Full text and rfc822 format available.

Merged 3465 4477. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 10 Dec 2010 21:21:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 3465 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 27 Apr 2016 19:14:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 27 Apr 2016 20:27:02 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 13:51:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 3465 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 13:51:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 16:38:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: bug-gnu-emacs <at> gnu.org, 4477 <at> emacsbugs.donarmstrong.com
Subject: Re: bug#4477: 23.1; logging minibuffer-message messages
Date: Sat, 22 Aug 2020 18:37:26 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> Why was this suddenly closed with no explanation?
> Was that perhaps a mistake?

No, the discussion happened on the merged bug report bug#3465.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 16:55:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 3465 <at> debbugs.gnu.org, 4477 <at> debbugs.gnu.org, bojohan <at> gnu.org
Subject: RE: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 09:54:14 -0700 (PDT)
> >> There's no problem with logging in general.  The request is to also have
> >> the messages output by the minibuffer-message function also end up in
> >> the *Messages* buffer.

No.  The request is to _be able_ to also log
`minibuffer-message' feedback.

> > By default?  I'd object to that.  As an option, maybe; 

The bug requested to _be able to_ do it.
Not to do it by default.

> > but then I
> > don't understand why this is requested as a core feature, since any
> > Lisp program that wants this can simply call 'message' with the same
> > string, and be done.

No.  `minibuffer-message' has an entirely different
UI effect.  You are coupling the UI effect (messaging)
with the logging effect.  It is you, even in your "but
then" (i.e., NOT by default), who are saying that
every time logging is wanted the UI effect of `message'
is also wanted.

That's exactly the point of this bug:

1. `message' and `minibuffer-message' have different UI
   effects.  They are used for different things.

2. `message' can be logged. `minibuffer-message' cannot.

The point is to be able to log `minibuffer-message',
WITHOUT getting the different UI effect of `message'.

Please reread the bug report.  I don't think it's hard
to understand the request: Be able to also log
`minibuffer-message' output.

And obviously WITHOUT calling `message', which is not
logging `minibuffer-message' but logging `message',
and which adds the UI effect of `message'.

> I thought it would make sense to have that function behave as regularly
> as possible...
> 
> However, looking at the use cases for minibuffer-message, all of the
> in-tree calls are trivial: "Confirm".  "Incomplete".  "Hit space to
> flush".  All of those things are UI details that would be surprising to
> have land in the *Messages* buffer.

This is irrelevant.  User code - 3rd-party libraries
can, and do, use `minibuffer-message' in other ways.

Don't judge what something is used for generally by
such trivial uses of it.  Uses of the minibuffer by
vanilla Emacs are mostly trivial,  There's not much
user interaction, not many keys/actions possible in
the minibuffer, etc.

> So I agree with Eli, and I don't think this is something that
> minibuffer-message should do at all.  If something wants to do a
> minibuffer-message and log it, then that thing should just do both.
> 
> So I'm closing this bug report.

Eli seems to have clearly misunderstood the request.

And you seem to have based your conclusion of how
`minibuffer-message' is and can be used only on its
few uses in the vanilla code, which are trivial uses.

Please reopen this enhancement request.  It's simply
a request to _be able to_ log `minibuffer-message'
output.  Not a big deal.

`message' does NOT replace `minibuffer-message', and
vice versa.  Neither should be hard-code coupled with
logging.  And each should be able to log, as well as
have its minibuffer UI effect.

The effects of the two functions should be totally
_independent_.

(And yes, Juri's recent changes that act against this
independence are a real step _backward_.  I argued
this in vain in that context.  Too bad.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 17:04:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 3465 <at> debbugs.gnu.org, larsi <at> gnus.org, 4477 <at> debbugs.gnu.org, bojohan <at> gnu.org
Subject: Re: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 20:02:53 +0300
> Date: Sat, 22 Aug 2020 09:54:14 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 3465 <at> debbugs.gnu.org, bojohan <at> gnu.org, 4477 <at> debbugs.gnu.org
> 
> > >> There's no problem with logging in general.  The request is to also have
> > >> the messages output by the minibuffer-message function also end up in
> > >> the *Messages* buffer.
> 
> No.  The request is to _be able_ to also log
> `minibuffer-message' feedback.
> 
> > > By default?  I'd object to that.  As an option, maybe; 
> 
> The bug requested to _be able to_ do it.
> Not to do it by default.

I was responding to Lars, not to your original request.

> > > but then I
> > > don't understand why this is requested as a core feature, since any
> > > Lisp program that wants this can simply call 'message' with the same
> > > string, and be done.
> 
> No.  `minibuffer-message' has an entirely different
> UI effect.  You are coupling the UI effect (messaging)
> with the logging effect.  It is you, even in your "but
> then" (i.e., NOT by default), who are saying that
> every time logging is wanted the UI effect of `message'
> is also wanted.

Yes, yes, everyone knows that.  No need to reiterate the trivia.
Please focus on the real issues at hand.

> That's exactly the point of this bug:
> 
> 1. `message' and `minibuffer-message' have different UI
>    effects.  They are used for different things.
> 
> 2. `message' can be logged. `minibuffer-message' cannot.
> 
> The point is to be able to log `minibuffer-message',
> WITHOUT getting the different UI effect of `message'.

Yes, we understood that.  No need to reiterate.

> Please reread the bug report.  I don't think it's hard
> to understand the request: Be able to also log
> `minibuffer-message' output.

Please re-read what I responded.  Which part of it contradicts what
you requested?

> And obviously WITHOUT calling `message', which is not
> logging `minibuffer-message' but logging `message',
> and which adds the UI effect of `message'.

The UI effect of 'message' can be easily disabled by the Lisp program
which calls 'message', which in effect converts 'message' into a
logging function.  Include that in the code that calls
'minibuffer-message', and you have what you wanted, no?

> Eli seems to have clearly misunderstood the request.

Please don't second-guess my misunderstandings.  It is rude, to say
the least.

> Please reopen this enhancement request.  It's simply
> a request to _be able to_ log `minibuffer-message'
> output.  Not a big deal.

You are already able to do that, AFAICT.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 18:12:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 3465 <at> debbugs.gnu.org, larsi <at> gnus.org, 4477 <at> debbugs.gnu.org, bojohan <at> gnu.org
Subject: RE: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 11:11:23 -0700 (PDT)
> > Please reread the bug report.  I don't think it's hard
> > to understand the request: Be able to also log
> > `minibuffer-message' output.
> 
> Please re-read what I responded.  Which part of it
> contradicts what you requested?
> 
> > And obviously WITHOUT calling `message', which is not
> > logging `minibuffer-message' but logging `message',
> > and which adds the UI effect of `message'.
> 
> The UI effect of 'message' can be easily disabled by the Lisp program
> which calls 'message', which in effect converts 'message' into a
> logging function.  Include that in the code that calls
> 'minibuffer-message', and you have what you wanted, no?

Please read what you just responded to again.

The request is to be able to have `minibuffer-message'
output logged, WITHOUT calling `message'.

You seem to keep repeating that we can have the effect
of logging the text (and have the UI effect of only
`minibuffer-message') by ALSO calling `message'.

That's not the request.  It's not about whether one
can get the effect of logging `minibuffer-message'
output without also logging a `message' output for
the same text.

It's about simply controlling logging for
`minibuffer-message', totally, completely, independent
of any use of `message'.

IOW, please forget about `message'.  The request is
for a simple way to (optionally) log output of 
`minibuffer-message', just as we do, for example for
`message' output.  And without recourse to any call
to `message' - no workaround, just a simple way to
log `minibuffer-message'.  We have such a way for
`message' output.  The request is for such a way for
`minibuffer-message' output - totally independent
from `message'.

> > Eli seems to have clearly misunderstood the request.
> 
> Please don't second-guess my misunderstandings.  It is rude, to say
> the least.

Fair enough to say that I do think you've misundertood?

Perhaps you prefer RMS's favorite way to put it: "We
seem to be miscommunicating."

You reply that what I say is obvious to all and doesn't
need to be said.  I reply that I think you're not
getting what I'm saying.  You reply that there's a
workaround (which I could say is obvious to all and
doesn't need to be reiterated).

I reply that I'm aware of that workaround, and I'm
asking for a _simple_ way to do what's requested,
along the lines of what's available for `message',
for instance.

> > Please reopen this enhancement request.  It's simply
> > a request to _be able to_ log `minibuffer-message'
> > output.  Not a big deal.
> 
> You are already able to do that, AFAICT.

Not simply.  Not in a way similar or analogous to
what we can do for `message'.   Not without jumping
through a hoop - also calling `message'.

Please keep `message' out of it.  This request is
about `minibuffer-message'.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 18:35:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 3465 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, 4477 <at> debbugs.gnu.org,
 bojohan <at> gnu.org
Subject: Re: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 20:34:25 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> Please read what you just responded to again.
>
> The request is to be able to have `minibuffer-message'
> output logged, WITHOUT calling `message'.

We understand the request, and we have said "no, we're not going to add
that to Emacs".

If you want to do a minibuffer message and log it, you can write your
own function:

(defun minibuffer-message-and-log (&rest args)
  (let ((inhibit-message t))
    (apply #'message args))
  (apply #'minibuffer-message args))

Or whatever.

This seems to be a common thread when you request extending a function
to do something special in one way or another, when that can be done
trivially by just calling two functions instead.

And the rearguard-fighting action when these requests are rejected are
tiresome, to say the least.  Please stop doing it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 18:37:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 3465 <at> debbugs.gnu.org, larsi <at> gnus.org, 4477 <at> debbugs.gnu.org, bojohan <at> gnu.org
Subject: Re: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 21:36:33 +0300
> Date: Sat, 22 Aug 2020 11:11:23 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: larsi <at> gnus.org, 3465 <at> debbugs.gnu.org, bojohan <at> gnu.org,
>         4477 <at> debbugs.gnu.org
> 
> The request is to be able to have `minibuffer-message'
> output logged, WITHOUT calling `message'.

Why "without"?

> It's about simply controlling logging for
> `minibuffer-message', totally, completely, independent
> of any use of `message'.

You want every single call to minibuffer-message to be logged in
*Messages*?  I'm guessing not, because this would make no sense.

If you want to log only _some_ calls to minibuffer-message, then you
will have to have special code to request that in those places where
you want the minibuffer messages to be logged.  I'm saying that you
can easily call 'message' in those places, and be done with that.

> IOW, please forget about `message'.  The request is
> for a simple way to (optionally) log output of 
> `minibuffer-message', just as we do, for example for
> `message' output.  And without recourse to any call
> to `message' - no workaround, just a simple way to
> log `minibuffer-message'.  We have such a way for
> `message' output.  The request is for such a way for
> `minibuffer-message' output - totally independent
> from `message'.

You cannot request a feature and then also dictate how it is
implemented.  The solution I proposed should do what you want without
requiring any changes to the core.

> > You are already able to do that, AFAICT.
> 
> Not simply.

It's simple enough, from where I stand.  Certainly so for a minor
feature such as this one.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4477; Package emacs. (Sat, 22 Aug 2020 19:18:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 3465 <at> debbugs.gnu.org, larsi <at> gnus.org, 4477 <at> debbugs.gnu.org, bojohan <at> gnu.org
Subject: RE: bug#3465: 23.0.94; feature request: be able to log minibuffer
 messages
Date: Sat, 22 Aug 2020 12:17:16 -0700 (PDT)
> > The request is to be able to have `minibuffer-message'
> > output logged, WITHOUT calling `message'.
> 
> Why "without"?

Treat `minibuffer-message' as first-class, the same
way `message' is treated.  `message' shouldn't affect
`minibuffer-message', and vice versa.

`message' has an easy way to do what's requested;
`minibuffer-message' does not have one.

> > It's about simply controlling logging for
> > `minibuffer-message', totally, completely, independent
> > of any use of `message'.
> 
> You want every single call to minibuffer-message to be logged in
> *Messages*?  I'm guessing not, because this would make no sense.

Not at all.  What makes you think that?

I think I made it clear that the request is to be able
to have, for `minibuffer-message', control over logging
similar to what we have for `message'.

They are separate.  They should remain separate.
All that's being requested is logging control
for `minibuffer-message' that's on a par with the
logging control for `message'.

> If you want to log only _some_ calls to minibuffer-message, then you
> will have to have special code to request that in those places where
> you want the minibuffer messages to be logged.  I'm saying that you
> can easily call 'message' in those places, and be done with that.

What I want is to be able to do with and for
`minibuffer-message' what I can do with and for
`message'.  Without any use of `message' - no
connection between the two, no dependence of
either on the other.

> > IOW, please forget about `message'.  The request is
> > for a simple way to (optionally) log output of
> > `minibuffer-message', just as we do, for example for
> > `message' output.  And without recourse to any call
> > to `message' - no workaround, just a simple way to
> > log `minibuffer-message'.  We have such a way for
> > `message' output.  The request is for such a way for
> > `minibuffer-message' output - totally independent
> > from `message'.
> 
> You cannot request a feature and then also dictate
> how it is implemented.

I in no way dictated anything about implementation.
I have said absolutely nothing about implementation.

The entire request is expressed in terms of behavior:
user-visible, user-controllable behavior.  Nothing
about implementation.  It's about what users can do.

> The solution I proposed should do what you want without
> requiring any changes to the core.

See above.  It doesn't do what was requested.

> > > You are already able to do that, AFAICT.
> >
> > Not simply.
> 
> It's simple enough, from where I stand.  Certainly
> so for a minor feature such as this one.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 269 days ago.

Previous Next


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