From: Juri Linkov <juri@linkov.net>
To: Van L <van@scratch.space>
Cc: 35375-done@debbugs.gnu.org
Subject: bug#35375: 26.2; info:elisp#Geometry (x-parse-geometry geom)
Date: Tue, 28 May 2019 23:59:01 +0300 [thread overview]
Message-ID: <87muj6cn3e.fsf@mail.linkov.net> (raw)
In-Reply-To: <2B119482-024A-42A5-9D84-F386CAF1E865@scratch.space> (Van L.'s message of "Mon, 22 Apr 2019 20:57:31 +1000")
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")
prev parent reply other threads:[~2019-05-28 20:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 10:57 bug#35375: 26.2; info:elisp#Geometry (x-parse-geometry geom) Van L
2019-04-22 12:15 ` Andreas Schwab
2019-05-28 20:59 ` Juri Linkov [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muj6cn3e.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=35375-done@debbugs.gnu.org \
--cc=van@scratch.space \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).