GNU bug report logs - #13015
24.2; (let (message-log-max) (message ...)) does not disable logging

Previous Next

Package: emacs;

Reported by: Philipp Moeller <philipp.moeller <at> geometryfactory.com>

Date: Tue, 27 Nov 2012 22:34:01 UTC

Severity: minor

Tags: notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.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 13015 in the body.
You can then email your comments to 13015 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-gnu-emacs <at> gnu.org:
bug#13015; Package emacs. (Tue, 27 Nov 2012 22:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philipp Moeller <philipp.moeller <at> geometryfactory.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Nov 2012 22:34:02 GMT) Full text and rfc822 format available.

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

From: Philipp Moeller <philipp.moeller <at> geometryfactory.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; (let (message-log-max) (message ...)) does not disable logging
Date: Tue, 27 Nov 2012 23:20:49 +0100
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13015; Package emacs. (Tue, 27 Nov 2012 22:40:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Philipp Moeller <philipp.moeller <at> geometryfactory.com>
Cc: 13015 <at> debbugs.gnu.org
Subject: Re: bug#13015: 24.2;
	(let (message-log-max) (message ...)) does not disable logging
Date: Tue, 27 Nov 2012 17:37:45 -0500
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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13015; Package emacs. (Tue, 27 Nov 2012 23:09:02 GMT) Full text and rfc822 format available.

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

From: Philipp Moeller <philipp.moeller <at> geometryfactory.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13015 <at> debbugs.gnu.org
Subject: Re: bug#13015: 24.2;
	(let (message-log-max) (message ...)) does not disable logging
Date: Tue, 27 Nov 2012 23:57:35 +0100
Glenn Morris <rgm <at> 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.




bug closed, send any further explanations to 13015 <at> debbugs.gnu.org and Philipp Moeller <philipp.moeller <at> geometryfactory.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 27 Nov 2012 23:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 238 days ago.

Previous Next


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