Subject: Re: bug#6999: 23.2; [PATCH] appt ignores included diary files

From: Stefan Monnier <[email-masked]>
Date: Wed, 08 Sep 2010 16:38:42 +0200

> Annoyingly appt-check pops up the main diary buffer. So maybe do this
> instead:
[...]
> -         (appt-check t)))
> +         (save-window-excursion (appt-check t))))

Not good enough: the buffer might have popped up in a new frame, in
which case save-window-excursion won't be of any help.

Basically, you can't undo a "pop up a buffer", so the code should be
written in such a way that it's only done when it's *really* necessary.

        Stefan