From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: frame parameters user-size and user-position Date: Sat, 28 May 2005 11:01:31 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117303452 21821 80.91.229.2 (28 May 2005 18:04:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 18:04:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 20:04:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dc5ej-00029A-AS for ged-emacs-devel@m.gmane.org; Sat, 28 May 2005 20:03:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dc5jF-00034h-Gs for ged-emacs-devel@m.gmane.org; Sat, 28 May 2005 14:08:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dc5iY-0002k9-Vp for emacs-devel@gnu.org; Sat, 28 May 2005 14:07:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dc5iX-0002jX-N8 for emacs-devel@gnu.org; Sat, 28 May 2005 14:07:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dc5iX-0002jE-Im for emacs-devel@gnu.org; Sat, 28 May 2005 14:07:25 -0400 Original-Received: from [148.87.122.31] (helo=rgminet02.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dc5e3-0007yj-WF for emacs-devel@gnu.org; Sat, 28 May 2005 14:02:48 -0400 Original-Received: from rgminet02.oracle.com (localhost [127.0.0.1]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j4SI1ZsV029249 for ; Sat, 28 May 2005 12:01:35 -0600 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j4SI1Y3e029229 for ; Sat, 28 May 2005 12:01:35 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j4SI1YPG017778 for ; Sat, 28 May 2005 12:01:34 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-151.vpn.oracle.com [141.144.64.151]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j4SI1XSp017768 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 28 May 2005 12:01:34 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:37831 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37831 1. Frame parameter `user-position' can be used to tell the window manager that the user has positioned a frame. Is there an equivalent `user-size' parameter to tell the window manager whether the user has sized the frame? I don't see `user-size' documented anywhere (e.g. Info (elisp)), but I see it used in these files: faces.el, frame.el, mac-win.el, w32-win.el, x-win.el, and frame.c. If it is similar to `user-position', shouldn't it be documented? 2. The doc for `user-position' says that you can use it to tell the window manager that the user positioned the frame, in hopes that the w-m will leave the position alone. I assume something similar is behind `user-size'. I have never seen either of these parameters in any of my frames, so I assume they are only there if I add them myself. (I'm using Emacs in Windows, if that makes a difference.) That would seem to agree with the doc, which just says you can specify them when you create a frame. Would it be possible (after the release) to have Emacs update these frame parameters whenever a user repositioned or resized a frame (e.g. using the mouse)? That is, could we perhaps use these parameters to _indicate_ whether the user has repositioned or resized a frame (even if the indication is not 100% reliable)? Would this be possible (for at least some window managers), or is this information not available from a window manager? For this to work, Emacs would need to record a non-nil value for the frame-parameter whenever the user manually moved or sized a frame and (by default) set it to nil when a frame is created or moved/sized by program. My question is one of feasibility, for now. I don't want to start a discussion about a possible new feature; I'm just wondering if this is feasible. Such an indication of user frame-sizing could be useful, for example, for code that tries to automatically resize a frame to fit its buffer. If the user has previously sized the frame, an automatic resize would presumably not be done, in order to not override the user's intention.