Stephen J. Turnbull wrote:
Didier, please comment.
>>>>> "Reuben" == Reuben Thomas <rrt(a)sc3d.org> writes:
Reuben> But then if you customise the file in which to save the
Reuben> recent files list, it isn't found, because custom.el has
Reuben> not been loaded, so you start from scratch each time (the
Reuben> file is then saved with the correct name because the
Reuben> customisation has kicked in).
Known bug, too risky to fix in 21.4 (we've had one disastrous recent
bug in init file handling), probably (already? will be?) fixed in 21.5.
I think the following will work. Rename your custom file (eg, to
~/.xemacs/options.el). Put
(load "~/.xemacs/options.el")
(add-hook 'after-init-hook
(lambda ()
(setq custom-file (expand-file-name "~/.xemacs/options.el"))))
Yup. Note that in 21.5, the variable custom-file is defined when the
user init is read, so you can avoid using another file name with the following
trick:
(let ((real-custom-file custom-file))
(setq custom-file "nonsense")
(load real-custom-file)
(add-hook 'after-init-hook
`(lambda () (setq custom-file ,real-custom-file)))
)
--
Didier Verna, didier(a)lrde.epita.fr,
http://www.lrde.epita.fr/~didier
EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 53 14 59 47
94276 Le Kremlin-BicĂȘtre, France Fax.+33 (1) 53 14 59 22 didier(a)xemacs.org