auto save and recovery

View: New views
5 Messages — Rating Filter:   Alert me  

auto save and recovery

by Neil Best :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to understand why Aquamacs' behavior seems to be different  
than that of emacs on Linux that I am used to with respect to auto-
save and recovery of open files.  Last night my Mac locked up and I  
had to do a hard reboot.  When I go to M-x recover-this-file on  
something that was open when the system went down and had some unsaved  
changes I get "Auto-save file /var/folders/3u/3uyC1V0LEBahCJn84YT3tE++
+TI/-Tmp-/#!Users!nbest!org!gtd.org# not current" and the named file  
does not contain any of the recent changes that I expected to be able  
to recover.  The default settings in the "Auto Save" group look  
reasonable except for the random-looking destination folder under /var  
-- I am used to the #filename# files appearing in the same directory  
as the original files on Linux.  How could the auto-save file not be  
current?  This seems like a bug to me but maybe I am missing  
something.  Any advice?  I lost some important notes in this  
episode.  :(



In GNU Emacs 22.3.1 (i386-apple-darwin9.8.0, Carbon Version 1.6.0)
  of 2009-09-29 on braeburn.aquamacs.org - Aquamacs Distribution 1.9
Windowing system distributor `Apple Inc.', version 10.5.8
configured using `configure  '--without-x' '--prefix=/usr/local'  
'CFLAGS=-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -g -O9 -mtune=nocona -
pipe -fomit-frame-pointer''

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: nil
   locale-coding-system: iso-8859-1
   default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
   shell-dirtrack-mode: t
   savehist-mode: t
   smart-frame-positioning-mode: t
   aquamacs-autoface-mode: t
   global-visual-line-mode: t
   visual-line-mode: t
   recentf-mode: t
   encoded-kbd-mode: t
   osx-key-mode: t
   show-paren-mode: t
   delete-selection-mode: t
   pc-selection-mode: t
   cua-mode: t
   tooltip-mode: t
   tool-bar-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
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t
   auto-fill-mode: t

Recent input:
C-x C-f o r g <tab> g t d <tab> <return> <up> <up>
<tab> <up> <tab> <tab> <down> <down> <up> <down> <tab>
<up> <tab> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> M-x r e c
o v e <tab> t h <tab> <return> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <tab> <down> <down> <tab> <tab>
<up> <up> <tab> <next> <prior> <help-echo> C-x b *
M <tab> <return> <down-mouse-1> <mouse-movement> <mouse-movement>
<drag-mouse-1> A-c C-x C-f <backspace> <backspace>
C-y <return> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> M-< <next> <next>
<next> <next> C-x C-f C-a C-k ~ / g t d <backspace>
<backspace> <backspace> o r g <tab> <backspace> <return>
<help-echo> <help-echo> <menu-bar> <help-menu> <bug-diagnosis>
<send-emacs-bug-report>

Recent messages:
Truncate long lines disabled
Mark set
FOLDED
CHILDREN [3 times]
ad-Orig-error: Auto-save file /var/folders/3u/3uyC1V0LEBahCJn84YT3tE++
+TI/-Tmp-/#!Users!nbest!org!gtd.org# not current
CHILDREN
SUBTREE (NO CHILDREN)
FOLDED [2 times]
Auto-saving...done
Mark set

Command line: (/Applications/Aquamacs Emacs.app/Contents/MacOS/
Aquamacs Emacs)

PATH: /opt/local/bin:/Users/nbest/bin:/opt/local/var/macports/software/
gdal/1.5.1_1+framework+postgresql83+sqlite3/Library/Frameworks/
GDAL.framework/Versions/1.5/Programs:/opt/local/lib/postgresql83/bin/:/
opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/
bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin

exec-path: (/Users/nbest/bin /opt/local/var/macports/software/gdal/
1.5.1_1+framework+postgresql83+sqlite3/Library/Frameworks/
GDAL.framework/Versions/1.5/Programs /opt/local/lib/postgresql83/bin/ /
opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /usr/local/
bin /usr/X11/bin /usr/bin /bin /usr/sbin /sbin /Applications/Aquamacs  
Emacs.app/Contents/MacOS/libexec /Applications/Aquamacs Emacs.app/
Contents/MacOS/bin /usr/texbin)
_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

Re: auto save and recovery

by David Reitter-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Neil,
the path is correct, since it would be bad behavior to leave extra  
files in the same directory (which do not get hidden on the Mac).
However, I'm not sure why it isn't "current", or what this means - the  
machinery for this is exactly the same as on GNU/Linux.  Auto-saves  
are made in more or less regular intervals - could it be that the file  
is simply a few minutes too old?

- David


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!


On Oct 14, 2009, at 1:12 PM, Neil Best wrote:

> I am trying to understand why Aquamacs' behavior seems to be  
> different than that of emacs on Linux that I am used to with respect  
> to auto-save and recovery of open files.  Last night my Mac locked  
> up and I had to do a hard reboot.  When I go to M-x recover-this-
> file on something that was open when the system went down and had  
> some unsaved changes I get "Auto-save file /var/folders/3u/
> 3uyC1V0LEBahCJn84YT3tE+++TI/-Tmp-/#!Users!nbest!org!gtd.org# not  
> current" and the named file does not contain any of the recent  
> changes that I expected to be able to recover.  The default settings  
> in the "Auto Save" group look reasonable except for the random-
> looking destination folder under /var -- I am used to the #filename#  
> files appearing in the same directory as the original files on  
> Linux.  How could the auto-save file not be current?  This seems  
> like a bug to me but maybe I am missing something.  Any advice?  I  
> lost some important notes in this episode.  :(
>
>
>
> In GNU Emacs 22.3.1 (i386-apple-darwin9.8.0, Carbon Version 1.6.0)
> of 2009-09-29 on braeburn.aquamacs.org - Aquamacs Distribution 1.9
> Windowing system distributor `Apple Inc.', version 10.5.8
> configured using `configure  '--without-x' '--prefix=/usr/local'  
> 'CFLAGS=-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -g -O9 -mtune=nocona -
> pipe -fomit-frame-pointer''
>
> 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: nil
>  locale-coding-system: iso-8859-1
>  default-enable-multibyte-characters: t
>
> Major mode: Dired by name
>
> Minor modes in effect:
>  shell-dirtrack-mode: t
>  savehist-mode: t
>  smart-frame-positioning-mode: t
>  aquamacs-autoface-mode: t
>  global-visual-line-mode: t
>  visual-line-mode: t
>  recentf-mode: t
>  encoded-kbd-mode: t
>  osx-key-mode: t
>  show-paren-mode: t
>  delete-selection-mode: t
>  pc-selection-mode: t
>  cua-mode: t
>  tooltip-mode: t
>  tool-bar-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
>  unify-8859-on-encoding-mode: t
>  utf-translate-cjk-mode: t
>  auto-compression-mode: t
>  column-number-mode: t
>  line-number-mode: t
>  transient-mark-mode: t
>  auto-fill-mode: t
>
> Recent input:
> C-x C-f o r g <tab> g t d <tab> <return> <up> <up>
> <tab> <up> <tab> <tab> <down> <down> <up> <down> <tab>
> <up> <tab> <down> <down> <down> <down> <down> <down>
> <down> <down> <down> <down> <down> <down> <down> <down>
> <down> <down> <down> <down> <down> <down> <down> <down>
> <down> <down> <down> <down> <down> <down> M-x r e c
> o v e <tab> t h <tab> <return> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <tab> <down> <down> <tab> <tab>
> <up> <up> <tab> <next> <prior> <help-echo> C-x b *
> M <tab> <return> <down-mouse-1> <mouse-movement> <mouse-movement>
> <drag-mouse-1> A-c C-x C-f <backspace> <backspace>
> C-y <return> <next> <next> <next> <next> <next> <next>
> <next> <next> <next> <next> <next> M-< <next> <next>
> <next> <next> C-x C-f C-a C-k ~ / g t d <backspace>
> <backspace> <backspace> o r g <tab> <backspace> <return>
> <help-echo> <help-echo> <menu-bar> <help-menu> <bug-diagnosis>
> <send-emacs-bug-report>
>
> Recent messages:
> Truncate long lines disabled
> Mark set
> FOLDED
> CHILDREN [3 times]
> ad-Orig-error: Auto-save file /var/folders/3u/3uyC1V0LEBahCJn84YT3tE+
> ++TI/-Tmp-/#!Users!nbest!org!gtd.org# not current
> CHILDREN
> SUBTREE (NO CHILDREN)
> FOLDED [2 times]
> Auto-saving...done
> Mark set
>
> Command line: (/Applications/Aquamacs Emacs.app/Contents/MacOS/
> Aquamacs Emacs)
>
> PATH: /opt/local/bin:/Users/nbest/bin:/opt/local/var/macports/
> software/gdal/1.5.1_1+framework+postgresql83+sqlite3/Library/
> Frameworks/GDAL.framework/Versions/1.5/Programs:/opt/local/lib/
> postgresql83/bin/:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/
> sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/
> sbin:/usr/texbin
>
> exec-path: (/Users/nbest/bin /opt/local/var/macports/software/gdal/
> 1.5.1_1+framework+postgresql83+sqlite3/Library/Frameworks/
> GDAL.framework/Versions/1.5/Programs /opt/local/lib/postgresql83/
> bin/ /opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /
> usr/local/bin /usr/X11/bin /usr/bin /bin /usr/sbin /sbin /
> Applications/Aquamacs Emacs.app/Contents/MacOS/libexec /Applications/
> Aquamacs Emacs.app/Contents/MacOS/bin /usr/texbin)
> _______________________________________________
> Aquamacs-bugs mailing list
> Aquamacs-bugs@...
> http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

Re: auto save and recovery

by Neil Best :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 19, 2009, at 2:49 PM, David Reitter wrote:

> could it be that the file is simply a few minutes too old?


I haven't been able to figure that out.  Aquamacs refuses to load the  
auto-save file and when I inspect its contents I don't see the changes  
since my last save.  My first hypothesis was that these files don't  
survive a system reboot, but I was thinking of them as if they were  
in /tmp.  Now I look at an auto-save file when I don't need it and  
recent chancges appear there as expected, but when I need the feature  
to work it fails.  Am I they only one experiencing this?  Thanks for  
taking a look.


_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

Re: auto save and recovery

by David Reitter-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 19, 2009, at 4:03 PM, Neil Best wrote:
> I haven't been able to figure that out.  Aquamacs refuses to load  
> the auto-save file and when I inspect its contents I don't see the  
> changes since my last save.  My first hypothesis was that these  
> files don't survive a system reboot, but I was thinking of them as  
> if they were in /tmp.  Now I look at an auto-save file when I don't  
> need it and recent chancges appear there as expected, but when I  
> need the feature to work it fails.  Am I they only one experiencing  
> this?  Thanks for taking a look.

What was the nature of your shut-down?
Do you have journaling enabled for the boot volume (see Disk Utility)?


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!
_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

Re: auto save and recovery

by davidswelt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 19, 2009, at 4:03 PM, Neil Best wrote:
> I haven't been able to figure that out.  Aquamacs refuses to load  
> the auto-save file and when I inspect its contents I don't see the  
> changes since my last save.  My first hypothesis was that these  
> files don't survive a system reboot, but I was thinking of them as  
> if they were in /tmp.  Now I look at an auto-save file when I don't  
> need it and recent chancges appear there as expected, but when I  
> need the feature to work it fails.  Am I they only one experiencing  
> this?  Thanks for taking a look.

What was the nature of your shut-down?
Do you have journaling enabled for the boot volume (see Disk Utility)?


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!
_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs