emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; Resizing may delete windows


From: martin rudalics
Subject: Re: 23.0.60; Resizing may delete windows
Date: Thu, 03 Apr 2008 16:43:40 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> I'm not sure I understand what you mean: window-min-(height|width) is
> a variable.  Where do you get your constants from?

The only constants in this context are MIN_SAFE_WINDOW_(HEIGHT|WIDTH).
window-min-(height|width) are variables the user can try to set.  If
they are less than MIN_SAFE_WINDOW_(HEIGHT|WIDTH) check_min_window_sizes
will reset them.  And, in window_min_size_2 I check them again to not
produce a new height or width that would omit the modeline or
scroll-bars if these shall be shown.

BTW, since I've been just looking at window.c from XEmacs.  They have

/* The smallest acceptable dimensions for a window.  Anything smaller
   might crash Emacs.  */
#define MIN_SAFE_WINDOW_WIDTH  (2)
#define MIN_SAFE_WINDOW_HEIGHT (2)

which, by virtue of brute force, would eliminate our problems as well.





reply via email to

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