unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [amscott1@sedona.ch.intel.com: emacs -g WIDTHxHEIGHT only observed on "odd" frames]
@ 2006-10-18 10:42 Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2006-10-18 10:42 UTC (permalink / raw)


Would someone please fix this, then ack?

------- Start of forwarded message -------
Date: Tue, 17 Oct 2006 06:37:10 -0700
From: "Andrew M. Scott" <amscott1@sedona.ch.intel.com>
To: emacs-pretest-bug@gnu.org
Cc: amscott1@sedona.ch.intel.com
Subject: emacs -g WIDTHxHEIGHT only observed on "odd" frames
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

The command-line section of the Emacs info pages says that WIDTH and
HEIGHT are supposed to apply to *all* frames. Current behavior is that
it only applies to the first, third, fifth, etc. but not second,
fourth, etc. frames:

   `-g WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]'
  `--geometry=WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]'

     Specify the size WIDTH and HEIGHT (measured in character columns
     and lines), and positions XOFFSET and YOFFSET (measured in
     pixels). The WIDTH and HEIGHT parameters apply to all frames,
     whereas XOFFSET and YOFFSET only to the initial frame.

To reproduce:

My .Xdefaults contains:
Emacs.Geometry:       125x50-5+50

Using an Oct 16, 2006 CVS snapshot and gnu/linux local compile:

% emacs -Q -g 100x38 &
brings up the first frame

(frame-width)100
(frame-height)40 

C-x 5 b 
brings up the 2nd frame that's much bigger (no longer fitting in my VNC
window)

C-x b *scratch*
(frame-width)125
(frame-height)52 (Hmm, that's *bigger* than the 50 in my .Xdefaults.
                  Is the vertical delta due to my fvwm2 titlebar width?)

default-frame-alist is a variable defined in `C source code'.
Value:
((tool-bar-lines . 1)
 (menu-bar-lines . 1)
 (width . 125)
 (height . 50)
 (right-fringe)
 (left-fringe)
 (user-size . t)
 (height . 38)
 (width . 100))

If I open up a third frame:
C-x 5 b 
This one is now the right size!

C-x b *scratch*
(frame-width)100
(frame-height)40

Similarly, a fourth frame looks like the second (over-large).

Andy Scott


In GNU Emacs 22.0.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2006-10-16 on chlr6708
X server distributor `The XFree86 Project, Inc', version 11.0.40201000
configured using `configure '--prefix=/stor/garray/linux_2.6.5_x86-64' '--x-includes=/usr/intel/pkgs/X11/R7.0/include' '--x-libraries=/usr/intel/pkgs/X11/R7.0/lib' 'CC=gcc' 'CFLAGS=-O2 -I/usr/intel/pkgs/X11/R7.0/include -L/usr/intel/pkgs/X11/R7.0/lib -I/usr/intel/pkgs/zlib/1.2.3/include -L/usr/intel/pkgs/zlib/1.2.3/lib  -I/usr/intel/pkgs/ncurses/5.5/include -L/usr/intel/pkgs/ncurses/5.5/lib -I/usr/intel/pkgs/libungif/4.1.4/include -L/usr/intel/pkgs/libungif/4.1.4/lib -I/usr/intel/pkgs/libpng/1.2.12/include -L/usr/intel/pkgs/libpng/1.2.12/lib -I/usr/intel/pkgs/jpeg/6b-2/include -L/usr/intel/pkgs/jpeg/6b-2/lib -I/usr/intel/pkgs/libglade/2.5.1/include -L/usr/intel/pkgs/libglade/2.5.1/lib64 -I/usr/intel/pkgs/gtk+/2.8.17/include -L/usr/intel/pkgs/gtk+/2.8.17/lib64 -I/usr/intel/pkgs/lesstif/0.94.4/include -L/usr/intel/pkgs/lesstif/0.94.4/lib' 'LDFLAGS=-L/usr/intel/pkgs/X11/R7.0/lib -L/usr/inte
 l/pkgs/zlib/1.2.3/lib -L/usr/intel/pkgs/ncurses/5.5/lib -L/usr/intel/pkgs/libungif/4.1.4/!
 lib -L/usr/intel/pkgs/libpng/1.2.12/lib -L/usr/intel/pkgs/jpeg/6b-2/lib -Wl,-rpath=/usr/intel/pkgs/X11/R7.0/lib:/usr/intel/pkgs/zlib/1.2.3/lib:/usr/intel/pkgs/ncurses/5.5/lib:/usr/intel/pkgs/libungif/4.1.4/lib:/usr/intel/pkgs/libpng/1.2.12/lib:/usr/intel/pkgs/jpeg/6b-2/lib:/usr/intel/pkgs/libglade/2.5.1/lib64:/usr/intel/pkgs/gtk+/2.8.17/lib64:/usr/intel/pkgs/lesstif/0.94.4/lib''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-18 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 10:42 [amscott1@sedona.ch.intel.com: emacs -g WIDTHxHEIGHT only observed on "odd" frames] Richard Stallman

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