all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35375: 26.2; info:elisp#Geometry (x-parse-geometry geom)
@ 2019-04-22 10:57 Van L
  2019-04-22 12:15 ` Andreas Schwab
  2019-05-28 20:59 ` Juri Linkov
  0 siblings, 2 replies; 3+ messages in thread
From: Van L @ 2019-04-22 10:57 UTC (permalink / raw)
  To: 35375

Hello,

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 for build detail as follows

GNU Emacs 26.2 (build 1, x86_64-unknown-netbsd8.0, GTK+ Version 3.24.1)
 of 2019-04-15






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35375: 26.2; info:elisp#Geometry (x-parse-geometry geom)
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2019-04-22 12:15 UTC (permalink / raw)
  To: Van L; +Cc: 35375

On Apr 22 2019, Van L <van@scratch.space> wrote:

> Hello,
>
> 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?

That's the same, but the lisp printer would never use the dotted form
for a proper list.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35375: 26.2; info:elisp#Geometry (x-parse-geometry geom)
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2019-05-28 20:59 UTC (permalink / raw)
  To: Van L; +Cc: 35375-done

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")





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-28 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.