GNU bug report logs -
#35375
26.2; info:elisp#Geometry (x-parse-geometry geom)
Previous Next
Reported by: Van L <van <at> scratch.space>
Date: Mon, 22 Apr 2019 10:58:02 UTC
Severity: minor
Tags: notabug
Found in version 26.2
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 35375-done <at> debbugs.gnu.org (full text, mbox):
tags 35375 notabug
thanks
> In the example given,
>
> (x-parse-geometry "35x70+0-0")
> ⇒ ((height . 70) (width . 35)
> (top - 0) (left . 0))
> --------------------^
> should that be (top . (- 0)) from x-parse-geometry?
>
> --- background context ---
>
> I landed on the above documentation while trying to figure out the following.
>
> I am unable to make-frame have frame height 36 with the following setting in ~/.emacs
>
> (add-to-list 'default-frame-alist '(height . 36))
>
> and in ~/.Xresources, I have
>
> Emacs*geometry: 80x36
>
> Calling `emacs -Q` I have initial frame height of 4, the next
> make-frame has height 36, the rest of the next make-frame events have
> height 4.
This is because x-parse-geometry returns height/width in pixels,
but make-frame expects height/width in characters. Please use
`text-pixels' for pixels. See more at (info "(elisp) Size Parameters")
This bug report was last modified 6 years and 73 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.