Tested on Linux 10.04 with current master and 3.3.2 release (28 May 2011).
Open Writer, Calc or ...
Create and save new document (does Save As...)
Check Recent Documents (not there)
Modify document and Save under same or new name.
Check Recent Documents (still not there)
Close app and reopen
Recent Documents shows the second version but not the first.
It appears that Recent is updated at close of app - after restart of app the Recent Documents will contain files open when app is closed but not any previous files that have been renamed with Save/Save As...
This may technically be an enhancement but users will expect the last saved doc on the top of the Recent Documents as in "What did I call that thing? I know I'll check Recent" -> urgh.
Tested only on Linux but don't anticipate any OS dependence here.
Tested only in Writer and Calc but I *think* this is a generic missing.
Likely missing in 3.4 as well.
Potentially an EasyHack.
I can confirm this bug both under 3.4.4 Final and 3.5.0 (Build ID: a286353-090bcba-3bf3b94) under Windows XP Pro x86 SP3
This problem can be quite annoying (even a show-stopper) for users that edit frequently the same documents.
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
An EasyHack should have been checked by developers and thus is confirmed regardless of age. Moving back to NEW from NEEDINFO again. Sorry for the hassle.
I'm investigating, and it seems to me that the current behavior is "by design". Whether that design is sensible is up for debate.
The current behavior is that a document is added to the "Recent Documents" list when it's closed (OApplicationController::disposing, line 437 in AppController.cxx: http://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/app/AppController.cxx). To walk through the repro scenario:
1. Create and save new document "A" -> Current document is "A".
2. Modify and "Save As" document "B" -> Current document is now "B". "A" was not closed, merely renamed.
3. Close Writer -> Document "B" closes, and writes itself to the "Recent Documents" list.
4. On startup, you only see "B", the document that closed.
I checked MS Word 2007's behavior, and it updates the list immediately on Open, Save, and Save As.
If the current LO behavior is indeed inappropriate, we can modify the all document loading/saving operations (Open, Save, Save As, Save All, etc.) handlers to also update the "Recent Documents" list.
Based on feedback on the developers mailing list, I'm working on updating the behavior of document saving/loading code to update the "Recent Documents" list.
Created attachment 56740 [details]
This patch will be posted for review on libreoffice-dev shortly. It updates the behavior so that we update "Recent Documents" on file open, save, save as, save to, save all, and close.
(In reply to comment #4)
> The current behavior is that a document is added to the "Recent Documents" list
> when it's closed (OApplicationController::disposing, line 437 in
Correction: While the behavior description is correct, the cause isn't. Adding a document to the recent documents list on document close happens in SfxPickList::Notify (sfx2/source/appl/sfxpicklist.cxx).
Created attachment 57016 [details]
Alternative patch (based on review feedback).
This patch removes the update on document open and adds logic to handle the "Save As" case so that the old and new documents are both added to the "Recent Documents" list.
Muhammad Haggag commited a patch related to this issue to "master":
fdo#37775: Recent Documents not updated by Save & Save As
I committed Muhammad's nice patch => fixed.
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":
Related fdo#37775: Update Recent Documents for r/o docs, too
Hey, that's great! This small issue was plaging OpenOffice and then LibreOffice for ages...
Wouldn't it be nice to also have hybrid PDFs included in the RecentFiles list? Please see: bug 39169 In my opinion, it is a nice idea.
Removed 'EasyHack' from Summary.
Migrating Whiteboard tags to Keywords: (EasyHack TopicUi )