emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diary-redraw-calendar clobbers point in diary-file buffer.


From: Matt Hodges
Subject: Re: diary-redraw-calendar clobbers point in diary-file buffer.
Date: Thu, 10 Mar 2005 10:43:26 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux)

>>>>> Glenn Morris writes:

 > > This save-excursion can't do anything meaningful to preserve
 > > point in the calendar buffer can it?

 > No, it's complete rubbish! As you and Stefan pointed (ahem) out,
 > I'm saving point in the calling buffer, not the calendar. Being
 > extra dim this week, sorry.

 > But I don't understand what's going on here.

 > The final calendar-cursor-to-visible-date in redraw-calendar should
 > mean that no saving of point is necessary (once the save-excursion
 > is deleted completely, that only messes things up).

As Johan Bockgård points out, "The buffer's point and the window's
point (cursor) aren't necessarily the same thing."

Anyway, I've briefly tested the attached patch (including your
calendar-redrawing stuff), and it seems OK, so far.

Thanks,

Matt

Attachment: txtmS73MlpNaL.txt
Description: calendar patch.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]