From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: desktop mode, periodic save Date: Fri, 1 Feb 2008 08:07:35 -0800 (PST) Organization: http://groups.google.com Message-ID: <2a9e5387-06dd-4558-a858-5d0eb7ef7826@i29g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201945061 9762 80.91.229.12 (2 Feb 2008 09:37:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2008 09:37:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 02 10:38:02 2008 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 1JLEox-0003nI-MF for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Feb 2008 10:37:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLEoV-0007Qh-Qw for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Feb 2008 04:37:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 69.236.102.115 Original-X-Trace: posting.google.com 1201882055 1256 127.0.0.1 (1 Feb 2008 16:07:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 1 Feb 2008 16:07:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i29g2000prf.googlegroups.com; posting-host=69.236.102.115; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155785 X-Mailman-Approved-At: Sat, 02 Feb 2008 04:33:00 -0500 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:51168 Archived-At: I use desktop mode, so that in case of crashing (emacs or OS), i can know which files i was working on or needs to work on. However, by default, the desktop mode doesn't seems to save periodically, so that when OS crash, i lost the info about which files that was open or needs to work on. I'm doing this as a solution: (desktop-save-mode 1) (add-hook 'find-file-hook (lambda () (desktop-save "~/"))) Is there a variable that i should use instead? thx. Xah xah@xahlee.org =E2=88=91 http://xahlee.org/ =E2=98=84