From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: a small remember suggestion Date: Wed, 25 Mar 2009 09:22:40 +0100 Message-ID: References: <20524da70903211228o8ef4b21pc9a287ecd923383c@mail.gmail.com> <7bef1f890903211425p1b1329ebxd42b3d7c1a3a77d7@mail.gmail.com> <7bef1f890903211901g29bbc680r1547319ec608e942@mail.gmail.com> <6E22B50C-E9E2-4F09-96EE-19F6BE4C7ABD@uva.nl> <20524da70903232029k74017cdcj655821e98f1613fc@mail.gmail.com> <30CABB9F-A03C-479D-842F-E46382AA647A@uva.nl> <7bef1f890903240722u414bcc3fsfd09ea953e50ccc7@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmONx-0002JC-Iq for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:22:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmONs-0002IC-U8 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:22:53 -0400 Received: from [199.232.76.173] (port=53141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmONs-0002I5-MZ for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:22:48 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:56720) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmONs-0001DO-AJ for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:22:48 -0400 Received: by ewy4 with SMTP id 4so2858090ewy.42 for ; Wed, 25 Mar 2009 01:22:47 -0700 (PDT) In-Reply-To: <7bef1f890903240722u414bcc3fsfd09ea953e50ccc7@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Alan E. Davis" Cc: org-mode , Carsten Dominik I did look at this possibility, but then found it better to tag the backup files with dates. - Carsten On Mar 24, 2009, at 3:22 PM, Alan E. Davis wrote: > Wasn't going to say anything but at risk of sticking my foot in my > mouth: > > I learned that the convention for naming backups in Emacs is they > end in ~. Is it possible that if this is done, Emacs will > automatically use the mechanism that is available to keep a given > number of old versions and a given number of new versions? For > example, I have this in my .emacs: > > (setq kept-old-versions 2) > (setq kept-new-versions 4) > (setq delete-old-versions t) > > Alan Davis > > "An inviscid theory of flow renders the screw useless, but the need > for one non-existent." ---Lord Raleigh (John > William Strutt), or else his son, who was also a scientist. > > It is undesirable to believe a proposition when > there is no ground whatsoever for supposing it is true. > ---- Bertrand Russell > > > > > On Tue, Mar 24, 2009 at 9:29 PM, Carsten Dominik > wrote: > > On Mar 24, 2009, at 4:29 AM, Samuel Wales wrote: > > On Sun, Mar 22, 2009 at 08:16, Carsten Dominik > wrote: > I have now added a variable `org-remember-backup-directory'. > Set this to a directory, and every remember buffer > you create will end up in a separate file, with date > and time in the file name, so that you can always recover. > > That is perfect. Thank you. > > Note that, if you use remember frequently, you will create > a lot of these files. So maybe we need to think of an expiry > mechanism? Like, remove any files older than a few days? > > As one possibility, how about removing the file once the contents are > successfully moved to their target locations? > > Of course! I will do that. > > > > After that, > > (when (plusp number) > (message "you have %s saved remember files" number)) > > Hmmm. When should this happen? Not after a > successful remember process, I'd say..... > > - Carsten > > > > -- > Myalgic encephalomyelitis denialism is causing death (decades early; > Jason et al. 2006) and severe suffering (worse than nearly all other > diseases studied; e.g. Schweitzer et al. 1995) and grossly corrupting > science. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode