* bug#12849: 24.2.50; Doc: `message': mention `message-log-max'
@ 2012-11-10 0:14 Michael Heerdegen
2012-11-10 4:51 ` Leo
2012-11-16 2:42 ` Glenn Morris
0 siblings, 2 replies; 4+ messages in thread
From: Michael Heerdegen @ 2012-11-10 0:14 UTC (permalink / raw)
To: 12849
Hi,
I made the experience that many people don't know that logging messages
(printed with `message') in the *Messages* buffer can be prevented with
binding `message-log-max' to nil.
Indeed, it's not easy to find in the doc, and the name `message-log-max'
also doesn't sound as if this variable could have this effect.
I think we should mention this effect of binding `message-log-max' to
nil in the docstring of `message', e.g. by changing this sentence:
The message also goes into the `*Messages*' buffer.
to
The message also goes into the `*Messages*' buffer if `message-log-max'
is not nil.
Thanks,
Michael.
In GNU Emacs 24.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
of 2012-11-01 on dex, modified by Debian
(emacs-snapshot package, version 2:20121101-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description: Debian GNU/Linux testing (wheezy)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12849: 24.2.50; Doc: `message': mention `message-log-max'
2012-11-10 0:14 bug#12849: 24.2.50; Doc: `message': mention `message-log-max' Michael Heerdegen
@ 2012-11-10 4:51 ` Leo
2012-11-10 16:51 ` Michael Heerdegen
2012-11-16 2:42 ` Glenn Morris
1 sibling, 1 reply; 4+ messages in thread
From: Leo @ 2012-11-10 4:51 UTC (permalink / raw)
To: 12849
On 2012-11-10 08:14 +0800, Michael Heerdegen wrote:
> I made the experience that many people don't know that logging messages
> (printed with `message') in the *Messages* buffer can be prevented with
> binding `message-log-max' to nil.
How about adding:
(defsubst message-nolog (format-string &rest args)
"Same as `message' except not writing to *Messages* buffer."
(let (message-log-max) (apply 'message format-string args)))
This could encourage elisp authors to choose what to log to *Messages*
buffer. For example, ff-quiet-mode defaults to nil and, boy, this
library can write thousands of useless lines to *Messages* buffer.
Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12849: 24.2.50; Doc: `message': mention `message-log-max'
2012-11-10 4:51 ` Leo
@ 2012-11-10 16:51 ` Michael Heerdegen
0 siblings, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2012-11-10 16:51 UTC (permalink / raw)
To: Leo; +Cc: 12849
Leo <sdl.web@gmail.com> writes:
> How about adding:
>
> (defsubst message-nolog (format-string &rest args)
> "Same as `message' except not writing to *Messages* buffer."
> (let (message-log-max) (apply 'message format-string args)))
>
> This could encourage elisp authors to choose what to log to *Messages*
> buffer. For example, ff-quiet-mode defaults to nil and, boy, this
> library can write thousands of useless lines to *Messages* buffer.
I would appreciate something like that (besides improving the doc).
Maybe the same could be done for `with-temp-message'.
Regards,
Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12849: 24.2.50; Doc: `message': mention `message-log-max'
2012-11-10 0:14 bug#12849: 24.2.50; Doc: `message': mention `message-log-max' Michael Heerdegen
2012-11-10 4:51 ` Leo
@ 2012-11-16 2:42 ` Glenn Morris
1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2012-11-16 2:42 UTC (permalink / raw)
To: 12849-done
Version: 24.3
Michael Heerdegen wrote:
> I think we should mention this effect of binding `message-log-max' to
> nil in the docstring of `message'
Thanks; done.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-16 2:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-10 0:14 bug#12849: 24.2.50; Doc: `message': mention `message-log-max' Michael Heerdegen
2012-11-10 4:51 ` Leo
2012-11-10 16:51 ` Michael Heerdegen
2012-11-16 2:42 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).