all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: 24208@debbugs.gnu.org
Cc: Joe M <joe9mail@gmail.com>
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	[thread overview]
Message-ID: <CAOj2CQSLWGJLp_tYdz+ZBfE6Xq27b4Zvivi6QSz7RNyX57+-iQ@mail.gmail.com> (raw)
In-Reply-To: <87r39uewlw.fsf@cochranmail.com>

Robert Cochran <robert-emacs@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





  reply	other threads:[~2016-08-11 23:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11 21:39 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 Joe M
2016-08-11 23:04 ` Robert Cochran
2016-08-11 23:58   ` John Mastro [this message]
2016-08-12  0:22 ` Glenn Morris
2016-12-07 20:13   ` Glenn Morris

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=CAOj2CQSLWGJLp_tYdz+ZBfE6Xq27b4Zvivi6QSz7RNyX57+-iQ@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=24208@debbugs.gnu.org \
    --cc=joe9mail@gmail.com \
    /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.