* message auto-saving?
@ 2016-03-24 8:21 Alan Schmitt
2016-03-24 9:51 ` Peter Münster
0 siblings, 1 reply; 13+ messages in thread
From: Alan Schmitt @ 2016-03-24 8:21 UTC (permalink / raw)
To: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 345 bytes --]
Hello,
I just had emacs crash, and I could recover almost all my files using
their last autosave, with one exception: the email I was writing. Do I
need to configure something to have emails being written autosaved?
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 8:21 message auto-saving? Alan Schmitt
@ 2016-03-24 9:51 ` Peter Münster
2016-03-24 10:18 ` Alan Schmitt
0 siblings, 1 reply; 13+ messages in thread
From: Peter Münster @ 2016-03-24 9:51 UTC (permalink / raw)
To: info-gnus-english
On Thu, Mar 24 2016, Alan Schmitt wrote:
> I just had emacs crash, and I could recover almost all my files using
> their last autosave, with one exception: the email I was writing.
It was not in ~/News/drafts/drafts ?
> Do I need to configure something to have emails being written
> autosaved?
You could decrease auto-save-timeout and/or auto-save-interval.
--
Peter
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 9:51 ` Peter Münster
@ 2016-03-24 10:18 ` Alan Schmitt
2016-03-24 11:39 ` Eric Abrahamsen
2016-03-24 14:01 ` Eric S Fraga
0 siblings, 2 replies; 13+ messages in thread
From: Alan Schmitt @ 2016-03-24 10:18 UTC (permalink / raw)
To: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 1167 bytes --]
On 2016-03-24 10:51, Peter Münster <pmlists@free.fr> writes:
> On Thu, Mar 24 2016, Alan Schmitt wrote:
>
>> I just had emacs crash, and I could recover almost all my files using
>> their last autosave, with one exception: the email I was writing.
>
> It was not in ~/News/drafts/drafts ?
No, there was nothing there. I just waited until I save the "autosave"
message for this current message, and I cannot find where this has been
saved … I also looked into ~/Mail/drafts, which is where
`message-auto-save-directory' points to, but it is not there. (The
docstring for that variable says that this is the buffer where messages
are saved if Gnus is not running, but I don't know where to look if Gnus
is running.)
Is there an equivalent of `message-auto-save-directory' for gnus?
>> Do I need to configure something to have emails being written
>> autosaved?
>
> You could decrease auto-save-timeout and/or auto-save-interval.
Yes, I'll do this once I can find where the messages are saved. Thank
you for the suggestion!
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 10:18 ` Alan Schmitt
@ 2016-03-24 11:39 ` Eric Abrahamsen
2016-03-24 13:38 ` Alan Schmitt
2016-03-24 14:01 ` Eric S Fraga
1 sibling, 1 reply; 13+ messages in thread
From: Eric Abrahamsen @ 2016-03-24 11:39 UTC (permalink / raw)
To: info-gnus-english
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> On 2016-03-24 10:51, Peter Münster <pmlists@free.fr> writes:
>
>> On Thu, Mar 24 2016, Alan Schmitt wrote:
>>
>>> I just had emacs crash, and I could recover almost all my files using
>>> their last autosave, with one exception: the email I was writing.
>>
>> It was not in ~/News/drafts/drafts ?
>
> No, there was nothing there. I just waited until I save the "autosave"
> message for this current message, and I cannot find where this has been
> saved … I also looked into ~/Mail/drafts, which is where
> `message-auto-save-directory' points to, but it is not there. (The
> docstring for that variable says that this is the buffer where messages
> are saved if Gnus is not running, but I don't know where to look if Gnus
> is running.)
>
> Is there an equivalent of `message-auto-save-directory' for gnus?
Take a look at the `gnus-home-directory' and `gnus-directory' variables.
I don't know why there are two of those. In my case, I've got this set:
(setq gnus-home-directory "~/.emacs.d")
And my drafts are therefore found under
"~/.emacs.d/News/drafts/drafts/".
Hope that's helpful.
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 11:39 ` Eric Abrahamsen
@ 2016-03-24 13:38 ` Alan Schmitt
0 siblings, 0 replies; 13+ messages in thread
From: Alan Schmitt @ 2016-03-24 13:38 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 795 bytes --]
On 2016-03-24 12:39, Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> Is there an equivalent of `message-auto-save-directory' for gnus?
>
> Take a look at the `gnus-home-directory' and `gnus-directory' variables.
> I don't know why there are two of those. In my case, I've got this set:
>
> (setq gnus-home-directory "~/.emacs.d")
>
> And my drafts are therefore found under
> "~/.emacs.d/News/drafts/drafts/".
>
> Hope that's helpful.
Thank you for the hint. Unfortunately they are respectively set to "~/"
and "~/News", but I cannot find any message there :(
I could try to debug auto-saving, but it seems to be in C code, so I
don't know how to proceed.
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 10:18 ` Alan Schmitt
2016-03-24 11:39 ` Eric Abrahamsen
@ 2016-03-24 14:01 ` Eric S Fraga
2016-03-24 14:46 ` Alan Schmitt
1 sibling, 1 reply; 13+ messages in thread
From: Eric S Fraga @ 2016-03-24 14:01 UTC (permalink / raw)
To: info-gnus-english
On Thursday, 24 Mar 2016 at 11:18, Alan Schmitt wrote:
> No, there was nothing there. I just waited until I save the "autosave"
> message for this current message, and I cannot find where this has been
> saved … I also looked into ~/Mail/drafts, which is where
Assuming you are using a unix variant, try the following
On shell:
$ cd
$ touch xxx (some file name that is unique)
Now start composing an email and wait for auto-save to kick in.
Back in shell:
$ find . -newer xxx
and see what it reports.
--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 25.0.92.1 + Ma Gnus v0.16 + evil-git-ff74cfb
: BBDB version 3.1.2 (2015-10-28 10:47:01+00:00)
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 14:01 ` Eric S Fraga
@ 2016-03-24 14:46 ` Alan Schmitt
2016-03-24 15:04 ` Eric Abrahamsen
2016-03-24 18:52 ` Emanuel Berg
0 siblings, 2 replies; 13+ messages in thread
From: Alan Schmitt @ 2016-03-24 14:46 UTC (permalink / raw)
To: Eric S Fraga; +Cc: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 879 bytes --]
Hello Eric,
On 2016-03-24 15:01, Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Thursday, 24 Mar 2016 at 11:18, Alan Schmitt wrote:
>> No, there was nothing there. I just waited until I save the "autosave"
>> message for this current message, and I cannot find where this has been
>> saved … I also looked into ~/Mail/drafts, which is where
>
> Assuming you are using a unix variant, try the following
>
> On shell:
> $ cd
> $ touch xxx (some file name that is unique)
>
> Now start composing an email and wait for auto-save to kick in.
>
> Back in shell:
>
> $ find . -newer xxx
>
> and see what it reports.
Great idea! I've found it. It's in ~/.emacs/.cache/auto-save/site. I
would never have thought to look there.
Thanks a lot!
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 14:46 ` Alan Schmitt
@ 2016-03-24 15:04 ` Eric Abrahamsen
2016-03-24 16:14 ` Eric S Fraga
2016-03-24 18:52 ` Emanuel Berg
1 sibling, 1 reply; 13+ messages in thread
From: Eric Abrahamsen @ 2016-03-24 15:04 UTC (permalink / raw)
To: info-gnus-english
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> Hello Eric,
>
> On 2016-03-24 15:01, Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> On Thursday, 24 Mar 2016 at 11:18, Alan Schmitt wrote:
>>> No, there was nothing there. I just waited until I save the "autosave"
>>> message for this current message, and I cannot find where this has been
>>> saved … I also looked into ~/Mail/drafts, which is where
>>
>> Assuming you are using a unix variant, try the following
>>
>> On shell:
>> $ cd
>> $ touch xxx (some file name that is unique)
>>
>> Now start composing an email and wait for auto-save to kick in.
>>
>> Back in shell:
>>
>> $ find . -newer xxx
>>
>> and see what it reports.
>
> Great idea! I've found it. It's in ~/.emacs/.cache/auto-save/site. I
> would never have thought to look there.
But more importantly, Gnus should know to look there!
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 15:04 ` Eric Abrahamsen
@ 2016-03-24 16:14 ` Eric S Fraga
2016-03-24 18:55 ` Emanuel Berg
0 siblings, 1 reply; 13+ messages in thread
From: Eric S Fraga @ 2016-03-24 16:14 UTC (permalink / raw)
To: info-gnus-english
On Thursday, 24 Mar 2016 at 23:04, Eric Abrahamsen wrote:
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
[...]
>> Great idea! I've found it. It's in ~/.emacs/.cache/auto-save/site. I
>> would never have thought to look there.
>
> But more importantly, Gnus should know to look there!
And what a strange place for auto-save files to end up? It's definitely
not a default that I can find on my system...
--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 25.0.92.1 + Ma Gnus v0.16 + evil-git-ff74cfb
: BBDB version 3.1.2 (2015-10-28 10:47:01+00:00)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 14:46 ` Alan Schmitt
2016-03-24 15:04 ` Eric Abrahamsen
@ 2016-03-24 18:52 ` Emanuel Berg
2016-03-25 8:01 ` Alan Schmitt
1 sibling, 1 reply; 13+ messages in thread
From: Emanuel Berg @ 2016-03-24 18:52 UTC (permalink / raw)
To: info-gnus-english
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>> Assuming you are using a unix variant, try the
>> following On shell: $ cd $ touch xxx (some file
>> name that is unique) Now start composing an email
>> and wait for auto-save to kick in. Back in shell: $
>> find . -newer xxx and see what it reports.
>
> Great idea!
Indeed, very impressive :)
> I've found it. It's in
> ~/.emacs/.cache/auto-save/site. I would never have
> thought to look there.
If you do `C-h a gnus directory RET' you get a couple
of Gnus directories to examine. Many, actually.
Is it `gnus-cache-directory', perhaps?
If you don't find it that way, do the search the
opposite direction, with `apropos-value' (I have that
`C-h V' but it isn't shortcutted by default).
Then enter the path or parts of it.
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 19 Blogomatic articles -
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 16:14 ` Eric S Fraga
@ 2016-03-24 18:55 ` Emanuel Berg
2016-03-25 7:56 ` Alan Schmitt
0 siblings, 1 reply; 13+ messages in thread
From: Emanuel Berg @ 2016-03-24 18:55 UTC (permalink / raw)
To: info-gnus-english
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>>> Great idea! I've found it. It's in
>>> ~/.emacs/.cache/auto-save/site. I would never have
>>> thought to look there.
>>
>> But more importantly, Gnus should know to
>> look there!
>
> And what a strange place for auto-save files to end
> up? It's definitely not a default that I can find on
> my system...
On my system, .emacs isn't even a directory but
a file.
To the OP: what system do you use? and did you
configure it? were you able to replicate this
situation using 'emacs -Q' or otherwise running it
with a minimum of inits?
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 19 Blogomatic articles -
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 18:55 ` Emanuel Berg
@ 2016-03-25 7:56 ` Alan Schmitt
0 siblings, 0 replies; 13+ messages in thread
From: Alan Schmitt @ 2016-03-25 7:56 UTC (permalink / raw)
To: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 1173 bytes --]
On 2016-03-24 19:55, Emanuel Berg <embe8573@student.uu.se> writes:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>>>> Great idea! I've found it. It's in
>>>> ~/.emacs/.cache/auto-save/site. I would never have
>>>> thought to look there.
>>>
>>> But more importantly, Gnus should know to
>>> look there!
>>
>> And what a strange place for auto-save files to end
>> up? It's definitely not a default that I can find on
>> my system...
>
> On my system, .emacs isn't even a directory but
> a file.
Sorry, I should had copied and pasted the path, instead of doing it by
hand. It's in .emacs.d/.cache/…
> To the OP: what system do you use? and did you
> configure it? were you able to replicate this
> situation using 'emacs -Q' or otherwise running it
> with a minimum of inits?
I guess this is the point where I admit I've been using Spacemacs for
the last few weeks. Looking at its code, I see that it is setting
`auto-save-list-file-prefix' to that place (with the exception of the
"site" suffix).
Thanks again to everyone,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: message auto-saving?
2016-03-24 18:52 ` Emanuel Berg
@ 2016-03-25 8:01 ` Alan Schmitt
0 siblings, 0 replies; 13+ messages in thread
From: Alan Schmitt @ 2016-03-25 8:01 UTC (permalink / raw)
To: info-gnus-english
[-- Attachment #1.1: Type: text/plain, Size: 730 bytes --]
On 2016-03-24 19:52, Emanuel Berg <embe8573@student.uu.se> writes:
> If you do `C-h a gnus directory RET' you get a couple
> of Gnus directories to examine. Many, actually.
>
> Is it `gnus-cache-directory', perhaps?
No, this points to ~/News/cache
> If you don't find it that way, do the search the
> opposite direction, with `apropos-value' (I have that
> `C-h V' but it isn't shortcutted by default).
> Then enter the path or parts of it.
Great tip, thanks! I think one variable on interest is
`auto-save-file-name-transforms' which transforms the auto saving path
to that one.
Thanks again,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-03-25 8:01 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-24 8:21 message auto-saving? Alan Schmitt
2016-03-24 9:51 ` Peter Münster
2016-03-24 10:18 ` Alan Schmitt
2016-03-24 11:39 ` Eric Abrahamsen
2016-03-24 13:38 ` Alan Schmitt
2016-03-24 14:01 ` Eric S Fraga
2016-03-24 14:46 ` Alan Schmitt
2016-03-24 15:04 ` Eric Abrahamsen
2016-03-24 16:14 ` Eric S Fraga
2016-03-24 18:55 ` Emanuel Berg
2016-03-25 7:56 ` Alan Schmitt
2016-03-24 18:52 ` Emanuel Berg
2016-03-25 8:01 ` Alan Schmitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).