From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.bugs Subject: bug#9366: Display geometry change hook Date: Thu, 25 Aug 2011 13:42:29 +0100 Message-ID: <4E564335.1080004@harpegolden.net> References: <4E55DACA.6080401@harpegolden.net> <83fwkqghmq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314276220 1146 80.91.229.12 (25 Aug 2011 12:43:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 12:43:40 +0000 (UTC) Cc: 9366@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 14:43:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwZHM-0006t0-35 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 14:43:28 +0200 Original-Received: from localhost ([::1]:51186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwZHL-0007wz-Iz for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 08:43:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwZHI-0007wi-MD for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 08:43:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwZHH-0005NV-Ps for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 08:43:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwZHH-0005NP-N4 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 08:43:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QwZJp-00086Z-Rn; Thu, 25 Aug 2011 08:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2011 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9366 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9366-submit@debbugs.gnu.org id=B9366.131427631829844 (code B ref 9366); Thu, 25 Aug 2011 12:46:01 +0000 Original-Received: (at 9366) by debbugs.gnu.org; 25 Aug 2011 12:45:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QwZJ6-0007k2-44 for submit@debbugs.gnu.org; Thu, 25 Aug 2011 08:45:17 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QwZJ1-0007bp-5x for 9366@debbugs.gnu.org; Thu, 25 Aug 2011 08:45:12 -0400 Original-Received: from [87.198.47.59] (87-198-47-59.ptr.magnet.ie [87.198.47.59]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id E329468474; Thu, 25 Aug 2011 13:42:30 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 In-Reply-To: <83fwkqghmq.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 25 Aug 2011 08:46:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50333 Archived-At: On 25/08/11 06:55, Eli Zaretskii wrote: >> Date: Thu, 25 Aug 2011 06:16:58 +0100 >> From: David De La Harpe Golden >> >> Dunno about w32 as yet, but presumably it has something similar. > > On MS-Windows there's the WM_DISPLAYCHANGE message sent to the message > pump. Emacs already accepts that message (see w32term.c), but > currently does nothing with it except announcing the change to the > attached debugger. > > However, on Windows the message also specifies the new resolution, so > this: > Technically the incoming x11 event does too, but as you can re-query with the existing #'display-pixel-width etc. functions (and get the new values) anyway by the time the hook actually runs (on x11), wasn't sure we needed to allow for propagation of the info really.