From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark P Newsgroups: gmane.emacs.help Subject: simple question - temporarily disable autosave? Date: Mon, 24 Jan 2005 16:56:16 -0800 Organization: http://extra.newsguy.com Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106615907 27517 80.91.229.6 (25 Jan 2005 01:18:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2005 01:18:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 25 02:18:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CtFLS-0006q0-00 for ; Tue, 25 Jan 2005 02:18:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtFXh-0000BE-35 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jan 2005 20:30:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!pln-w!spln!rex!extra.newsguy.com!newsp.newsguy.com!enews3 Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: p-136.newsdawg.com User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:128109 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23603 My emacs client normally auto-saves on a regular basis. Here are the relevant bits from my .emacs that I'm sure I got from somewhere else: ;; auto-save stuff (setq auto-save-interval 100) (setq auto-save-timeout nil) (setq auto-save-list-file-prefix ".saves/") ;; backup version stuff (setq version-control t) (setq kept-old-versions 3) (setq kept-new-versions 5) (setq delete-old-versions t) The problem is when I'm in a read-only directory looking at a file and emacs flashes repeated warning that it's unable to auto-save. I assume I can M-x auto-save-mode to turn this off as needed, but is there any way to make it automatically do this when I don't have write permission? Better still, if I don't have write permission I'm not going to be modifying the file; maybe it can wait till I've made a change to the file before trying to auto-save? Thanks for your help!