GNU bug report logs - #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.

Previous Next

Package: emacs;

Reported by: Joe M <joe9mail <at> gmail.com>

Date: Thu, 11 Aug 2016 21:40:01 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Found in version 24.5

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: John Mastro <john.b.mastro <at> gmail.com>
To: 24208 <at> debbugs.gnu.org
Cc: Robert Cochran <robert-emacs <at> cochranmail.com>, Joe M <joe9mail <at> gmail.com>
Subject: Re: 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 <robert-emacs <at> cochranmail.com> 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




This bug report was last modified 8 years and 225 days ago.

Previous Next


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