[Top][All Lists]
[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)
- Re: desktop.el: autosave?, (continued)
- Re: desktop.el: autosave?, Reuben Thomas, 2007/12/10
- Re: desktop.el: autosave?, Juri Linkov, 2007/12/10
- Re: desktop.el: autosave?, Reuben Thomas, 2007/12/10
- Re: desktop.el: autosave?, Richard Stallman, 2007/12/11
- Re: desktop.el: autosave?, Reuben Thomas, 2007/12/11
- Re: desktop.el: autosave?, Richard Stallman, 2007/12/12
- Re: desktop.el: autosave?, Juri Linkov, 2007/12/12
- Re: desktop.el: autosave?, Richard Stallman, 2007/12/14
- Re: desktop.el: autosave?, Stefan Monnier, 2007/12/06
- Re: desktop.el: autosave?, Richard Stallman, 2007/12/07
Re: desktop.el: autosave?,
Reuben Thomas <=