all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get the new frame?
Date: Thu, 23 Jul 2015 16:02:44 -0500	[thread overview]
Message-ID: <morkro02q55@news6.newsguy.com> (raw)
In-Reply-To: <mailman.7315.1437679612.904.help-gnu-emacs@gnu.org>

Thanks, Eli and Javier. See below

On 7/23/2015 2:26 PM, Eli Zaretskii wrote:
>> From: "B. T. Raven" <btraven@nihilo.net>
>> Date: Thu, 23 Jul 2015 13:21:52 -0500
>>
>>> Is display-monitor-attributes-list what you want?  Or maybe
>>> display-mm-width and display-mm-height?  Or display-pixel-width and
>>> display-pixel-height?  There are more, of course.
>>>
>>
>> Thanks, Eli. I have the last four functions documented but not the first
>> (variable?) in w32 24.3.
>
> Upgrade to 24.5, the latest, and you will have the first function as
> well.
>
>> I have put:
>>
>>    '(display-mm-dimensions-alist (quote (("t400" 304 . 190))))
>>
>> in (custom-set-variables using custom but that doesn't register the
>> display monitor (14.1" diag.).
>
> I don't understand what that means, nor what you wanted to achieve,
> and how exactly did you try achieving that via
> display-mm-dimensions-alist.  Please show more of your code.
>
>> Apparently the display part of the alist can be either nil, t, or a
>> string but I can't get mm or pixel height or width through those
>> functions after setting up the alist.
>
> Again, I fail to follow.  Where I'm typing this, I get
>
>    M-: (display-mm-height) RET => 180

after trying to customize I see:

display-mm-dimensions-alist is a variable defined in `frame.el'.
Its value is (("t400" 304 . 190))
Original value was nil

then

(display-mm-width "t400") evals to Display name does not exist
(display-mm-width) evals to 508
(display-mm-height) evals to 318

but both numbers are more than 50% too big for the size of the physical 
screen in mm (304 by 190)

>
> What doesn't work for you?  Was this the function you tried?
>
>> Btw, what is this first string in the documentation of the variable:
>> (":0.0" . (287 . 215))?
>
> The display name, only significant on X.
>
>> I was hoping that Emacs might be able to interrogate the hardware
>> somehow through the OS.
>
> It does.
>
>> In the context of my original question, is my goal somehow
>> achievable.  If so, what's the recipe?
>
> Not sure what is the question, exactly.  You said back then:
>
>> I use 2 frames under w32, w64, courier (monospace 8 line high) to
>> display *Calendar* and arial (proportional font) for everything else. Is
>> there any other way to accomplish this?
>
> Other than what? other than using a separate frame?  Then I suggest to
> have a look at buffer-face-mode and its commands.  That's what is at
> work when you click Shift-mouse-1 and select a font for the current
> buffer.

I think I always use only two fonts (same size). I knew about 
buffer-face-mode but I don't use it. Instead I tried to set up two 
frames and their associated fonts once and for all in the init file.

As far as I know the only code that affects all this are these lines:

"
(setq initial-frame-alist '((name . "arial") (top . 370) (left . 1) 
(width . 205) (height . 18)))

...

(make-frame '((name . "courier")
    (top . 1) (left . 1)
    (width . 223) (height . 18)
    (visibility . icon))) ;; nil or icon

...

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(default ((t (:stipple nil :background "ghostwhite" :foreground 
"black" :inverse-video nil :box nil :strike-through nil :overline nil 
:underline nil :slant normal :weight normal :height 108 :width normal 
:family "outline-arial unicode ms"))))
  '(scroll-bar ((t (:background "#ffffff" :foreground "#000000")))))

... and finally

(select-frame-by-name "courier")
(set-frame-font "-outline-Courier 
New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")

;; the actual (present) width and height numbers are now just a vestige 
of my experimenting with the two frames long time ago, dividing the 
display in half roughly). What I want are two full width frames, an 8 
line monospace-font frame for *Calendar* and a 24 line proportional-font 
frame both on the display at once. Now I can only do that by fiddling 
with the frames manually.

Thanks,

Ed


  parent reply	other threads:[~2015-07-23 21:02 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21  0:47 How to get the new frame? Ian Zimmerman
2015-07-21  1:03 ` Emanuel Berg
2015-07-21  1:42   ` Ian Zimmerman
2015-07-21  1:43     ` Emanuel Berg
2015-07-21  2:07       ` Ian Zimmerman
2015-07-21 21:07         ` Emanuel Berg
2015-07-21 21:49           ` Ian Zimmerman
2015-07-21 23:35             ` Emanuel Berg
2015-07-21  3:56 ` John Mastro
2015-07-21  4:46   ` Ian Zimmerman
     [not found] ` <mailman.7206.1437440684.904.help-gnu-emacs@gnu.org>
2015-07-23 15:11   ` B. T. Raven
2015-07-23 15:52     ` Eli Zaretskii
     [not found]     ` <mailman.7309.1437666858.904.help-gnu-emacs@gnu.org>
2015-07-23 18:21       ` B. T. Raven
2015-07-23 19:23         ` Javier
2015-07-23 19:26         ` Eli Zaretskii
     [not found]         ` <mailman.7315.1437679612.904.help-gnu-emacs@gnu.org>
2015-07-23 21:02           ` B. T. Raven [this message]
2015-07-23 22:38             ` Javier
2015-07-24  7:13               ` Eli Zaretskii
2015-07-24 12:02               ` B. T. Raven
2015-07-24 13:38                 ` Eli Zaretskii
     [not found]                 ` <mailman.7348.1437745104.904.help-gnu-emacs@gnu.org>
2015-07-24 14:55                   ` Javier
     [not found]               ` <mailman.7337.1437722035.904.help-gnu-emacs@gnu.org>
2015-07-24 12:51                 ` B. T. Raven
2015-07-24 13:47                   ` Eli Zaretskii
2015-07-27 21:13                     ` Robert Thorpe
2015-07-24 15:25                   ` Yuri Khan
2015-07-24  7:10             ` Eli Zaretskii
2015-07-23 23:14     ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2015-07-21  7:00 martin rudalics
     [not found] <mailman.7205.1437439660.904.help-gnu-emacs@gnu.org>
2015-07-21 17:25 ` Javier
2015-07-21 17:44   ` Javier
2015-07-23  9:01   ` Javier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=morkro02q55@news6.newsguy.com \
    --to=btraven@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.