From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug in frame-width Date: 12 Aug 2004 11:36:10 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200408100259.i7A2xiF19311@raven.dms.auburn.edu> <200408120151.i7C1poG03775@raven.dms.auburn.edu> <10042CCA-EC33-11D8-99A2-000D93505B76@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092325068 728 80.91.224.253 (12 Aug 2004 15:37:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Aug 2004 15:37:48 +0000 (UTC) Cc: emacs-devel Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 12 17:37:22 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BvHdo-0002lB-00 for ; Thu, 12 Aug 2004 17:37:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvHhi-0003wm-Cx for ged-emacs-devel@m.gmane.org; Thu, 12 Aug 2004 11:41:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BvHhb-0003wd-Eg for emacs-devel@gnu.org; Thu, 12 Aug 2004 11:41:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BvHhZ-0003wC-DH for emacs-devel@gnu.org; Thu, 12 Aug 2004 11:41:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvHhZ-0003w9-At for emacs-devel@gnu.org; Thu, 12 Aug 2004 11:41:13 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BvHd3-0002DV-Bi for emacs-devel@gnu.org; Thu, 12 Aug 2004 11:36:34 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 945CBB30280; Thu, 12 Aug 2004 11:36:10 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 68A4F8CA23; Thu, 12 Aug 2004 11:36:10 -0400 (EDT) Original-To: "Jan D." In-Reply-To: <10042CCA-EC33-11D8-99A2-000D93505B76@swipnet.se> Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26250 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26250 >> The general rule of thumb in X11 is that an application should only change >> its window's position and size if the user explicitly asks for it. > I would not say that it is a rule of thumb. True, it's more of a convention about what a good UI should do. Another such convention is not to move the mouse pointer unless it's *really* The Right Thing to do. > After all, xterm resizes itself when the scroll bar is enabled/disabled. > Also, changing font size does resize the window to keep number of rows and > columns the same in both xterm and Emacs. Yes, it's a convention that is not always followed. I consider most if not all of those counter examples as bugs. Some people sometimes follow the convention that "the geometry as given by the -geometry parameter should be preserved", i.e. in xterm and Emacs the number of lines/columns should be preserved rather than the pixel size of the window. IMNSHO, at startup, the -geometry argument should take precedence of course (after all, it's not a question of changing the size but of setting the initial size), but after the initial setup, any request to change some aspect of the window other than its size should not change its size. For Emacs that implies that we should distinguish fringe-changes made in the .emacs from those made later. Stefan