From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Tue, 29 Jun 2010 14:16:09 +0200 Message-ID: <4C29E409.4060608@gmx.at> References: <4BB4CF6B.2000007@alice.it> <4BC0B692.2000702@alice.it> <4BC0BD6D.3060103@swipnet.se> <4BC0F715.2060605@alice.it> <45EB8DD4-B0F8-4FB3-941F-13FADA4DAD66@swipnet.se> <4BC1854B.2060409@alice.it> <4BC1A9D2.8050607@swipnet.se> <4BC206C0.2010202@alice.it> <87fx2pdvfq.fsf@mail.jurta.org> <87y6gg95ad.fsf@mail.jurta.org> <750140A47B7D4FBD93371813D65478F8@us.oracle.com> <87eii63v4j.fsf@mail.jurta.org> <0840B3F4D9E84706874EDD2CA2CC4236@us.oracle.com> <87vdbhgqgd.fsf@mail.jurta.org> <828BB36311A84C43B96D1F2A559DACAE@us.oracle.com> <87d3xo662u.fsf@mail.jurta.org> <69D40D69CC6F4982A8E91D8D8F0F494F@us.oracle.com> <87r5m4hz39.fsf@mail.jurta.org> <4BD40821.70808@gmx.at> <87zl0rtmqy.fsf@mail.jurta.org> <4C29B675.9000500@gmx.at> <87iq52p4hn.fsf@mail.jurta.org> <4C29C48C.8070205@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277813792 7048 80.91.229.12 (29 Jun 2010 12:16:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 12:16:32 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 29 14:16:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTZjo-0005Bp-Mn for ged-emacs-devel@m.gmane.org; Tue, 29 Jun 2010 14:16:29 +0200 Original-Received: from localhost ([127.0.0.1]:45398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTZjm-0003kV-Po for ged-emacs-devel@m.gmane.org; Tue, 29 Jun 2010 08:16:26 -0400 Original-Received: from [140.186.70.92] (port=40255 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTZjc-0003j7-Bs for emacs-devel@gnu.org; Tue, 29 Jun 2010 08:16:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTZjb-0001uP-6x for emacs-devel@gnu.org; Tue, 29 Jun 2010 08:16:16 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:34413) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OTZja-0001uC-QE for emacs-devel@gnu.org; Tue, 29 Jun 2010 08:16:15 -0400 Original-Received: (qmail invoked by alias); 29 Jun 2010 12:16:12 -0000 Original-Received: from 62-47-32-193.adsl.highway.telekom.at (EHLO [62.47.32.193]) [62.47.32.193] by mail.gmx.net (mp056) with SMTP; 29 Jun 2010 14:16:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/3RZ9pWzT3ncv9cmBRrpfr+GOFo1u9Eaz9t9/siQ X5bmYoz6mj37Se User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126503 Archived-At: > I know you're not supposed to do that (I was just stress-testing) but after > > (setq window-safe-min-height 0 window-min-height 0) > > you can make a one-line window with no mode-line. Shouldn't that be checked? I'm cheating here. The doc-string of the former says "The absolut minimum number of lines of a window. Anything less might crash Emacs." but you can quietly set it to an arbitrary value. Emacs will crash ;-) regardless of whether this has been changed - the value 1 is hardcoded in C. Now as a matter of fact if you do (setq window-safe-min-height 0) (setq window-min-height 0) you can make the modeline of a window disappear. This is intentional for the following reason: When I drastically shrink a frame with the window manager I prefer making windows without a modeline rather than delete them. The modelines will reappear as soon as the frame grows again. Unfortunately, I don't see any way to prevent this in the case you describe since the window resizing code is in Elisp. IIUC, even putting these constants in pure store wouldn't prevent it. But, after all, anyone who changes the value of a constant is on her own? martin