From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: bug in frame-width Date: Thu, 12 Aug 2004 09:41:46 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <10042CCA-EC33-11D8-99A2-000D93505B76@swipnet.se> References: <200408100259.i7A2xiF19311@raven.dms.auburn.edu> <200408120151.i7C1poG03775@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092296593 25000 80.91.224.253 (12 Aug 2004 07:43:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Aug 2004 07:43:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 12 09:43:03 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 1BvAEp-0000Ln-00 for ; Thu, 12 Aug 2004 09:43:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvAIi-0001Gn-Dz for ged-emacs-devel@m.gmane.org; Thu, 12 Aug 2004 03:47:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BvAIO-0001GU-GS for emacs-devel@gnu.org; Thu, 12 Aug 2004 03:46:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BvAIL-0001GI-U7 for emacs-devel@gnu.org; Thu, 12 Aug 2004 03:46:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvAIL-0001GF-OY for emacs-devel@gnu.org; Thu, 12 Aug 2004 03:46:41 -0400 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BvAEM-0006Ya-NC for emacs-devel@gnu.org; Thu, 12 Aug 2004 03:42:35 -0400 Original-Received: from coolsville.localdomain ([213.115.26.74] [213.115.26.74]) by mxfep01.bredband.com with ESMTP id <20040812074233.IDUI5206.mxfep01.bredband.com@coolsville.localdomain> for ; Thu, 12 Aug 2004 09:42:33 +0200 In-Reply-To: Original-To: emacs-devel Devel X-Mailer: Apple Mail (2.619) 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:26244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26244 >> The problem is that if I use `modify-frame-parameters' to change the >> `left-fringe' or `right-fringe' parameters, then (frame-width) >> actually _should_ stay the same, but the X window should narrow or >> broaden. This does not happen. > > 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. > When the > user asks to change the fringe, she does not request a change in the > window's size, so frame-width should change so that the window's pixel > size stays constant, not the other way around. I would not say that it is a rule of thumb. 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. However, as you point out, Emacs is inconsistent in how it deals with this. I for one would prefer if Emacs always tried to keep the number of rows and columns the same. We should agree on the desired strategy (keep rows/columns or keep frame width/height) for Emacs before fixing things like this. Jan D.