GNU bug report logs -
#8862
compilation-window-height no good anymore
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Tue, 14 Jun 2011 15:04:01 UTC
Severity: normal
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #50 received at 8862 <at> debbugs.gnu.org (full text, mbox):
> AFAIK, `enlarge-window' did not signal an error when the size was too
> large, so I think it's best to keep being silent, for backward
> compatibility's sake.
OK. I'll use the maximum possible height for enlarging and
window-min-height/-width for shrinking. The only cases where I signal
an error are when the window is either fixed-size or the root window.
> Signalling an error is a good thing, wo while we shouldn't do it for
> enlarge-window for compatibility reasons, we should do it for the
> new functions like window-resize.
Good.
> Such changes to interactive behavior are much less problematic than
> changes in non-interactive functions, since the first might at worst
> surprise or disappoint the user, while the second can
> break functionality.
Agreed. I tend to discourage using `enlarge-window' in ELisp because it
only works on the selected window leading to things like compile.el's
;; Stef said that doing the saves in this order is safer:
(save-excursion
(save-selected-window
(select-window window)
(enlarge-window (- height (window-height))))))))
martin
This bug report was last modified 14 years and 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.