GNU bug report logs -
#3419
23.0.94; calc, calendar and temp-buffer-resize-mode
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Fri, 29 May 2009 19:10:04 UTC
Severity: normal
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 3419 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode.
>
> Or neither, and simply unexpected behavior.
> I've never used temp-buffer-resize-mode before, but if it's supposed to
> make a window a better size for displaying a temporary buffer, I'm
> surprised it doesn't change anything back when the buffer is killed or
> hidden.
Changing window sizes when `temp-buffer-resize-mode' exits is tricky.
That is, we could restore the window configuration that existed when
`temp-buffer-resize-mode' was started but that has the often unwanted
side-effect that other windows created (deleted) in the meantime get
deleted (resurrected).
> In this case, I'm not sure it's Calc's job to keep track of why
> it changed its window size. Perhaps an option "Always start Calc with
> the initial window height" might be helpful.
Calc could make its windows fixed-size but that's hardly reasonable with
the current handling of fixed-size windows. Any option affecting only
the initial size of Calc windows won't help in the present case either.
We could give Calc window parameters, say ideal-height and ideal-width,
and try to use these when exiting `temp-buffer-resize-mode' but writing
the corresponding code won't be trivial.
martin
This bug report was last modified 12 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.