bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24208: 24.5; How do I get rid of this message? " Saving file /home/j


From: John Mastro
Subject: bug#24208: 24.5; How do I get rid of this message? " Saving file /home/j/var/emacs/recentf...Wrote /home/j/var/emacs/recentf". There does not seem to be a recentf variable to get rid of this message.
Date: Thu, 11 Aug 2016 16:58:08 -0700

Robert Cochran <address@hidden> wrote:
> A direct fix can be done to recentf.el: it appears that you can bind
> `inhibit-message` to a non-nil value and it will supress that (ala
> wrapping it in a `let`), but that appears to be an Emacs 25 feature, and
> wouldn't much help you anyways.

If you upgrade to Emacs 25, and want a workaround you can use now, an
advice along these lines should work:

(defun recentf-save-silently-advice (original &rest args)
  (let ((inhibit-message t)
        (message-log-max nil))
    (apply original args)))

(advice-add 'recentf-save-list :around #'recentf-save-silently-advice)

There's also the `save-silently' variable, though I don't recall when it
was introduced and don't have a repo handy at the moment to check.

        John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]