From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12368: 24.1; x-parse-geometry broken in Emacs 24.1 Date: Wed, 12 Sep 2012 14:22:32 -0400 Message-ID: <7sa9wvp0d3.fsf@fencepost.gnu.org> References: <72685A2C-FE87-434E-991F-AEC63AE1D255@robertdallasgray.com> <441C52A0-2893-4403-91D3-8A5BF73234EE@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347474202 25577 80.91.229.3 (12 Sep 2012 18:23:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2012 18:23:22 +0000 (UTC) Cc: Robert Dallas Gray , 12368@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 12 20:23:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TBrav-00062n-FV for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2012 20:23:25 +0200 Original-Received: from localhost ([::1]:36115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBrar-0001aJ-H9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2012 14:23:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBran-0001YQ-80 for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 14:23:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBrak-00022l-Rg for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 14:23:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBrak-00022Z-PJ for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 14:23:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TBrbV-0007dn-N5 for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2012 14:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Sep 2012 18:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12368-submit@debbugs.gnu.org id=B12368.134747420329319 (code B ref 12368); Wed, 12 Sep 2012 18:24:01 +0000 Original-Received: (at 12368) by debbugs.gnu.org; 12 Sep 2012 18:23:23 +0000 Original-Received: from localhost ([127.0.0.1]:57578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBras-0007cp-MR for submit@debbugs.gnu.org; Wed, 12 Sep 2012 14:23:23 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:34883) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBraq-0007cj-Pk for 12368@debbugs.gnu.org; Wed, 12 Sep 2012 14:23:21 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TBra4-0002tx-6w; Wed, 12 Sep 2012 14:22:32 -0400 X-Spook: 9705 Samford Road Comirex asset Elvis UOP pink noise X-Ran: oC7%Zse}&Qolgu5Zf.0O'f]L+P(9Yp2rJu4Ei(r-RxzKBCiK8ngfBzC3dP?494l7"P;='q X-Hue: red X-Attribution: GM In-Reply-To: <441C52A0-2893-4403-91D3-8A5BF73234EE@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv?="'s message of "Sat, 8 Sep 2012 15:29:46 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64206 Archived-At: Jan Dj=C3=A4rv wrote: > x-parse-geometry (non-NS variant) calls XParseGeometry. This may not > be available. But the W32-prt has an implementation. > > It seems as ns-parse-geometry expects "top left with height", i.e.: > > (x-parse-geometry "10 5 80 40") > ((top . 10) (left . 5) (height . 80) (width . 40)) > > I don't know where this type of geometry is specified, but we could > support both (if there is a space in the string, it is NS-style, if > there is a +, -, x orX, it is X-style). > > We could move the W32-version of XParseGeometry somewhere common > (where?) and use that. Or we can rewrite x-parse-geometry in lisp. > > Suggestions? I don't know... At first I was going to say, rewrite x-parse-geometry in Lisp sounds simple, especially if you want to handle both style of geometry. But then since XParseGeometry is standard in X11 and already reimplemented in w32xfns.c, maybe it's simpler just to use that. And set_frame_size calls XParseGeometry from C as well (so how does that work on NS? I see nsfns.m has a stub definition as well).