From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: moving window handling into lisp Date: Sun, 16 Aug 2009 04:05:02 +0900 Message-ID: <878whknbj5.fsf@uwakimon.sk.tsukuba.ac.jp> References: <4A83E2ED.2090805@gmx.at> <4A868A1F.4020101@gmx.at> <4A86AD92.7030308@gmx.at> <87vdkpfbeg.fsf@lola.goethe.zz> <4A86DE30.8060902@gmx.at> <4A86F24D.4090103@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250362655 21879 80.91.229.12 (15 Aug 2009 18:57:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2009 18:57:35 +0000 (UTC) Cc: Lennart Borgman , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 15 20:57:27 2009 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.50) id 1McORT-0003ef-1z for ged-emacs-devel@m.gmane.org; Sat, 15 Aug 2009 20:57:27 +0200 Original-Received: from localhost ([127.0.0.1]:40407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McORS-0006s2-DB for ged-emacs-devel@m.gmane.org; Sat, 15 Aug 2009 14:57:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McORN-0006rx-Df for emacs-devel@gnu.org; Sat, 15 Aug 2009 14:57:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McORI-0006rl-Ve for emacs-devel@gnu.org; Sat, 15 Aug 2009 14:57:20 -0400 Original-Received: from [199.232.76.173] (port=38897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McORI-0006ri-Qo for emacs-devel@gnu.org; Sat, 15 Aug 2009 14:57:16 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:34960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McORI-0006Jl-6q for emacs-devel@gnu.org; Sat, 15 Aug 2009 14:57:16 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 54F211537B5; Sun, 16 Aug 2009 03:57:14 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 9CB081A27DB; Sun, 16 Aug 2009 04:05:02 +0900 (JST) In-Reply-To: <4A86F24D.4090103@gmx.at> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 5bbff3553494+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114278 Archived-At: martin rudalics writes: > Suppose the Emacs frame is a window in a tiling WM that just asked > Emacs to shrink that frame because the user needs it for another > application. [...] > Believe me. Deleting windows in some way is the one bullet we do have > to bite here. But you're wrong! A (radical) alternative is to shrink the Emacs windows as much as possible, then ignore further shrinkage.[1] The WM will shrink the shell widget's window, and the GUI server will then clip the Emacs frame to fit. The rationale is that the WM has shrunk Emacs past the size where the user can get any work done anyway, and in that case the user will have to tell the WM to resize Emacs to a usable size to get work done. Why not just leave Emacs's internal configuration as it is? That should work nicely on X11. Whether this works on Windows or Aqua I dunno. Another possibility would be to withdraw (iconify) the Emacs frame if it's ask to shrink to the point where its windows' minimum size constraints are violated. The bug reports will be great: "I was shrinking Emacs and suddenly it collapsed into a nano-black hole, started spraying X-rays, and cured my cancer!" Footnotes: [1] It might be a good idea to keep Emacs's "viewport" centered on point in the selected Emacs window. Then again, it might not.