From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Cochran Newsgroups: gmane.emacs.bugs 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:04:11 -0700 Message-ID: <87r39uewlw.fsf@cochranmail.com> References: <20160811213919.GA9602@master> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470956724 19123 195.159.176.226 (11 Aug 2016 23:05:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 23:05:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24208@debbugs.gnu.org To: Joe M Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 12 01:05:21 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXz2M-0004m4-SE for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Aug 2016 01:05:20 +0200 Original-Received: from localhost ([::1]:50832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXz2J-0002mr-Qo for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 19:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXz2C-0002ku-T4 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 19:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXz26-00029M-TU for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 19:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXz26-00028x-JW for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 19:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXz26-0002tg-7d for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 19:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Cochran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 23:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24208-submit@debbugs.gnu.org id=B24208.147095666711093 (code B ref 24208); Thu, 11 Aug 2016 23:05:02 +0000 Original-Received: (at 24208) by debbugs.gnu.org; 11 Aug 2016 23:04:27 +0000 Original-Received: from localhost ([127.0.0.1]:54483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXz1X-0002sr-Gs for submit@debbugs.gnu.org; Thu, 11 Aug 2016 19:04:27 -0400 Original-Received: from mail.workgrouplinux.net ([207.195.177.82]:56067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXz1U-0002sg-Jf for 24208@debbugs.gnu.org; Thu, 11 Aug 2016 19:04:26 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=cochranmail.com; h=from:to :cc:subject:references:date:in-reply-to:message-id:mime-version :content-type; s=dkim1; bh=dEKU5trd+yQSzi34HFqYecE5nKc=; b=ZSHDB gvBgbp4PClcRntitH7K6SRAtUMfpuskoH/vcDdCrRgvRMIT5yGfvl4WD7ZtQy65x AQnmMCQ5yNAfiR/q4iWviIRgGcWqtl/QClf2uYNmbNxmTPk1yFnGTBs5tiwX87Pg WIUA4Obfo0R1B1vZJeuddox+qamCYDZ35/uooDxNo4U1Wcd53XeiwUF94nRDRc7y M2WydR+HrPLMJzbrRJOjnpewXd9lC8xTh/D3rtswoAVJYX8psXIXP5WEdNQuVDaP 91r7qr4acBheA+YrgQ4vS2HXkSt/mi1NfTF1yiQbTk8Cj4Mw13YnyLDClRj/ASoU EPU2Z+T9v+y6wHQvg== Original-Received: (qmail 26605 invoked by uid 0); 11 Aug 2016 23:04:21 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=private; d=cochranmail.com; b=EHExB58GXA5m1EzwAmcqVACJ25dfUYkJ+OQF7goJu3OTgkxK22WX7mDZp3T41PeOkaqlrPrP/pLf/Q7EiCGPQQ==; Original-Received: from 131-191-86-130.as.clicknet.org (HELO SoraLaptop) (robert@cochranmail.com@131.191.86.130) by mail.cochrantribe.org with ESMTPA; 11 Aug 2016 23:04:21 -0000 In-Reply-To: <20160811213919.GA9602@master> (Joe M.'s message of "Thu, 11 Aug 2016 14:39:19 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122116 Archived-At: Joe M writes: > Hello, > > I keep getting 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. It can get > annoying if the message keeps repeating at a certain interval. It seems that recentf isn't merely a variable, but an entire mode: > In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, X toolkit) > of 2016-03-05 on master > Windowing system distributor `The X.Org Foundation', version 11.0.11704000 > System Description: Gentoo Base System release 2.2 > > *snip* > > Minor modes in effect: > *snip* > recentf-mode: t > > *rest of information follows* Here's what it does, according to lisp/recentf.el > ;;; Commentary: > > ;; This package maintains a menu for visiting files that were operated > ;; on recently. When enabled a new "Open Recent" sub menu is > ;; displayed in the "File" menu. The recent files list is > ;; automatically saved across Emacs sessions. You can customize the > ;; number of recent files displayed, the location of the menu and > ;; others options (see the source code for details). > > ;; To enable this package, add the following to your .emacs: > ;; (recentf-mode 1) So if you didn't turn it on yourself explicitly and don't want the functionality, the obvious easy thing to do is figure out where the mode is being enabled in your init files and remove it. If you do want it enabled, well... I won't disagree that recentf.el should be taking more care to silence those writes... Those writes happen in `recent-save-list`, ultimately via `write-file`: > (write-file (expand-file-name recentf-save-file)) `write-file` does not appear to have any arguments that allow for silencing it. 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. Something you can do from your init file, since `recentf-load-list` is is a Lisp function, is to create some advice that will end up silencing it. I'm not really sure how to construct such advice, but likely you can find some suitable ones in a web search. HTH -- ~Robert Cochran GPG Fingerprint - E778 2DD4 FEA6 6A68 6F26 AD2D E5C3 EB36 4886 8871