From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: is there a hook to save a remember buffer? Date: Thu, 10 Sep 2009 06:17:02 +1000 Message-ID: <7bef1f890909091317o776a1080s1cc95fe9b8fdc767@mail.gmail.com> References: <7bef1f890909082242s54f61dc1n6fd18a6bc12466ee@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0738115753==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlTbd-00033X-PA for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 16:17:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlTbZ-00032R-3s for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 16:17:29 -0400 Received: from [199.232.76.173] (port=38590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlTbZ-00032O-0P for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 16:17:25 -0400 Received: from mail-iw0-f198.google.com ([209.85.223.198]:63617) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlTbY-0005nf-KS for emacs-orgmode@gnu.org; Wed, 09 Sep 2009 16:17:24 -0400 Received: by iwn36 with SMTP id 36so69726iwn.24 for ; Wed, 09 Sep 2009 13:17:23 -0700 (PDT) In-Reply-To: <7bef1f890909082242s54f61dc1n6fd18a6bc12466ee@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: org-mode --===============0738115753== Content-Type: multipart/alternative; boundary=00151774096453f27a04732ac591 --00151774096453f27a04732ac591 Content-Type: text/plain; charset=ISO-8859-1 I've looked briefly into the org-remember.el. A hook exists: remember-mode-hook. Im not sure it can be successfully applied to the case I envision. THere are tradeoffs to immediately saving a remember buffer to a file, and editing a note in the remember buffer, then saving with remember-finalize. I don't remember what they are, as they led me away from immediately saving quite a while ago. I was strongly encouraged by the establishment of a procedure to automatically save to a directory, any remember buffer that was not finallized. I had some issues with it, including how clunky it was to recover, and it was broken at some point, when I was too busy to fix it. One problem with editing in the Remember buffer, then saving later, is forgetting where I am. I can rely on several remember templates, and too often have lost the remember buffer's contents, when I ran remember again. What I propose is the make it possible---optionally---to invoke a hook to save existing remember buffers when C-c C-r (X) is used to file a remember note while in the remember buffer already. I found a test "bufferp". It does not seem to recognize the buffer name "Remember", nor "*Remember*". Is it possible to do this, or is remember going to defeat this? Alan Davis You can know the name of a bird in all the languages of the world, but when you're finished, you'll know absolutely nothing whatever about the bird... So let's look at the bird and see what it's doing---that's what counts. ----Richard Feynman On Wed, Sep 9, 2009 at 3:42 PM, Alan E. Davis wrote: > Is there a hook to save the remember buffer when I type C-c C-r when I'm in > an unsaved remember buffer? That would be almost as good, perhaps better, > than saving the remember buffer to a special file or directory. > > > Alan > > You can know the name of a bird in all the languages of the world, but > when you're finished, you'll know absolutely nothing whatever about the > bird... So let's look at the bird and see what it's doing---that's what > counts. > > ----Richard Feynman > > --00151774096453f27a04732ac591 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've looked briefly into the org-remember.el.=A0 A hook exists: rememb= er-mode-hook.=A0 Im not sure it can be successfully applied to the case I e= nvision.

THere are tradeoffs to immediately saving a remember buffer= to a file, and editing a note in the remember buffer, then saving with=A0 = remember-finalize.=A0 I don't remember what they are, as they led me aw= ay from immediately saving quite a while ago. I was strongly encouraged by = the establishment of a procedure to automatically save to a directory, any = remember buffer that was not finallized.=A0 I had some issues with it, incl= uding how clunky it was to recover, and it was broken at some point, when I= was too busy to fix it.

One problem with editing in the Remember buffer, then saving later, is = forgetting where I am.=A0 I can rely on several remember templates, and too= often have lost the remember buffer's contents, when I ran remember ag= ain.=A0

What I propose is the make it possible---optionally---to invoke a hook = to save existing remember buffers when C-c C-r (X) is used to file a rememb= er note while in the remember buffer already.=A0

I found a test &qu= ot;bufferp".=A0 It does not seem to recognize the buffer name "Re= member", nor "*Remember*".=A0

Is it possible to do this, or is remember going to defeat this?

=
Alan Davis

You can know the name of a bird in all = the languages of the world, =A0but when you're finished, you'll kno= w absolutely nothing whatever about the bird... So let's look at the bi= rd and see what it's doing---that's what counts.

=A0 =A0----Richard Feynman
=A0 =A0 =A0 =A0


On Wed, Sep 9, 2009 at 3:42 PM, Alan E. = Davis <lngndvs@gm= ail.com> wrote:
Is there a hook to save the remember buffer when I type C-c C-r when I'= m in an unsaved remember buffer?=A0 That would be almost as good, perhaps b= etter, than saving the remember buffer to a special file or directory.=A0 <= br>

Alan=A0

You can know the name of a bird in al= l the languages of the world, =A0but when you're finished, you'll k= now absolutely nothing whatever about the bird... So let's look at the = bird and see what it's doing---that's what counts.

=A0 =A0----Richard Feynman
=A0 =A0 =A0 =A0

--00151774096453f27a04732ac591-- --===============0738115753== 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 --===============0738115753==--