Re: bbdb-check-auto-save-file is broken
On Sun Jan 1 2012 Roland Winkler wrote: On Fri Dec 30 2011 Roland Winkler wrote: If BBDB is using some hooks in the background, it can read and modify bbdb-file (using bbdb-buffer) without ever creating the *BBDB* buffer. So a solution could be to check for the auto-save file only when bbdb-file is actually read. Under normal circumstances, this should happen only once. I'll look into this. I wrote a patch that merges most of the code in bbdb-records with bbdb-buffer. I want to test it out before installing it. Roland -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-check-auto-save-file is broken
On Fri Dec 30 2011 Roland Winkler wrote: If BBDB is using some hooks in the background, it can read and modify bbdb-file (using bbdb-buffer) without ever creating the *BBDB* buffer. So a solution could be to check for the auto-save file only when bbdb-file is actually read. Under normal circumstances, this should happen only once. I'll look into this. Roland -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-check-auto-save-file is broken
On Fri Dec 30 2011 Sam Steingold wrote: * Roland Winkler jvax...@tah.bet [2011-12-30 04:06:39 -0600]: So a solution could be to check for the auto-save file only when bbdb-file is actually read. I think this is done automatically by emacs. If a file has auto-save data, emacs gives you a warning message such as ~/.bbdb has auto save data; consider M-x recover-this-file Nonetheless in such a case emacs allows you to read the file and even edit and save it. -- Yet I am wondering once more: how do you end up in such a situation (more regularly?) that emacs leaves behind the auto-save data? If you quit an emacs -Q, it will ask you whether you want to save any unsaved buffers. To the best of my knowledge, emacs must crash or you must kill it to leave behind auto-save data (or you explicitly say no when emacs is asking you to save a buffer). Roland -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-check-auto-save-file is broken
On Thu Dec 29 2011 Sam Steingold wrote: * Roland Winkler jvax...@tah.bet [2011-12-29 10:54:29 -0600]: I am still confused. Why is the current behavior not appropriate for your needs? If BBDB detects that you have an auto-save-file that is newer than bbdb-file, why is it not OK to save it and then go on? when you are editing a file, would you like to be asked to save it every few minutes? auto-save exists so that I can save when I am ready to save (note that / c is reset after each save!) not whenever I am about to hit space. Could it be a better solution to check if an auto-save file already exists when BBDB is about to create a new one so that there would be two auto-save files? -- Oops, that doesn't work either! BBDB will try to create the auto-save file if the db has already be modified. So that's too late. I want to think about this once more, what can be a better order of things. Roland -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-check-auto-save-file is broken
On Wed Dec 28 2011 Sam Steingold wrote: If I set bbdb-check-auto-save-file to t, modify the db and not save it right away, I am asked all the time about recovering bbdb from the auto save file. with v2, I was asked this only when bbdb was first loaded, which was useful. This is one of the old features of BBDB where it is not clear to me which problem they are supposed to address and what solution they are supposed to provide. Under what conditions do you have an auto-save file that is newer than your bbdb-file? In your opinion, what would be a meaningful thing to do here, and why? Roland -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-check-auto-save-file is broken
On Thu Dec 29 2011 Sam Steingold wrote: * Roland Winkler jvax...@tah.bet [2011-12-29 02:48:14 -0600]: On Wed Dec 28 2011 Sam Steingold wrote: If I set bbdb-check-auto-save-file to t, modify the db and not save it right away, I am asked all the time about recovering bbdb from the auto save file. with v2, I was asked this only when bbdb was first loaded, which was useful. This is one of the old features of BBDB where it is not clear to me which problem they are supposed to address and what solution they are supposed to provide. Under what conditions do you have an auto-save file that is newer than your bbdb-file? In your opinion, what would be a meaningful thing to do here, and why? The idea was that you modify the db as you read news and you might forget to save it when done reading the news/mail. That was raison d'etre for bbdb-offer-save which you removed - offer to save the db when done reading news/mail. I am still confused. Why is the current behavior not appropriate for your needs? If BBDB detects that you have an auto-save-file that is newer than bbdb-file, why is it not OK to save it and then go on? (When I read once more your first post above, it appears to me that then you were expecting something different from what you are expecting now. Apologies for my confusion!) Roland -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
bbdb-check-auto-save-file is broken
If I set bbdb-check-auto-save-file to t, modify the db and not save it right away, I am asked all the time about recovering bbdb from the auto save file. with v2, I was asked this only when bbdb was first loaded, which was useful. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://honestreporting.com http://memri.org http://iris.org.il http://jihadwatch.org http://palestinefacts.org http://thereligionofpeace.com C combines the power of assembler with the portability of assembler. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/