From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Crashing Emacs, Auto Save Data and org-mode Links Date: Sat, 19 Apr 2014 11:01:47 +0800 Message-ID: <877g6m3tus.fsf@ericabrahamsen.net> References: <87lhv278da.fsf@quasar.esben-stien.name> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1397876366 25909 80.91.229.3 (19 Apr 2014 02:59:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 02:59:26 +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 Apr 19 04:59:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WbLUt-0007H9-98 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Apr 2014 04:59:19 +0200 Original-Received: from localhost ([::1]:40706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbLUs-0002VI-RQ for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Apr 2014 22:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbLUd-0002Ha-Ex for help-gnu-emacs@gnu.org; Fri, 18 Apr 2014 22:59:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbLUX-0000Ef-74 for help-gnu-emacs@gnu.org; Fri, 18 Apr 2014 22:59:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbLUW-0000EY-Vk for help-gnu-emacs@gnu.org; Fri, 18 Apr 2014 22:58:57 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WbLUS-0006XP-Pj for help-gnu-emacs@gnu.org; Sat, 19 Apr 2014 04:58:52 +0200 Original-Received: from 123.123.18.230 ([123.123.18.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Apr 2014 04:58:52 +0200 Original-Received: from eric by 123.123.18.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Apr 2014 04:58:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.123.18.230 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:MppP9OJB6NUXXKEECHvzsaGpF4c= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97214 Archived-At: Esben Stien writes: > When emacs crashes, it leaves behind auto save files. This is all fine > and dandy. > > However, after you've started emacs after a crash and you hit an > org-mode link, org-mode opens all kinds of files from everywhere, really > fast, because it's looking for the ID of the org-mode link. > > The scanning actually opens the files and you are not really notified about > what files has been opened and what files needs a M-x > recover-this-file. > > You get a list in the *Messages* buffer and this list can be really long > if you've not saved your work. > > What is the proper procedure after a crash? > > Is there some way to scan directories for auto save files and somehow > clean up?; ie, to get a diff between the actual file and the auto save > file. Try `recover-session' -- my understanding is that a list of all valid auto save files is kept (in my case in ~/.emacs.d/auto-save-list), and when you come back up after a crash you can do a bulk recover with that command.