From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: display-mm-width return value off on Windows Date: Wed, 12 Jul 2006 15:07:11 +0200 Message-ID: References: <87slldpd8s.fsf@neutrino.caeruleus.net> <44AFB1E1.20906@student.lu.se> <8764i7kywu.fsf@neutrino.caeruleus.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152709774 14436 80.91.229.2 (12 Jul 2006 13:09:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Jul 2006 13:09:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 12 15:09:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G0eSy-0003gP-Ft for ged-emacs-devel@m.gmane.org; Wed, 12 Jul 2006 15:09:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0eSx-0006kb-Rl for ged-emacs-devel@m.gmane.org; Wed, 12 Jul 2006 09:09:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0eSl-0006kK-Il for emacs-devel@gnu.org; Wed, 12 Jul 2006 09:09:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0eSk-0006ih-42 for emacs-devel@gnu.org; Wed, 12 Jul 2006 09:09:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0eSj-0006ie-TP for emacs-devel@gnu.org; Wed, 12 Jul 2006 09:09:09 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G0eUH-00036r-EW for emacs-devel@gnu.org; Wed, 12 Jul 2006 09:10:45 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 7E9848A0028; Wed, 12 Jul 2006 15:08:59 +0200 (CEST) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Tue, 11 Jul 2006 20:43:11 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56948 Archived-At: Ralf Angeli writes: > * Eli Zaretskii (2006-07-09) writes: > >>> As a last resort we could provide user options (in Emacs) for setting >>> the correct size of the screen which will be used as return values for >>> `display-mm-{width,height}'. >> >> Sounds like a good plan to me. > > Here are change log entries and patches to achieve that: > > 2006-07-11 Ralf Angeli > > * frame.el (display-mm-height): New variable. > (display-mm-height): Use it. > (display-mm-width): New variable. > (display-mm-width): Use it. This change makes things worse if you have multiple displays. As I said previously, a change would have to be able to specify values "per-display", e.g. using an alist with elements (display . (width height)) But it still doesn't fix other problems related to the OS providing incorrect size/resolution values for a display (that requires changes on C level too). > 2006-07-11 Ralf Angeli > > * w32fns.c (Fx_display_mm_height, Fx_display_mm_width): Calculate > size of display by means of size in pixels and number of pixels > per inch. This change may be good by itself -- install it if nobody objects in a few days. -- Kim F. Storm http://www.cua.dk