|
From: | Stefan Monnier |
Subject: | Re: diary-redraw-calendar clobbers point in diary-file buffer. |
Date: | Tue, 08 Mar 2005 22:37:06 -0500 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Thanks - I put the save-excursion in redraw-calendar itself. > For some reason I though with-current-buffer would preserve point. with-current-buffer doesn't preserve point. But note that (save-excursion (set-buffer foo) ...) doesn't quite preserve point either: it preserves point in the "current" buffer but not in foo. So if preserving point is important, maybe (with-current-buffer foo (save-excursion ...)) may make sense (although it appears redundant). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |