>>>> "Steve" == Steve Youngs
<youngs(a)xemacs.org> writes:
Steve> Just a quick one...
Steve> What should I set to disable the creation of the '~/.saves-*'
files?
Steve> I tried setting 'auto-save-list-file-name' to nil, but that
didn't
Steve> work.
According to recover-session[1] setting auto-save-list-file-prefix to
nil should do the trick (untested).
Hope This Helps,
Adrian
Steve> --
Steve> |---<Regards, Steve Youngs>-----------[GnuPG KeyID: 59E4C4B2]---|
Steve> | XEmacs - It's not just an editor... |
Steve> | It's a way of life. |
Steve> |----------------------------------<mailto:youngsï¼ xemacs.org>---|
Footnotes:
[1] (defun recover-session ()
"Recover auto save files from a previous Emacs session.
This command first displays a Dired buffer showing you the
previous sessions that you could recover from.
To choose one, move point to the proper line and then type C-c C-c.
Then you'll be asked about a number of files to recover."
(interactive)
(unless (fboundp 'dired)
(error "recover-session requires dired"))
(if (null auto-save-list-file-prefix)
(error
"You set `auto-save-list-file-prefix' to disable making session
files"))
(dired (concat auto-save-list-file-prefix "*"))
(goto-char (point-min))
(or (looking-at "Move to the session you want to recover,")
(let ((inhibit-read-only t))
(insert "Move to the session you want to recover,\n"
"then type C-c C-c to select it.\n\n"
"You can also delete some of these files;\n"
"type d on a line to mark that file for deletion.\n\n")))
(use-local-map (let ((map (make-sparse-keymap)))
(set-keymap-parents map (list (current-local-map)))
map))
(define-key (current-local-map) "\C-c\C-c" 'recover-session-finish))
--
Adrian Aichner <adrian(a)xemacs.org>,
http://www.xemacs.org