emacs-devel
[Top][All Lists]
Advanced

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

Re: frame size&position woes


From: Eli Zaretskii
Subject: Re: frame size&position woes
Date: Wed, 24 Jul 2013 17:37:17 +0300

> From: Juanma Barranquero <address@hidden>
> Date: Wed, 24 Jul 2013 12:42:49 +0200
> Cc: martin rudalics <address@hidden>, Emacs developers <address@hidden>
> 
> On Wed, Jul 24, 2013 at 5:55 AM, Eli Zaretskii <address@hidden> wrote:
> 
> > You should be able to approximate that by multiplying the
> > character-unit dimensions by the pixel size of the default face's
> > font.
> 
> Yes. That's what I called "crude heuristics".

Then "crude" must be non-derogatory description.

> Let's assume there's a new option
> `desktop-restore-frames-move-onscreen'. If the user sets it to t, and
> I move back a frame that was really visible, but just by a few pixels,
> that's a tiny failure. But if I don't move back a frame that is a few
> pixels off, and so, harder to access for the user without UI tricks or
> M-: (modify-frame-parameters ...), that's a worse problem (not earth
> shattering, but definitely not very user-friendly). Which means that,
> to be safe, the heuristics must include a small constant factor to err
> on the safe side. Crude. So yes, I'll do it, but certainly not having
> a get-frame-window-system-metrics pains me.

Is that something rounding up to the next integral multiple of the
default font size couldn't take care of?  IOW, err on the safe side.

> > It's good enough for me, because currently I have to restore my frames
> > manually every time I quit and restart Emacs for some reason.
> 
> Uh? Have you filed a bug report about it?

No.



reply via email to

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