* bug#13015: 24.2; (let (message-log-max) (message ...)) does not disable logging
@ 2012-11-27 22:20 Philipp Moeller
2012-11-27 22:37 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Moeller @ 2012-11-27 22:20 UTC (permalink / raw)
To: 13015
The manual uses the example
(let (message-log-max) (message ...))
to show how to disable logging messages in the *Messages* buffer. This
does not work in Emacs 24.1, e.g. evaluating:
(let (message-log-max) (message "foobar"))
will still print "foobar" in *Messages* buffer.
When I use
(setq message-log-max nil)
(message "foobar")
it works as expected: no output is send to the *Messages* buffer.
In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.2)
of 2012-11-18 on eric
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
Configured using:
`configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib'
'--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft'
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: C
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13015: 24.2; (let (message-log-max) (message ...)) does not disable logging
2012-11-27 22:20 bug#13015: 24.2; (let (message-log-max) (message ...)) does not disable logging Philipp Moeller
@ 2012-11-27 22:37 ` Glenn Morris
2012-11-27 22:57 ` Philipp Moeller
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-11-27 22:37 UTC (permalink / raw)
To: Philipp Moeller; +Cc: 13015
Philipp Moeller wrote:
> does not work in Emacs 24.1, e.g. evaluating:
>
> (let (message-log-max) (message "foobar"))
>
> will still print "foobar" in *Messages* buffer.
I suspect you are being confused by the fact that message returns what
it printed. Try:
(let (message-log-max) (message "foobar") nil)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#13015: 24.2; (let (message-log-max) (message ...)) does not disable logging
2012-11-27 22:37 ` Glenn Morris
@ 2012-11-27 22:57 ` Philipp Moeller
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Moeller @ 2012-11-27 22:57 UTC (permalink / raw)
To: Glenn Morris; +Cc: 13015
Glenn Morris <rgm@gnu.org> writes:
> Philipp Moeller wrote:
>
>> does not work in Emacs 24.1, e.g. evaluating:
>>
>> (let (message-log-max) (message "foobar"))
>>
>> will still print "foobar" in *Messages* buffer.
>
> I suspect you are being confused by the fact that message returns what
> it printed. Try:
>
> (let (message-log-max) (message "foobar") nil)
Absolutely correct. Sorry for the noise.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-27 22:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 22:20 bug#13015: 24.2; (let (message-log-max) (message ...)) does not disable logging Philipp Moeller
2012-11-27 22:37 ` Glenn Morris
2012-11-27 22:57 ` Philipp Moeller
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.