GNU bug report logs -
#889
23.0.60; "Recover Crashed Session" is misleading
Previous Next
Reported by: Yary Hluchan <yary <at> apicom.com>
Date: Thu, 4 Sep 2008 16:35:05 UTC
Severity: wishlist
Tags: moreinfo, wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 889 in the body.
You can then email your comments to 889 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Yary Hluchan <yary <at> apicom.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
I'm running Emacs 23 on a laptop, and the laptop sometimes loses power.
That's not the problem.
When I boot and restart Emacs, I go to the File menu > "Recover Crashed
Session", it brings up a window like so:
Move to the session you want to recover,
then type C-c C-c to select it.
You can also delete some of these files;
type d on a line to mark that file for deletion.
c:/Documents and Settings/Stephen Edwards/Application Data/.emacs.d/auto-save-list:
wildcard .saves-*
total used in directory 5 available 21636216
-rw-rw-rw- 1 Yary None 778 09-02 16:13 .saves-360-POPNOTE~
-rw-rw-rw- 1 Yary None 382 08-15 09:21 .saves-1648-POPNOTE~
-rw-rw-rw- 1 Yary None 138 08-10 15:06 .saves-2560-POPNOTE~
...
I put the cursor on the first line (".saves-360-POPNOTE~") and hit
C-c C-C, and get this error in *Messages*:
No files can be recovered from this session now
That error happens for any of the .saves files
The contents of .saves-360-POPNOTE~:
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/process_files_new.php
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#process_files_new.php#
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/local_file.php
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#local_file.php#
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/filepath.php
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#filepath.php#
The files exist, the temp files do not exist- in this case, I had
saved all my work.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-09-03 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Dired by date
Minor modes in effect:
recentf-mode: t
partial-completion-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <file> <recover-session> <down>
<down> <up> <up> <return> C-x 2 C-x k <return> <help-echo>
<help-echo> <down-mouse-1> <mouse-2> <left> C-x o <left>
<left> <left> <left> <left> <left> C-c C-c <escape>
x r e p o <tab> r t - e m <tab> <return>
Recent messages:
File error: Cannot open load file, menuacc
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
For information about GNU Emacs and the GNU system, type C-h C-a.
call-interactively: Beginning of buffer
No files can be recovered from this session now
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Eli Zaretskii <eliz <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> Date: Thu, 04 Sep 2008 09:28:52 -0700
> From: Yary Hluchan <yary <at> apicom.com>
> Cc:
>
> The files exist, the temp files do not exist- in this case, I had
> saved all my work.
Please clarify: which of the files you mentioned in your report exist
and which don't.
Thanks.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Eli Zaretskii <eliz <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Yary Hluchan <yary <at> apicom.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
These files exist:
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/process_files_new.php
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/local_file.php
c:/Documents and Settings/Stephen Edwards/My Documents/programming projects/API/brocade/src/mantis-trunk/phase3/filepath.php
These files don't exist:
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#process_files_new.php#
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#local_file.php#
c:\Documents and Settings\Stephen Edwards\My Documents\programming projects\API\brocade\src\mantis-trunk\phase3\#filepath.php#
-y
~~~~~
The Moon is Waxing Crescent (32% of Full)
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Yary Hluchan <yary <at> apicom.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Severity set to `minor' from `normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 11 Dec 2008 22:55:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
(Thu, 18 Dec 2008 08:20:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
era+emacsbugs <at> iki.fi
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 18 Dec 2008 08:20:03 GMT)
Full text and
rfc822 format available.
Message #32 received at 889 <at> emacsbugs.donarmstrong.com (full text, mbox):
> No files can be recovered from this session now
<...>
> The files exist, the temp files do not exist- in this case, I had
> saved all my work.
I think this is basically a misunderstanding of what "recover-session"
does.
Emacs saves some state while you are editing. These are stored in the
temporary files you see in the .saves-* file. If you have unsaved
changes, recover-session can help you reclaim the unsaved data from the
temporary files into the proper files.
It does not "recover" your "session" back to the way it was before the
crash. (The package "desktop" does something like this, but you have to
invoke "desktop-save" explicitly in order to start it.)
The Info documentation for Emacs explains this fairly well.
http://www.gnu.org/software/emacs/manual/html_node/emacs/Recover.html
Granted, I think it would be a lot more useful if recover-session could
work in the way the reporter expected.
In the meantime, perhaps the docstring for recover-session should be
clarified.
I have a private bit of elisp I call "recover-buffers" but it's not on
the machine where I'm writing this. Remind me to follow up here with a
pointer to a public repository in a few weeks. Thanks.
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#889
; Package
emacs
.
(Wed, 14 Jan 2009 07:40:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
era+emacsbugs <at> iki.fi
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 14 Jan 2009 07:40:04 GMT)
Full text and
rfc822 format available.
Message #37 received at 889 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Mon, 12 Jan 2009 09:49:21 -0800, "Yary Hluchan" said:
> Here's your reminder!
Thanks.
I set up a public Darcs repo at
http://porkmail.org/elisp/recover-buffers
Darcs isn't invasive; you don't actually need Darcs to download it. In
fact you can just browse the code by visiting that URL.
This piggybacks on recover-session, and then just redefines the C-c C-c
keybinding to run recover-buffers-finish instead of
recover-session-finish. It does call recover-session-finish from inside
recover-buffers-finish, but then proceeds to visit all files from the
auto-save file.
The recover-buffers-skip-list feature probably isn't very useful; my
vague recollection is that my previous version had this feature because
recovering remote Tramp files used to be something I didn't want to
attempt, but these days Tramp is well-supported and I haven't come up
with any other scenario where I would actually still want this. So
perhaps it should just be obsoleted.
Hope this is useful for y'all,
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Wed, 06 Jul 2011 18:06:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 889 <at> debbugs.gnu.org (full text, mbox):
Yary Hluchan <yary <at> apicom.com> writes:
> I'm running Emacs 23 on a laptop, and the laptop sometimes loses power.
> That's not the problem.
>
> When I boot and restart Emacs, I go to the File menu > "Recover Crashed
> Session", it brings up a window like so:
>
> Move to the session you want to recover,
> then type C-c C-c to select it.
>
> You can also delete some of these files;
> type d on a line to mark that file for deletion.
>
> c:/Documents and Settings/Stephen Edwards/Application Data/.emacs.d/auto-save-list:
> wildcard .saves-*
> total used in directory 5 available 21636216
> -rw-rw-rw- 1 Yary None 778 09-02 16:13 .saves-360-POPNOTE~
> -rw-rw-rw- 1 Yary None 382 08-15 09:21 .saves-1648-POPNOTE~
> -rw-rw-rw- 1 Yary None 138 08-10 15:06 .saves-2560-POPNOTE~
> ...
>
> I put the cursor on the first line (".saves-360-POPNOTE~") and hit
> C-c C-C, and get this error in *Messages*:
>
> No files can be recovered from this session now
I'm unable to reproduce this bug in Emacs 24. If I have a ~/.saves-*
file, where some of the files are deleted, and some are not, `M-x
recover-session' correctly recovers the non-deleted files.
So either this bug has been fixed by now, or there's something in your
setup I'm now able to reproduce.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) unreproducible.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 06 Jul 2011 18:06:02 GMT)
Full text and
rfc822 format available.
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jul 2011 08:50:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
889 <at> debbugs.gnu.org and Yary Hluchan <yary <at> apicom.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jul 2011 08:50:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Sat, 06 Aug 2011 11:58:02 GMT)
Full text and
rfc822 format available.
Message #49 received at 889 <at> debbugs.gnu.org (full text, mbox):
reopen 889
thanks
[Resend -- attempted to reopen before, with a Cc: to Larsi.]
On Wed, 06 Jul 2011 20:05:18 +0200, Lars Magne Ingebrigtsen
<larsi <at> gnus.org> wrote:
> I'm unable to reproduce this bug in Emacs 24. If I have a ~/.saves-*
> file, where some of the files are deleted, and some are not, `M-x
> recover-session' correctly recovers the non-deleted files.
> So either this bug has been fixed by now, or there's something in your
> setup I'm now able to reproduce.
Larsi, I think you misunderstand the issue. My understanding is that this is a feature request: recover-session should recover your entire session after a crash, which it doesn't do, and never has done.
Reopening; obviously, feel free to reclose if I am mistaken (and / or there really is such functionality in Emacs24 now. Cursory review of the bzr head suggests that there isn't).
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 06 Aug 2011 11:58:02 GMT)
Full text and
rfc822 format available.
Removed tag(s) unreproducible and fixed.
Request was from
era+emacsbugs <at> iki.fi
to
control <at> debbugs.gnu.org
.
(Sat, 06 Aug 2011 16:57:04 GMT)
Full text and
rfc822 format available.
Changed bug title to '23.0.60; "Recover Crashed Session" doesn't recover editor' from '23.0.60; "Recover Crashed Session" fails "No files can be recovered"'
Request was from
era+emacsbugs <at> iki.fi
to
control <at> debbugs.gnu.org
.
(Sat, 06 Aug 2011 16:57:05 GMT)
Full text and
rfc822 format available.
Changed bug title to '23.0.60; "Recover Crashed Session" is misleading' from '23.0.60; "Recover Crashed Session" doesn't recover editor'
Request was from
"era eriksson" <era <at> iki.fi>
to
control <at> debbugs.gnu.org
.
(Sat, 06 Aug 2011 18:47:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Thu, 26 Feb 2015 07:30:02 GMT)
Full text and
rfc822 format available.
Message #60 received at 889 <at> debbugs.gnu.org (full text, mbox):
In case somebody still wants to take a look, the recover-buffers code is
now hosted on Github.
https://github.com/tripleee/recover-buffers
The current license is dual GPL/BSD but if you would like to consider
inclusion with Emacs, I'd be happy to change it.
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Sun, 20 Feb 2022 14:03:02 GMT)
Full text and
rfc822 format available.
Message #63 received at 889 <at> debbugs.gnu.org (full text, mbox):
"era eriksson" <era <at> iki.fi> writes:
> Larsi, I think you misunderstand the issue. My understanding is that
> this is a feature request: recover-session should recover your entire
> session after a crash, which it doesn't do, and never has done.
The function is defined to:
---
Recover auto save files from a previous Emacs session.
---
Which I think it does successfully?
> In case somebody still wants to take a look, the recover-buffers code is
> now hosted on Github.
>
> https://github.com/tripleee/recover-buffers
>
> The current license is dual GPL/BSD but if you would like to consider
> inclusion with Emacs, I'd be happy to change it.
If you want to restore the session from where you left off, I think the
recommended way to do that is to use the desktop package.
recover-session is more lightweight, and your proposed recover-buffers
(if I read the code correctly) sort of automates some bits of what
recover-session does?
I can't really remember much demand for something like this in Emacs,
since there are already other packages like desktop that's meant for
this, so I'm not sure it makes sense to add something like
recover-buffers to Emacs. Does anybody else have an opinion here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Feb 2022 14:03:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Mon, 21 Mar 2022 18:33:01 GMT)
Full text and
rfc822 format available.
Message #68 received at 889 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I can't really remember much demand for something like this in Emacs,
> since there are already other packages like desktop that's meant for
> this, so I'm not sure it makes sense to add something like
> recover-buffers to Emacs. Does anybody else have an opinion here?
Nobody had an opinion here in a month, so I'm closing this as a "wontfix".
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 21 Mar 2022 18:33:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
889 <at> debbugs.gnu.org and Yary Hluchan <yary <at> apicom.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 21 Mar 2022 18:33:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Tue, 22 Mar 2022 05:11:02 GMT)
Full text and
rfc822 format available.
Message #75 received at 889 <at> debbugs.gnu.org (full text, mbox):
On Mon, Mar 21, 2022, at 20:31, Lars Ingebrigtsen wrote:
> Nobody had an opinion here in a month, so I'm closing this as a "wontfix".
The actual bug report here is that the description of what "recover-buffers" does is vaguely wrong.
I reported it because I came across people who thought it was supposed to do more.
--
If this were a real .signature, it would suck less. Well, maybe not.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#889
; Package
emacs
.
(Tue, 22 Mar 2022 13:04:01 GMT)
Full text and
rfc822 format available.
Message #78 received at 889 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 22 Mar 2022 07:09:54 +0200
> From: era <era+emacs <at> iki.fi>
> Cc: 889 <at> debbugs.gnu.org
>
> On Mon, Mar 21, 2022, at 20:31, Lars Ingebrigtsen wrote:
> > Nobody had an opinion here in a month, so I'm closing this as a "wontfix".
>
> The actual bug report here is that the description of what "recover-buffers" does is vaguely wrong.
>
> I reported it because I came across people who thought it was supposed to do more.
The current doc string says:
Recover auto save files from a previous Emacs session.
This command first displays a Dired buffer showing you the
previous sessions that you could recover from.
To choose one, move point to the proper line and then type C-c C-c.
Then you’ll be asked about a number of files to recover.
This is quite descriptive, IMO, but if you can point out where are the
potentially confusing parts, maybe we could make it even better.
For example, if we reword the first sentence like this:
Recover your edits saved in auto-save files by previous Emacs sessions.
will the doc string be less confusing? Any other suggestions?
Thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 20 Apr 2022 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 238 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.