emacs-devel
[Top][All Lists]
Advanced

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

Re: frame size&position woes


From: Juanma Barranquero
Subject: Re: frame size&position woes
Date: Sun, 21 Jul 2013 17:58:36 +0200

> Yep. But meanwhile, what we have is a mishmash of metrics, options,
> units and whatnot.

And absolutely crazy behavior like this:

emacs -Q
M-x ielm <RET>

ELISP> (setq *f* (make-frame '((width . 20) (height . 40))))
#<frame address@hidden 04e57a28>
ELISP> (defun testf (lines)
         (set-frame-parameter *f* 'menu-bar-lines lines)
         (cons (frame-height *f*)
               (frame-pixel-height *f*)))
testf
ELISP> (testf 0)
(40 . 650)

ELISP> (testf 1)
(40 . 640)

ELISP> (testf 0)
(37 . 602)

ELISP> (testf 1)
(37 . 592)

ELISP> (testf 0)
(34 . 554)

ELISP> (testf 1)
(34 . 544)

ELISP> (testf 0)
(31 . 506)

ELISP> (testf 1)
(31 . 496)



reply via email to

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