emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-mm-width return value off on Windows


From: David Kastrup
Subject: Re: display-mm-width return value off on Windows
Date: Thu, 13 Jul 2006 21:59:15 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]