From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: Re: desktop-files-not-to-save ignored for tramp files Date: Fri, 20 Feb 2009 18:18:32 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001636498c8f0ce6d104635c019c X-Trace: ger.gmane.org 1235146760 16372 80.91.229.12 (20 Feb 2009 16:19:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 16:19:20 +0000 (UTC) Cc: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 17:20:28 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LaY6y-0008W2-0X for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 17:20:25 +0100 Original-Received: from localhost ([127.0.0.1]:47326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaY5d-00059B-Ka for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 11:19:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaY5H-000596-8i for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:18:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaY5E-00058u-SZ for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:18:38 -0500 Original-Received: from [199.232.76.173] (port=55513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaY5E-00058r-Lv for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:18:36 -0500 Original-Received: from mail-bw0-f160.google.com ([209.85.218.160]:36962) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaY5D-0008Dt-WF for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:18:36 -0500 Original-Received: by bwz4 with SMTP id 4so2732003bwz.18 for ; Fri, 20 Feb 2009 08:18:35 -0800 (PST) Original-Received: by 10.181.52.14 with SMTP id e14mr334628bkk.47.1235146712606; Fri, 20 Feb 2009 08:18:32 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62230 Archived-At: --001636498c8f0ce6d104635c019c Content-Type: multipart/alternative; boundary=001636498c8f0ce6ca04635c019a --001636498c8f0ce6ca04635c019a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Feb 20, 2009 at 6:05 PM, Juanma Barranquero wrote: > On Fri, Feb 20, 2009 at 16:09, Nurullah Akkaya > 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 --001636498c8f0ce6ca04635c019a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Feb 20, 2009 at 6:05 PM, Juanma = Barranquero <lekkt= u@gmail.com> wrote:
On Fri, Feb 20, 2009 at 16:09, Nurullah Akkaya
<nurullah.akkaya@blooby.co= m> 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 "^/[^/:]*:&quo= t; 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 ma= ke
> 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 ab= ove 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 deskt= op file.

--
Nurullah Akkaya
http://nakkaya.com
--001636498c8f0ce6ca04635c019a-- --001636498c8f0ce6d104635c019c Content-Type: application/octet-stream; name="emacs.desktop" Content-Disposition: attachment; filename="emacs.desktop" Content-Transfer-Encoding: base64 X-Attachment-Id: f_frf2cqgb0 OzsgLSotIG1vZGU6IGVtYWNzLWxpc3A7IGNvZGluZzogZW1hY3MtbXVsZTsgLSotCjs7IC0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS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