GNU bug report logs - #13870
recentf-save-file defaults to the wrong directory

Previous Next

Package: emacs;

Reported by: Josh <josh <at> foxtail.org>

Date: Mon, 4 Mar 2013 17:16:01 UTC

Severity: wishlist

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 13870-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Josh <josh <at> foxtail.org>
Cc: 13870-done <at> debbugs.gnu.org
Subject: Re: bug#13870: recentf-save-file defaults to the wrong directory
Date: Mon, 11 Mar 2013 16:37:49 -0400
> The defcustom form for `recentf-save-file' contains a standard value
> of (convert-standard-filename "~/.recentf"), but additional per-user
> Emacs-specific files should be stored under `user-emacs-directory'
> according to its docstring.

Indeed, thank you.  I installed the patch below which should fix it,


        Stefan


=== modified file 'lisp/recentf.el'
--- lisp/recentf.el	2013-01-01 09:11:05 +0000
+++ lisp/recentf.el	2013-03-11 20:34:39 +0000
@@ -69,7 +69,7 @@
   :group 'recentf
   :type 'integer)
 
-(defcustom recentf-save-file (convert-standard-filename "~/.recentf")
+(defcustom recentf-save-file (locate-user-emacs-file "recentf" ".recentf")
   "File to save the recent list into."
   :group 'recentf
   :type 'file





This bug report was last modified 12 years and 131 days ago.

Previous Next


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