From: Paul Pogonyshev <pogonyshev@gmx.net>
Cc: Luc Teirlinck <teirllm@dms.auburn.edu>,
Stefan <monnier@iro.umontreal.ca>,
rms@gnu.org
Subject: Re: bug in frame-width
Date: Thu, 12 Aug 2004 15:20:18 +0300 [thread overview]
Message-ID: <200408121520.18607.pogonyshev@gmx.net> (raw)
In-Reply-To: <m1pt5x6iyg.fsf-monnier+emacs@gnu.org>
Stefan wrote:
> > The problem is that if I use `modify-frame-parameters' to change the
> > `left-fringe' or `right-fringe' parameters, then (frame-width)
> > actually _should_ stay the same, but the X window should narrow or
> > broaden. This does not happen.
>
> The general rule of thumb in X11 is that an application should only change
> its window's position and size if the user explicitly asks for it. When the
> user asks to change the fringe, she does not request a change in the
> window's size, so frame-width should change so that the window's pixel
> size stays constant, not the other way around.
>
> > Note, by contrast, that if I use `modify-frame-parameters' to change
> > `menu-bar-lines', then the X window _does_ grow smaller or taller.
>
> Yes, it's been that way for a while, but I think it's bad behavior.
I agree absolutely. Emacs should not touch window size when it
shows/hides its widgets.
I have this in my `~/.Xdefaults':
Emacs.menuBar: off
Emacs.toolBar: 0
Emacs.geometry: 139x54+0+0
because I don't need the menu and the toolbar, but if I hide them
from `~/.emacs', then Emacs'es window size changes and that is very
annoying. And, btw, I'm not satisfied with the above solution
because it is extremely non-obvious, was very difficult to find and
there is high chance that I forget to preserve `~/.Xdefaults'
contents when upgrading my system next time.
Paul
next prev parent reply other threads:[~2004-08-12 12:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 2:59 bug in frame-width Luc Teirlinck
2004-08-11 2:23 ` Richard Stallman
2004-08-12 1:51 ` Luc Teirlinck
2004-08-12 5:12 ` Stefan
2004-08-12 7:41 ` Jan D.
2004-08-12 15:36 ` Stefan Monnier
2004-08-12 16:00 ` Andreas Schwab
2004-08-12 21:38 ` Miles Bader
2004-08-12 12:20 ` Paul Pogonyshev [this message]
2004-08-12 18:12 ` Luc Teirlinck
2004-08-12 18:58 ` Jan D.
2004-08-12 19:14 ` David Kastrup
2004-08-12 19:34 ` Stefan Monnier
2004-08-12 21:37 ` Andreas Schwab
2004-08-12 21:57 ` David Kastrup
2004-08-13 15:14 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408121520.18607.pogonyshev@gmx.net \
--to=pogonyshev@gmx.net \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
--cc=teirllm@dms.auburn.edu \
/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 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.