From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: display-mm-width return value off on Windows Date: Thu, 13 Jul 2006 21:59:15 +0200 Message-ID: <85k66hjmy4.fsf@lola.goethe.zz> References: <87slldpd8s.fsf@neutrino.caeruleus.net> <44AFB1E1.20906@student.lu.se> <8764i7kywu.fsf@neutrino.caeruleus.net> <874pxls3bu.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 1152820810 16882 80.91.229.2 (13 Jul 2006 20:00:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2006 20:00:10 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 13 22:00:09 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 1G17Lu-0007Zt-PB for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2006 22:00:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G17Lu-0007eT-Dw for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2006 16:00:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G17Lg-0007ah-6Z for emacs-devel@gnu.org; Thu, 13 Jul 2006 15:59:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G17Le-0007Yh-Uy for emacs-devel@gnu.org; Thu, 13 Jul 2006 15:59:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G17Le-0007Ya-OF for emacs-devel@gnu.org; Thu, 13 Jul 2006 15:59:46 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G17NU-0006ru-8P for emacs-devel@gnu.org; Thu, 13 Jul 2006 16:01:40 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G17LX-0008EF-1I; Thu, 13 Jul 2006 15:59:39 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id CBD501D1ED1D; Thu, 13 Jul 2006 21:59:15 +0200 (CEST) Original-To: Ralf Angeli In-Reply-To: <874pxls3bu.fsf@neutrino.caeruleus.net> (Ralf Angeli's message of "Thu, 13 Jul 2006 21:38:13 +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:56980 Archived-At: Ralf Angeli writes: > * Richard Stallman (2006-07-12) writes: > >> This approach has a problem: it assumes there is just one display >> (or that all displays have the same size). The right way to do >> this is to let the user specify the size of each display >> individually. It could be done with a frame parameter. > > Okay. Would it then suffice to pick an arbitrary frame on the > display given as the argument of `display-mm-width' and check the > parameter of that frame? That could be done with something like > > (let ((frame-list (frames-on-display-list display))) > (when frame-list > (frame-parameter (car frame-list) 'display-mm-width))) > > assuming the frame parameter is called `display-mm-width'. Hm. I read: (info "(elisp) Multiple Displays") A few Lisp variables are "terminal-local"; that is, they have a separate binding for each terminal. The binding in effect at any time is the one for the terminal that the currently selected frame belongs to. These variables include `default-minibuffer-frame', `defining-kbd-macro', `last-kbd-macro', and `system-key-alist'. They are always terminal-local, and can never be buffer-local (*note Buffer-Local Variables::) or frame-local. Would that not be a case for a terminal-local variable? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum