[Top][All Lists]

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

Re: desktop-files-not-to-save ignored for tramp files

From: Nurullah Akkaya
Subject: Re: desktop-files-not-to-save ignored for tramp files
Date: Fri, 20 Feb 2009 18:18:32 +0200

On Fri, Feb 20, 2009 at 6:05 PM, Juanma Barranquero <address@hidden> wrote:
On Fri, Feb 20, 2009 at 16:09, Nurullah Akkaya
<address@hidden> wrote:

> I edit various files using tramp, i am on a slow connection thus want to
> avoid saving remote files while exiting.
> the default value for desktop-files-not-to-save is "^/[^/:]*:" when i check
> the regex using list buffers it does match tramp files
> but they are still saved when i exit emacs. is there another way to make
> desktop-mode skip tramp files?

Which version of Emacs are you using?
Are you using a single .emacs.desktop (perhaps in ~/), or
directory-specific ones?
Could you show us the contents of .emacs.desktop? (Assuming it does
not contain sensitive information, of course :-)

> i have the following in my .emacs for loading desktop.
> ;;destop mode
> (load "desktop")
> (desktop-load-default)
> ;(desktop-read)
> ;; automatically save the desktop on exit.
> (setq desktop-enable t)

If you're using Emacs 22.1 or newer, you could replace all the above with:

;; desktop mode
(desktop-save-mode 1)

> ;;save where we left cursor in file on kill
> (require 'saveplace)
> (setq-default save-place t)

This is, at least in theory, unrelated.


i am using emacs on OS X.
i am using a single .emacs.desktop file under ~/
i have attached the desktop file.

Nurullah Akkaya

Attachment: emacs.desktop
Description: Binary data

reply via email to

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