From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: desktop-files-not-to-save ignored for tramp files Date: Fri, 20 Feb 2009 17:05:59 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235146064 13638 80.91.229.12 (20 Feb 2009 16:07:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 16:07:44 +0000 (UTC) Cc: Emacs Help List To: Nurullah Akkaya Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 17:08:59 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 1LaXuj-0002Uy-VX for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 17:07:46 +0100 Original-Received: from localhost ([127.0.0.1]:36834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaXtP-0007Iq-No for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 11:06:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaXt5-0007IV-3x for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:06:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaXt3-0007IJ-K4 for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:06:02 -0500 Original-Received: from [199.232.76.173] (port=54394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaXt3-0007IG-HV for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:06:01 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.169]:61883) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaXt2-0005hF-Sv for help-gnu-emacs@gnu.org; Fri, 20 Feb 2009 11:06:01 -0500 Original-Received: by ug-out-1314.google.com with SMTP id b39so160710ugd.17 for ; Fri, 20 Feb 2009 08:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tVN06WMGP1WqHA1rRRXEOhO+GdcqZU84AOv42RT8fXI=; b=LSYI1rqXTfy3+RJfKoXj/aCdBnSILGbc++2fBcawuvOx9myxpoKrvCFsb0Ph6mqaD2 324/Fiqh4c6+/rDmWTgGA4b+1r7y0FFOfMnb0zPKjhqwEWrDUs1ujGnRqmRH8BWXhQ0l SkJbOwV/Z5QPA+scgceWx5Mfbrux20IeZQXrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=FibbnpcGDwuKgyZC7rfKVQO5TFyAD+LFH0EkzOF6p1MdEBRleVXlCtKODK+1gAULLa vez2JaxPNkxwvg7qftzBD4LBX3DpJM9RwPLsd/7eWWJHGncVODWqwfc4QBlVC9jZ+jh0 m3FwzgkCn0hBI3dsJf5i0EkFQp3sYlRo4XUik= Original-Received: by 10.210.66.13 with SMTP id o13mr752981eba.67.1235145959457; Fri, 20 Feb 2009 08:05:59 -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:62229 Archived-At: 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