all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: disable messaging in echo area
Date: Thu, 09 Dec 2010 09:32:32 -0500	[thread overview]
Message-ID: <E1PQhXs-0001p2-JK@fencepost.gnu.org> (raw)
In-Reply-To: <4CFFA5CF.7070100@gmail.com> (message from Daniel Carvalho on Wed, 08 Dec 2010 15:35:43 +0000)

> Date: Wed, 08 Dec 2010 15:35:43 +0000
> From: Daniel Carvalho <idnael@gmail.com>
> 
> I have a function that runs in background every 10 seconds (with
> run-at-time). That function saves a file, and this causes a message to
> be displayed in the echo-area. I want to disable this message...

What does the message say?  If it says "Wrote /foo/bar", then you
cannot disable it from Lisp, currently: this message comes from the
write-region primitive on the C level, not from a call to Lisp-level
function `message'.  The message which precedes that, the one which
says "Saving file /foo/bar...", should be disabled by flet-binding
`message' to nil, I think.

> there was already a thread about that :
> http://lists.gnu.org/archive/html/help-gnu-emacs/2009-08/msg00374.html
> 
> 
> But the pointed solutions don't work
> 
> (flet ((message (&rest args) nil))
>    (message "test")
>    (write-file file)
>    )
> - the "test" message is not displayed, but the "write file" is still
> displayed!
> 
> 
> (let (message-log-max)
>   (write-file file)
>   )
> - no effect!

No amount of fiddling with Lisp-level `message' facilities will be
ever able to do what you want.  I suggest to file a feature request
(with "M-x report-emacs-bug RET") asking for a variable that could be
bound to disable all messages, even those coming from the C level.



  reply	other threads:[~2010-12-09 14:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 15:35 disable messaging in echo area Daniel Carvalho
2010-12-09 14:32 ` Eli Zaretskii [this message]
2010-12-10  4:26   ` Drew Adams
2010-12-10 11:30   ` daniel
     [not found]   ` <mailman.86.1291980649.5417.help-gnu-emacs@gnu.org>
2010-12-11  1:38     ` jpkotta

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=E1PQhXs-0001p2-JK@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.