* Crashing Emacs, Auto Save Data and org-mode Links
@ 2014-04-18 19:20 Esben Stien
2014-04-19 3:01 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Esben Stien @ 2014-04-18 19:20 UTC (permalink / raw)
To: help-gnu-emacs
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.
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Crashing Emacs, Auto Save Data and org-mode Links
2014-04-18 19:20 Crashing Emacs, Auto Save Data and org-mode Links Esben Stien
@ 2014-04-19 3:01 ` Eric Abrahamsen
2014-04-19 15:22 ` Esben Stien
0 siblings, 1 reply; 4+ messages in thread
From: Eric Abrahamsen @ 2014-04-19 3:01 UTC (permalink / raw)
To: help-gnu-emacs
Esben Stien <b0ef@esben-stien.name> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Crashing Emacs, Auto Save Data and org-mode Links
2014-04-19 3:01 ` Eric Abrahamsen
@ 2014-04-19 15:22 ` Esben Stien
2014-04-20 3:14 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Esben Stien @ 2014-04-19 15:22 UTC (permalink / raw)
To: help-gnu-emacs
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> 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.
I got that aswell:
-rw-r--r-- 1 b0ef leet 5277 2013-09-10 20:56:56.030306325 +0200 .saves-12704-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 29063 2014-04-18 20:51:54.100770587 +0200 .saves-13077-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 13671 2013-09-30 03:19:07.666046386 +0200 .saves-26893-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 208 2014-04-19 16:08:44.049977607 +0200 .saves-27060-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 606 2014-04-19 17:13:25.497603057 +0200 .saves-27517-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 152 2013-08-18 03:42:03.727005944 +0200 .saves-2859-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 9908 2014-03-18 10:26:47.128657746 +0100 .saves-31482-quasar.esben-stien.name~
-rw-r--r-- 1 b0ef leet 76 2013-08-18 04:38:22.834018391 +0200 .saves-4524-quasar.esben-stien.name~
If I cat them and run it through wc -l, I get 1200
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Crashing Emacs, Auto Save Data and org-mode Links
2014-04-19 15:22 ` Esben Stien
@ 2014-04-20 3:14 ` Eric Abrahamsen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2014-04-20 3:14 UTC (permalink / raw)
To: help-gnu-emacs
Esben Stien <b0ef@esben-stien.name> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> 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.
>
> I got that aswell:
>
> -rw-r--r-- 1 b0ef leet 5277 2013-09-10 20:56:56.030306325 +0200 .saves-12704-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 29063 2014-04-18 20:51:54.100770587 +0200 .saves-13077-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 13671 2013-09-30 03:19:07.666046386 +0200 .saves-26893-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 208 2014-04-19 16:08:44.049977607 +0200 .saves-27060-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 606 2014-04-19 17:13:25.497603057 +0200 .saves-27517-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 152 2013-08-18 03:42:03.727005944 +0200 .saves-2859-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 9908 2014-03-18 10:26:47.128657746 +0100 .saves-31482-quasar.esben-stien.name~
> -rw-r--r-- 1 b0ef leet 76 2013-08-18 04:38:22.834018391 +0200 .saves-4524-quasar.esben-stien.name~
>
> If I cat them and run it through wc -l, I get 1200
Well you only use the most recent one...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-20 3:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 19:20 Crashing Emacs, Auto Save Data and org-mode Links Esben Stien
2014-04-19 3:01 ` Eric Abrahamsen
2014-04-19 15:22 ` Esben Stien
2014-04-20 3:14 ` Eric Abrahamsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.