* Silencing save messages
@ 2011-02-15 13:52 Antoine Levitt
0 siblings, 0 replies; only message in thread
From: Antoine Levitt @ 2011-02-15 13:52 UTC (permalink / raw)
To: emacs-devel
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).
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-15 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 13:52 Silencing save messages Antoine Levitt
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.