From: Antoine Levitt <antoine.levitt@gmail.com>
To: emacs-devel@gnu.org
Subject: Silencing save messages
Date: Tue, 15 Feb 2011 14:52:10 +0100 [thread overview]
Message-ID: <87pqqt2ynp.fsf@gmail.com> (raw)
Hi,
I'm trying to do something like
(add-hook 'bbdb-after-change-hook (lambda (arg) (bbdb-save)))
which would save the BBDB database after each change, but I'm getting
nasty "Wrote ~/.bbdb" messages which I don't care about. How do modes
get around that? I already use tricks like
(flet ((message (&rest args) nil))
(desktop-save-in-desktop-dir))
to suppress output by message, but this doesn't work for C output. I
also saw that desktop.el uses
(write-region (point-min) (point-max) (desktop-full-file-name) nil 'nomessage)
but I can't use the same flet trick to enforce that in other code
(although I could probably use an advice). Is there some deep setting
one can use to suppress any output? (not prompts or errors, only
minibuffer output, from message and the likes) Presumably this would be
useful in some kind of (with-no-output) macro or something. Then,
functions wanting to silently save buffers or whatnot would just enclose
(save-buffer) inside (with-no-output).
reply other threads:[~2011-02-15 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87pqqt2ynp.fsf@gmail.com \
--to=antoine.levitt@gmail.com \
--cc=emacs-devel@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.