[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Customizing recentf-save-file doesn't work properly
From: |
Luc Van Eycken |
Subject: |
Customizing recentf-save-file doesn't work properly |
Date: |
Thu, 4 Aug 2005 10:46:56 +0200 |
When customizing both recentf-mode and recentf-save-file, the customized
value of recentf-save-file is not used for loading the list of recent files.
The bug can be repeated with the following scenario (delete any occurence
of ~/.custom-test.el and ~/.recentf first):
* start emacs with "emacs -Q"
* M-: (setq custom-file "~/.custom-test.el")
* customize option recentf-mode to "on" and save for future sessions
* customize option recentf-save-file to "~/.emacs.d/recentf" and save
for future sessions
* find a file (any file will do, e.g., "~/.emacs")
* exit emacs
* start emacs with "emacs -Q"
* M-: (load "~/.custom-test.el")
* look in the menu File > Open Recent and notice that No files are found
Work-around I use at this moment
* after loading the custom-file, manually reload the list
M-x recentf-load-list
and you'll find the files which were visited in the previous session
again on the File > Open Recent menu
Possible explanation:
In .custom-test.el options are saved in alphabetic order, so recentf-mode
is enabled and the list is loaded before the customized value of
recentf-save-file takes effect, so it uses the default .recentf instead
of the customized value.
Note: this bug is not present Emacs 21.4.
Best regards,
Luc Van Eycken
In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
of 2005-08-04 on THAMMUZ
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: C
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
recentf-mode: t
tool-bar-mode: t
encoded-kbd-mode: t
mouse-wheel-mode: t
tooltip-mode: t
auto-compression-mode: t
menu-bar-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
next-error-follow-minor-mode: Fol
Recent input:
M-: ( l o a d SPC " ~ / . c u s t o m - t e s t . e
l " ) <return> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> M-x r e c e n t f - l o <tab>
<return> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <help-menu> <report-emacs-b
ug>
Recent messages:
Loading tool-bar...done
Loading image...done
For information about the GNU Project and its goals, type C-h C-p.
Loading ~/.custom-test.el (source)...
Loading recentf...done
Cleaning up the recentf list...done (0 removed)
Loading ~/.custom-test.el (source)...done
t
Loading c:/veycken/.emacs.d/recentf...done
Loading emacsbug...done
- Customizing recentf-save-file doesn't work properly,
Luc Van Eycken <=