From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: a small remember suggestion Date: Wed, 25 Mar 2009 00:22:31 +1000 Message-ID: <7bef1f890903240722u414bcc3fsfd09ea953e50ccc7@mail.gmail.com> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1600778235==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lm7Wo-0006BH-Gd for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:22:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lm7Wj-0006Ad-6k for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:22:53 -0400 Received: from [199.232.76.173] (port=51637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lm7Wj-0006Aa-4h for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:22:49 -0400 Received: from mail-qy0-f116.google.com ([209.85.221.116]:63486) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lm7Wi-0007rL-LJ for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:22:48 -0400 Received: by qyk14 with SMTP id 14so3230548qyk.14 for ; Tue, 24 Mar 2009 07:22:46 -0700 (PDT) In-Reply-To: <30CABB9F-A03C-479D-842F-E46382AA647A@uva.nl> 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: Carsten Dominik Cc: org-mode --===============1600778235== Content-Type: multipart/alternative; boundary=001636e0b5e3f00a6b0465de1def --001636e0b5e3f00a6b0465de1def Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 >> > > --001636e0b5e3f00a6b0465de1def Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Wasn't going to say anything but at risk of sticking my foot in my mout= h:

I learned that the convention for naming backups in Emacs is they= end in ~.=A0 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?=A0 For example, I have this in my .ema= cs:

(setq kept-old-versions 2)
(setq kept-new-versions 4)
(setq delet= e-old-versions t)

Alan Davis

"An inviscid theory of flow= renders the screw useless, but the need for one non-existent." =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ---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.
=A0 =A0 ---- Bertrand Russell
=



On Tue, Mar 24, 2009 at 9:29 PM, Carsten= Dominik <do= minik@science.uva.nl> wrote:

On Mar 24, 2009, at 4:29 AM, Samuel Wales wrote:

On Sun, Mar 22, 2009 at 08:16, Carsten Dominik <dominik@science.uva.nl> 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. =A0Thank you.

Note that, if you use remember frequently, you will create
a lot of these files. =A0So maybe we need to think of an expiry
mechanism? =A0Like, 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! =A0I will do that.



After that,

(when (plusp number)
=A0(message "you have %s saved remember files" number))

Hmmm. =A0 When should this happen? =A0Not 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. =A0http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.= htm


--001636e0b5e3f00a6b0465de1def-- --===============1600778235== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1600778235==--