all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nurullah Akkaya <nurullah.akkaya@blooby.com>
Cc: Emacs Help List <help-gnu-emacs@gnu.org>
Subject: Re: desktop-files-not-to-save ignored for tramp files
Date: Fri, 20 Feb 2009 18:18:32 +0200	[thread overview]
Message-ID: <a06f430f0902200818w1a7dd1a0g889f68994b3e5f4c@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0902200805y2867a237r15534806e12a82f2@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1469 bytes --]

On Fri, Feb 20, 2009 at 6:05 PM, Juanma Barranquero <lekktu@gmail.com>wrote:

> On Fri, Feb 20, 2009 at 16:09, Nurullah Akkaya
> <nurullah.akkaya@blooby.com> 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.
>
>    Juanma
>


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

-- 
Nurullah Akkaya
http://nakkaya.com

[-- Attachment #1.2: Type: text/html, Size: 2164 bytes --]

[-- Attachment #2: emacs.desktop --]
[-- Type: application/octet-stream, Size: 2420 bytes --]

;; -*- mode: emacs-lisp; coding: emacs-mule; -*-
;; --------------------------------------------------------------------------
;; Desktop File for Emacs
;; --------------------------------------------------------------------------
;; Created Fri Feb 20 18:11:52 2009
;; Desktop file format version 206
;; Emacs version 23.0.60.1

;; Global section:
(setq desktop-missing-file-warning nil)
(setq tags-file-name "/Users/nurullahakkaya/Projects/lacrone/trunk/TAGS")
(setq tags-table-list '("/Users/nurullahakkaya/Projects/lacrone/trunk/TAGS"))
(setq search-ring nil)
(setq regexp-search-ring nil)
(setq register-alist nil)

;; Buffer section -- buffers listed in same order as in buffer list:
(desktop-create-buffer 206
  nil
  "www"
  'dired-mode
  nil
  206
  '(nil nil)
  t
  '("/scp:nakkaya@nakkaya.com:/")
  nil)

(desktop-create-buffer 206
  "/Users/nurullahakkaya/.emacs.desktop"
  ".emacs.desktop"
  'emacs-lisp-mode
  '(abbrev-mode flyspell-mode)
  1
  '(nil nil)
  nil
  nil
  '((buffer-file-coding-system . emacs-mule-unix)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/Desktop/Book/book/HeadFirstDesignPatterns.pdf"
  "HeadFirstDesignPatterns.pdf"
  'doc-view-mode
  nil
  1
  '(nil nil)
  t
  nil
  '((buffer-file-coding-system . no-conversion)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/.emacs"
  ".emacs"
  'emacs-lisp-mode
  '(abbrev-mode flyspell-mode)
  16311
  '(16289 nil)
  nil
  nil
  '((buffer-file-coding-system . undecided-unix)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/.emacs.d/my-projects.el"
  "my-projects.el"
  'emacs-lisp-mode
  '(abbrev-mode flyspell-mode)
  442
  '(316 nil)
  nil
  nil
  '((buffer-file-coding-system . undecided-unix)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/Projects/mocha/trunk/mocha.java"
  "mocha.java"
  'java-mode
  '(abbrev-mode flyspell-mode)
  609
  '(623 nil)
  nil
  nil
  '((buffer-file-coding-system . undecided-unix)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/Projects/aristo/trunk/aristo/aristo.java"
  "aristo.java"
  'java-mode
  '(abbrev-mode flyspell-mode)
  689
  '(8857 nil)
  nil
  nil
  '((buffer-file-coding-system . undecided-unix)))

(desktop-create-buffer 206
  "/Users/nurullahakkaya/Projects/lacrone/trunk/com/lacrone/cluster/Manager.java"
  "Manager.java"
  'java-mode
  '(abbrev-mode flyspell-mode)
  1
  '(644 nil)
  nil
  nil
  '((buffer-file-coding-system . undecided-unix)))


  reply	other threads:[~2009-02-20 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 15:09 desktop-files-not-to-save ignored for tramp files Nurullah Akkaya
2009-02-20 16:05 ` Juanma Barranquero
2009-02-20 16:18   ` Nurullah Akkaya [this message]
2009-02-20 17:02     ` Peter Dyballa
2009-02-20 17:27 ` Thierry Volpiatto
2009-02-21 10:57   ` Michael Albinus
2009-02-21 11:10     ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a06f430f0902200818w1a7dd1a0g889f68994b3e5f4c@mail.gmail.com \
    --to=nurullah.akkaya@blooby.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.