Re: How do I remember not to exit from the remember buffer ?

Marco Gidde <[email protected]> Wed, 24 May 2006 13:27:28 +0200
Newsgroups gmane.emacs.wiki.general
Organization Linux Private Site
Message-ID <[email protected]>
Hello Tim,

"Tim T." <[email protected]> writes:

> Ok, fanciful title, but the problem is real..
>
> I have lost some notes over the past few days, because at the end of the day,
> I simply type ^X^C to exit from
> my current emacs session. This will prompt me to save all open files, but for
> some reason, the remember
> buffer I have open at that time is not included in the list...

Probably it has no associated file to save.

> How do I get emacs to remind me of the remember buffer ?


You might add a function to kill-emacs-query-functions.

> Documentation:
> Functions to call with no arguments to query about killing Emacs.
> If any of these functions returns nil, killing Emacs is cancelled.
> `save-buffers-kill-emacs' (C-x C-c) calls these functions,
> but `kill-emacs', the low level primitive, does not.
> See also `kill-emacs-hook'.

> Defined in `files'.

Your function should scan the buffer list and identify remeber
buffers. I think remember uses its own mode, so this should be quite
easy.


Regards,

Marco