emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: desktop.el: autosave?


From: Reuben Thomas
Subject: Re: desktop.el: autosave?
Date: Mon, 3 Dec 2007 21:14:28 +0000 (GMT)
User-agent: Alpine 0.99999 (DEB 796 2007-11-08)

On Sat, 1 Dec 2007, Juri Linkov wrote:

I use in .emacs:

 (defun my-desktop-save ()
   (interactive)
   ;; `desktop-owner' is a new function in Emacs 22.1.50 to check
   ;; for conflicts between two running Emacs instances.
   ;; We don't want automatic saving in the second Emacs process.
   (if (and (fboundp 'desktop-owner) (eq (desktop-owner) (emacs-pid)))
       (desktop-save "~")))

Why did you not use desktop-save-in-desktop-dir?

I use stable Emacs so I won't get the benefit of desktop-owner, but thanks for writing it so I will automagically as soon as it exists in stable!

--
http://rrt.sc3d.org/ | The yak is slow but the earth is patient (LucasArts)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]